git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@59441 e17a0e51-4ae3-4d35-97c3-1a29b211df97
This commit is contained in:
parent
6c0a8d0c65
commit
f0ec3cbca6
|
@ -204,6 +204,7 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
} else {
|
||||
strcpy(cdfile, arg);
|
||||
}
|
||||
UseGui = FALSE;
|
||||
}
|
||||
} else if (strcmp(arg, "-psxout") == 0) {
|
||||
Config.PsxOut = TRUE;
|
||||
|
@ -258,12 +259,12 @@ void RestoreWindow() {
|
|||
if (!UseGui) PostMessage(gApp.hWnd, WM_COMMAND, ID_FILE_EXIT, 0);
|
||||
}
|
||||
|
||||
void ResetMenuSlots() {
|
||||
void ResetMenuSlots() {
|
||||
char str[256];
|
||||
int i;
|
||||
|
||||
for (i = 0; i < 9; i++) {
|
||||
GetStateFilename(str, i);
|
||||
for (i = 0; i < 9; i++) {
|
||||
GetStateFilename(str, i);
|
||||
if (CheckState(str) == -1)
|
||||
EnableMenuItem(gApp.hMenu, ID_FILE_STATES_LOAD_SLOT1+i, MF_GRAYED);
|
||||
else
|
||||
|
@ -1667,8 +1668,8 @@ void CreateMainMenu() {
|
|||
EnableMenuItem(gApp.hMenu, ID_CONFIGURATION, MF_BYCOMMAND | MF_GRAYED);
|
||||
if (!UsingIso()) {
|
||||
EnableMenuItem(gApp.hMenu, ID_EMULATOR_SWITCH_ISO, MF_BYCOMMAND | MF_GRAYED);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ResetMenuSlots();
|
||||
} else {
|
||||
EnableMenuItem(gApp.hMenu, ID_EMULATOR_RESET, MF_BYCOMMAND | MF_GRAYED);
|
||||
|
|
Loading…
Reference in New Issue