mirror of https://github.com/snes9xgit/snes9x.git
win32: add InitialSnapshotFilename support.
This commit is contained in:
parent
602919d522
commit
daee29865f
|
@ -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;
|
||||
|
|
|
@ -416,6 +416,7 @@ void S9xLoadConfigFiles (char **argv, int argc)
|
|||
}
|
||||
|
||||
rom_filename = conf.GetStringDup("ROM::Filename", NULL);
|
||||
Settings.InitialSnapshotFilename[0] = '\0';
|
||||
|
||||
// Sound
|
||||
|
||||
|
|
|
@ -3521,6 +3521,11 @@ int WINAPI WinMain(
|
|||
{
|
||||
LoadROM(rom_filename);
|
||||
}
|
||||
|
||||
if (*Settings.InitialSnapshotFilename)
|
||||
{
|
||||
S9xUnfreezeGame(Settings.InitialSnapshotFilename);
|
||||
}
|
||||
}
|
||||
|
||||
S9xUnmapAllControls();
|
||||
|
|
Loading…
Reference in New Issue