Linux: Minor fix when checking why core library could not be loaded

This commit is contained in:
Souryo 2016-12-24 16:08:40 -05:00
parent 8132c5cb25
commit b6163da03d

View File

@ -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);