diff --git a/src/drivers/win/args.cpp b/src/drivers/win/args.cpp index 8f55c992..09efcfae 100644 --- a/src/drivers/win/args.cpp +++ b/src/drivers/win/args.cpp @@ -53,6 +53,7 @@ char *ParseArgies(int argc, char *argv[]) {"-stopmovie",0,&pauseAfterPlayback,0}, {"-bginput",0,&EnableBackgroundInput,0}, {"-turbo",0,&turbo,0}, + {"-pause",0,&PauseAfterLoad,0}, {0, 0, 0, 0}, }; diff --git a/src/drivers/win/args.h b/src/drivers/win/args.h index d98b046c..20689f22 100644 --- a/src/drivers/win/args.h +++ b/src/drivers/win/args.h @@ -2,4 +2,5 @@ extern char* MovieToLoad; extern char* StateToLoad; extern bool replayReadOnlySetting; extern int replayStopFrameSetting; +extern int PauseAfterLoad; char *ParseArgies(int argc, char *argv[]); diff --git a/src/drivers/win/main.cpp b/src/drivers/win/main.cpp index 509b40c6..4e14958e 100644 --- a/src/drivers/win/main.cpp +++ b/src/drivers/win/main.cpp @@ -122,7 +122,7 @@ int genie = 0; int pal_emulation = 0; int ntsccol = 0, ntsctint, ntschue; std::string BaseDirectory; - +int PauseAfterLoad; // Contains the names of the overridden standard directories // in the order roms, nonvol, states, fdsrom, snaps, cheats, movies, memwatch, basicbot, macro, input presets, lua scripts, base @@ -601,11 +601,11 @@ int main(int argc,char *argv[]) FCEUI_SetSoundQuality(soundquality); } - ParseGIInput(NULL); /* Since a game doesn't have to be - loaded before the GUI can be used, make - sure the temporary input type variables - are set. - */ + ParseGIInput(NULL); /* Since a game doesn't have to be + loaded before the GUI can be used, make + sure the temporary input type variables + are set. + */ // Initialize default directories CreateDirs(); @@ -663,6 +663,7 @@ int main(int argc,char *argv[]) StateToLoad = NULL; } if (MemWatchLoadOnStart) CreateMemWatch(); + if (PauseAfterLoad) FCEUI_ToggleEmulationPause(); UpdateCheckedMenuItems(); doloopy: