Check for MAME's lib before instantiating the MAME core (fixes #2538)
This commit is contained in:
parent
f4e98fd9bd
commit
c0cf40b68e
|
@ -5,7 +5,7 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
|
|||
{
|
||||
public static class LibMAME
|
||||
{
|
||||
private const string dll = "libmamearcade64.dll"; // libmamearcade64.dll libpacmansh64d.dll
|
||||
internal const string dll = "libmamearcade64.dll"; // libmamearcade64.dll libpacmansh64d.dll
|
||||
private const CallingConvention cc = CallingConvention.Cdecl;
|
||||
|
||||
public enum OutputChannel
|
||||
|
|
|
@ -98,6 +98,8 @@ namespace BizHawk.Emulation.Cores.Arcades.MAME
|
|||
{
|
||||
public MAME(string dir, string file, MAME.SyncSettings syncSettings, out string gamename)
|
||||
{
|
||||
OSTailoredCode.LinkedLibManager.FreeByPtr(OSTailoredCode.LinkedLibManager.LoadOrThrow(LibMAME.dll)); // don't bother if the library is missing
|
||||
|
||||
ServiceProvider = new BasicServiceProvider(this);
|
||||
|
||||
_gameDirectory = dir;
|
||||
|
|
Loading…
Reference in New Issue