Merge pull request #267 from julien2512/master
now able to start from a snapshot
This commit is contained in:
commit
c3fa4009a3
@ -125,6 +125,9 @@ main (int argc, char *argv[])
|
||||
|
||||
gtk_window_present (top_level->get_window ());
|
||||
|
||||
if (rom_filename && Settings.InitialSnapshotFilename)
|
||||
S9xUnfreezeGame(Settings.InitialSnapshotFilename);
|
||||
|
||||
gtk_main ();
|
||||
return 0;
|
||||
}
|
||||
|
11
snes9x.cpp
11
snes9x.cpp
@ -756,6 +756,17 @@ char * S9xParseArgs (char **argv, int argc)
|
||||
else
|
||||
if (!strcasecmp(argv[i], "-bsxbootup"))
|
||||
Settings.BSXBootup = TRUE;
|
||||
else
|
||||
if (!strcasecmp(argv[i], "-snapshot"))
|
||||
{
|
||||
if (i + 1 < argc)
|
||||
{
|
||||
strncpy(Settings.InitialSnapshotFilename, argv[++i], PATH_MAX);
|
||||
Settings.InitialSnapshotFilename[PATH_MAX] = 0;
|
||||
}
|
||||
else
|
||||
S9xUsage();
|
||||
}
|
||||
else
|
||||
|
||||
// PATCH/CHEAT OPTIONS
|
||||
|
Loading…
Reference in New Issue
Block a user