mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-06-29 02:30:44 -04:00
Discover fileops and introduce FILEOP constants
This commit is contained in:
+21
-1
@@ -749,11 +749,31 @@
|
||||
#define FILEERROR_PAKDAMAGED 7
|
||||
#define FILEERROR_DELETENOTEFAILED 8
|
||||
|
||||
#define FILEOP_IS_LOAD(op) (op >= 100)
|
||||
#define FILEOP_IS_SAVE(op) (op < 100)
|
||||
|
||||
#define FILEOP_SAVE_GAME_000 0 // from endscreens
|
||||
#define FILEOP_SAVE_GAME_001 1 // from closing options dialog
|
||||
#define FILEOP_SAVE_GAME_002 2
|
||||
#define FILEOP_SAVE_MPPLAYER 3
|
||||
#define FILEOP_SAVE_MPSETUP 4
|
||||
#define FILEOP_005 5 // Perfect head?
|
||||
#define FILEOP_WRITE_GAME 6
|
||||
#define FILEOP_WRITE_MPSETUP 7
|
||||
#define FILEOP_WRITE_MPPLAYER 8
|
||||
#define FILEOP_LOAD_GAME 100
|
||||
#define FILEOP_LOAD_MPPLAYER 101
|
||||
#define FILEOP_LOAD_MPSETUP 102
|
||||
#define FILEOP_103 103 // Perfect head?
|
||||
#define FILEOP_READ_GAME 104
|
||||
#define FILEOP_READ_MPSETUP 105
|
||||
#define FILEOP_READ_MPPLAYER 106
|
||||
|
||||
#define FILESTATE_UNSELECTED 0
|
||||
#define FILESTATE_SELECTED 1
|
||||
#define FILESTATE_CHANGINGAGENT 2
|
||||
|
||||
#define FILETYPE_SOLO 0
|
||||
#define FILETYPE_GAME 0
|
||||
#define FILETYPE_MPSETUP 1
|
||||
#define FILETYPE_MPPLAYER 2
|
||||
|
||||
|
||||
@@ -18,12 +18,12 @@ s32 filemgrGetDeviceNameOrStartIndex(s32 listnum, s32 operation, s32 optionindex
|
||||
char *filemgrMenuTextErrorTitle(struct menuitem *item);
|
||||
char *filemgrMenuTextFileType(struct menuitem *item);
|
||||
void func0f10898c(void);
|
||||
void func0f108a80(void);
|
||||
void filemgrHandleSuccess(void);
|
||||
void filemgrEraseCorruptFile(void);
|
||||
char *filemgrMenuTextInsertOriginalPak(struct menuitem *item);
|
||||
void filemgrRetrySave(s32 arg0);
|
||||
bool fileSave(s32 arg0, bool arg1);
|
||||
bool func0f1094e4(struct savelocation_2d8 *arg0, s32 arg1, void *arg2);
|
||||
bool filemgrAttemptOperation(s32 arg0, bool arg1);
|
||||
bool func0f1094e4(struct savelocation_2d8 *arg0, s32 fileop, void *arg2);
|
||||
void filemgrDeleteCurrentFile(void);
|
||||
void func0f1097d0(s32 device);
|
||||
void func0f109954(s32 arg0);
|
||||
@@ -36,7 +36,7 @@ char *filemgrMenuTextDeviceNameContainingDuplicateFile(struct menuitem *item);
|
||||
char *filemgrMenuTextDuplicateFileName(struct menuitem *item);
|
||||
char *filemgrMenuTextLocationName2(struct menuitem *item);
|
||||
char *filemgrMenuTextSaveLocationSpaces(struct menuitem *item);
|
||||
void filemgrPushSelectLocationDialog(s32 arg0, u32 arg1);
|
||||
void filemgrPushSelectLocationDialog(s32 arg0, u32 filetype);
|
||||
char *filemgrMenuTextFileInUseDescription(struct menuitem *item);
|
||||
Gfx *filemgrRenderPerfectHeadThumbnail(Gfx *gdl, struct menuitemrenderdata *renderdata, u32 arg2, u32 arg3);
|
||||
bool filemgrIsFileInUse(struct filelistfile *file);
|
||||
|
||||
@@ -128,7 +128,7 @@ s32 menuhandlerMpCheckboxOption(s32 operation, struct menuitem *item, union hand
|
||||
s32 menuhandlerMpTeamsEnabled(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpDisplayOptionCheckbox(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpConfirmSaveChr(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpPlayerName(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpSetupName(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpSaveSetupOverwrite(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpSaveSetupCopy(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
s32 menuhandlerMpCharacterBody(s32 operation, struct menuitem *item, union handlerdata *data);
|
||||
|
||||
+1
-1
@@ -4479,7 +4479,7 @@ struct menu {
|
||||
/*0xe3f*/ u8 listnum;
|
||||
/*0xe40*/ u8 unke40;
|
||||
/*0xe41*/ u8 unke41;
|
||||
/*0xe42*/ u8 unke42;
|
||||
/*0xe42*/ u8 fileop;
|
||||
/*0xe44*/ void *unke44;
|
||||
/*0xe48*/ u32 unke48;
|
||||
/*0xe4c*/ u32 unke4c;
|
||||
|
||||
Reference in New Issue
Block a user