diff --git a/GUI.NET/RuntimeChecker.cs b/GUI.NET/RuntimeChecker.cs index 057377c8..0928c766 100644 --- a/GUI.NET/RuntimeChecker.cs +++ b/GUI.NET/RuntimeChecker.cs @@ -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);