Decompile filemgrIsNameAvailable

This commit is contained in:
Ryan Dwyer
2021-09-10 22:17:07 +10:00
parent 6d34869161
commit b03c3fa75b
4 changed files with 188 additions and 273 deletions
+5 -5
View File
@@ -6,11 +6,11 @@
char *filemgrGetDeviceName(s32 index);
char *filemgrMenuTextDeviceName(struct menuitem *item);
void filemgrGetFileName(char *buffer, struct savelocation000 *arg1, u32 filetype);
void filemgrGetSelectName(char *buffer, struct filelistfile *file, u32 filetype);
char *filemgrMenuTextDeleteFileName(struct menuitem *item);
void func0f108324(s32 arg0);
void func0f1083b0(struct savelocation000 *arg0);
void func0f1083d0(struct savelocation000 *arg0, s32 filetype);
void func0f1083b0(struct filelistfile *file);
void func0f1083d0(struct filelistfile *file, s32 filetype);
char *filemgrMenuTextFailReason(struct menuitem *item);
char *filemgrMenuTextDeviceNameForError(struct menuitem *item);
void filemgrPushErrorDialog(u16 errno);
@@ -27,7 +27,7 @@ bool func0f1094e4(struct savelocation_2d8 *arg0, s32 arg1, void *arg2);
void filemgrDeleteCurrentFile(void);
void func0f1097d0(s32 device);
void func0f109954(s32 arg0);
void func0f1099a8(char *buffer, struct savelocation000 *arg1);
void filemgrGetFileName(char *dst, struct filelistfile *file);
void filemgrGetRenameName(char *buffer);
void filemgrSetRenameName(char *name);
bool filemgrIsNameAvailable(s32 arg0);
@@ -39,7 +39,7 @@ char *filemgrMenuTextSaveLocationSpaces(struct menuitem *item);
void filemgrPushSelectLocationDialog(s32 arg0, u32 arg1);
char *filemgrMenuTextFileInUseDescription(struct menuitem *item);
Gfx *filemgrRenderPerfectHeadThumbnail(Gfx *gdl, struct menuitemrenderdata *renderdata, u32 arg2, u32 arg3);
bool filemgrIsFileInUse(struct savelocation000 *arg0);
bool filemgrIsFileInUse(struct filelistfile *file);
s32 filemgrFileToCopyOrDeleteListMenuHandler(s32 operation, struct menuitem *item, union handlerdata *data, bool isdelete);
void filemgrPushDeleteFileDialog(s32 listnum);
char *pakMenuTextPagesFree(struct menuitem *item);
+3 -3
View File
@@ -4457,7 +4457,7 @@ struct menu {
/*0xe30*/ u32 unke30;
/*0xe34*/ u16 errno;
/*0xe38*/ struct savelocation000 *unke38;
/*0xe38*/ struct filelistfile *unke38;
/*0xe3c*/ u8 unke3c;
/*0xe3d*/ u8 unke3d;
/*0xe3e*/ u8 unke3e;
@@ -4648,7 +4648,7 @@ struct mparena {
u16 name;
};
struct savelocation000 {
struct filelistfile {
u32 unk00;
u16 unk04;
char unk06[6]; // length unknown
@@ -4661,7 +4661,7 @@ struct savelocation000 {
// devices. For example, the copy file dialog might list all MP player files
// from all devices in one listing, and that information is stored here.
struct filelist {
/*0x000*/ struct savelocation000 unk000[30];
/*0x000*/ struct filelistfile files[30];
/*0x2d0*/ s16 numfiles;
/*0x2d2*/ s8 spacesfree[4];
/*0x2d8*/ struct savelocation_2d8 unk2d8[4];