-pause command line added

This commit is contained in:
adelikat 2008-07-01 13:48:58 +00:00
parent 1b7d625d61
commit 15e2c028e6
3 changed files with 9 additions and 6 deletions

View File

@ -53,6 +53,7 @@ char *ParseArgies(int argc, char *argv[])
{"-stopmovie",0,&pauseAfterPlayback,0}, {"-stopmovie",0,&pauseAfterPlayback,0},
{"-bginput",0,&EnableBackgroundInput,0}, {"-bginput",0,&EnableBackgroundInput,0},
{"-turbo",0,&turbo,0}, {"-turbo",0,&turbo,0},
{"-pause",0,&PauseAfterLoad,0},
{0, 0, 0, 0}, {0, 0, 0, 0},
}; };

View File

@ -2,4 +2,5 @@ extern char* MovieToLoad;
extern char* StateToLoad; extern char* StateToLoad;
extern bool replayReadOnlySetting; extern bool replayReadOnlySetting;
extern int replayStopFrameSetting; extern int replayStopFrameSetting;
extern int PauseAfterLoad;
char *ParseArgies(int argc, char *argv[]); char *ParseArgies(int argc, char *argv[]);

View File

@ -122,7 +122,7 @@ int genie = 0;
int pal_emulation = 0; int pal_emulation = 0;
int ntsccol = 0, ntsctint, ntschue; int ntsccol = 0, ntsctint, ntschue;
std::string BaseDirectory; std::string BaseDirectory;
int PauseAfterLoad;
// Contains the names of the overridden standard directories // 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 // in the order roms, nonvol, states, fdsrom, snaps, cheats, movies, memwatch, basicbot, macro, input presets, lua scripts, base
@ -663,6 +663,7 @@ int main(int argc,char *argv[])
StateToLoad = NULL; StateToLoad = NULL;
} }
if (MemWatchLoadOnStart) CreateMemWatch(); if (MemWatchLoadOnStart) CreateMemWatch();
if (PauseAfterLoad) FCEUI_ToggleEmulationPause();
UpdateCheckedMenuItems(); UpdateCheckedMenuItems();
doloopy: doloopy: