win32: add InitialSnapshotFilename support.

This commit is contained in:
Brandon Wright 2018-10-03 17:06:41 -05:00
parent 602919d522
commit daee29865f
3 changed files with 6 additions and 1 deletions

View File

@ -260,7 +260,6 @@ Snes9xConfig::load_defaults (void)
Settings.InterpolationMethod = DSP_INTERPOLATION_GAUSSIAN;
Settings.HDMATimingHack = 100;
Settings.SuperFXClockMultiplier = 100;
Settings.InitialSnapshotFilename[0] = '\0';
#ifdef ALLOW_CPU_OVERCLOCK
Settings.MaxSpriteTilesPerLine = 34;
Settings.OneClockCycle = 6;

View File

@ -416,6 +416,7 @@ void S9xLoadConfigFiles (char **argv, int argc)
}
rom_filename = conf.GetStringDup("ROM::Filename", NULL);
Settings.InitialSnapshotFilename[0] = '\0';
// Sound

View File

@ -3521,6 +3521,11 @@ int WINAPI WinMain(
{
LoadROM(rom_filename);
}
if (*Settings.InitialSnapshotFilename)
{
S9xUnfreezeGame(Settings.InitialSnapshotFilename);
}
}
S9xUnmapAllControls();