mirror of https://github.com/snes9xgit/snes9x.git
win32: add menu entry to load oops files
This commit is contained in:
parent
9377e50a7d
commit
f47b4ee5ca
|
@ -541,8 +541,9 @@
|
|||
#define ID_FILE_LOAD7 44027
|
||||
#define ID_FILE_LOAD8 44028
|
||||
#define ID_FILE_LOAD9 44029
|
||||
#define ID_FILE_LOAD_FILE 44030
|
||||
#define IDM_MACSRIFLE_TOGGLE 44031
|
||||
#define ID_FILE_LOAD_OOPS 44030
|
||||
#define ID_FILE_LOAD_FILE 44031
|
||||
#define IDM_MACSRIFLE_TOGGLE 44032
|
||||
#define IDC_STATIC -1
|
||||
|
||||
// Next default values for new objects
|
||||
|
|
|
@ -924,6 +924,7 @@ BEGIN
|
|||
MENUITEM "Slot #&7", ID_FILE_SAVE7
|
||||
MENUITEM "Slot #&8", ID_FILE_SAVE8
|
||||
MENUITEM "Slot #&9", ID_FILE_SAVE9
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Select File", ID_FILE_SAVE_FILE
|
||||
END
|
||||
POPUP "&Load Game Position"
|
||||
|
@ -938,6 +939,9 @@ BEGIN
|
|||
MENUITEM "Slot #&7", ID_FILE_LOAD7
|
||||
MENUITEM "Slot #&8", ID_FILE_LOAD8
|
||||
MENUITEM "Slot #&9", ID_FILE_LOAD9
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "Oops File", ID_FILE_LOAD_OOPS
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Select File", ID_FILE_LOAD_FILE
|
||||
END
|
||||
MENUITEM "Load MultiCart...", ID_FILE_LOADMULTICART
|
||||
|
|
|
@ -2142,6 +2142,9 @@ LRESULT CALLBACK WinProc(
|
|||
case ID_FILE_LOAD9:
|
||||
FreezeUnfreezeSlot (9, FALSE);
|
||||
break;
|
||||
case ID_FILE_LOAD_OOPS:
|
||||
FreezeUnfreezeSlot(-1, FALSE);
|
||||
break;
|
||||
case ID_FILE_LOAD_FILE:
|
||||
FreezeUnfreezeDialog(FALSE);
|
||||
break;
|
||||
|
@ -3610,7 +3613,10 @@ void FreezeUnfreezeSlot(int slot, bool8 freeze)
|
|||
char filename[_MAX_PATH + 1];
|
||||
char ext[_MAX_EXT + 1];
|
||||
|
||||
snprintf(ext, _MAX_EXT, ".%03d", slot);
|
||||
if (slot == -1)
|
||||
strcpy(ext, ".oops");
|
||||
else
|
||||
snprintf(ext, _MAX_EXT, ".%03d", slot);
|
||||
strcpy(filename, S9xGetFilename(ext, SNAPSHOT_DIR));
|
||||
|
||||
FreezeUnfreeze(filename, freeze);
|
||||
|
|
Loading…
Reference in New Issue