support skip option on bsnes

This commit is contained in:
zeromus 2020-05-02 20:54:38 -04:00
parent 4cd6e6fe8a
commit f00320b90c
2 changed files with 5 additions and 3 deletions

View File

@ -59,7 +59,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
_readonlyFiles.Add(name);
}
public LibsnesApi(string dllPath)
public LibsnesApi(string dllPath, CoreComm comm)
{
_exe = new PeRunner(new PeRunnerOptions
{
@ -69,7 +69,9 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
InvisibleHeapSizeKB = 8 * 1024,
MmapHeapSizeKB = 32 * 1024, // TODO: see if we can safely make libco stacks smaller
PlainHeapSizeKB = 2 * 1024, // TODO: wasn't there more in here?
SealedHeapSizeKB = 128 * 1024
SealedHeapSizeKB = 128 * 1024,
SkipCoreConsistencyCheck = comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
SkipMemoryConsistencyCheck = comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
});
using (_exe.EnterExit())
{

View File

@ -61,7 +61,7 @@ namespace BizHawk.Emulation.Cores.Nintendo.SNES
_syncSettings = (SnesSyncSettings)syncSettings ?? new SnesSyncSettings();
// TODO: pass profile here
Api = new LibsnesApi(CoreComm.CoreFileProvider.DllPath())
Api = new LibsnesApi(CoreComm.CoreFileProvider.DllPath(), CoreComm)
{
ReadHook = ReadHook,
ExecHook = ExecHook,