mirror of
https://github.com/libretro/Mesen.git
synced 2025-01-19 07:12:48 +00:00
Linux: Minor fix when checking why core library could not be loaded
This commit is contained in:
parent
8132c5cb25
commit
b6163da03d
@ -20,8 +20,15 @@ namespace Mesen.GUI
|
||||
return InteropEmu.TestDll();
|
||||
} catch {
|
||||
}
|
||||
|
||||
bool dllExists;
|
||||
if(Program.IsMono) {
|
||||
dllExists = File.Exists(Path.Combine(Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location), "libMesenCore.dll"));
|
||||
} else {
|
||||
dllExists = File.Exists("MesenCore.dll");
|
||||
}
|
||||
|
||||
if(!File.Exists("MesenCore.dll") && !File.Exists("libMesenCore.dll")) {
|
||||
if(!dllExists) {
|
||||
MesenMsgBox.Show("UnableToStartMissingFiles", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
} else {
|
||||
MesenMsgBox.Show("UnableToStartMissingDependencies", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
|
Loading…
x
Reference in New Issue
Block a user