forked from Ports/perfect_dark
Prevent crash when copying player data
This commit is contained in:
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -913,7 +913,7 @@ const char var7f1b31ec[] = "Multiplayer %d was using that file...\n";
|
|||||||
*
|
*
|
||||||
* Return true if it worked, otherwise false.
|
* Return true if it worked, otherwise false.
|
||||||
*/
|
*/
|
||||||
bool filemgrSaveOrLoad(struct fileguid *guid, s32 fileop, u32 playernum)
|
bool filemgrSaveOrLoad(struct fileguid *guid, s32 fileop, uintptr_t playernum)
|
||||||
{
|
{
|
||||||
s32 device;
|
s32 device;
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ void filemgrEraseCorruptFile(void);
|
|||||||
char *filemgrMenuTextInsertOriginalPak(struct menuitem *item);
|
char *filemgrMenuTextInsertOriginalPak(struct menuitem *item);
|
||||||
void filemgrRetrySave(s32 arg0);
|
void filemgrRetrySave(s32 arg0);
|
||||||
bool filemgrAttemptOperation(s32 device, bool closeonsuccess);
|
bool filemgrAttemptOperation(s32 device, bool closeonsuccess);
|
||||||
bool filemgrSaveOrLoad(struct fileguid *guid, s32 fileop, u32 playernum);
|
bool filemgrSaveOrLoad(struct fileguid *guid, s32 fileop, uintptr_t playernum);
|
||||||
void filemgrDeleteCurrentFile(void);
|
void filemgrDeleteCurrentFile(void);
|
||||||
void func0f1097d0(s32 device);
|
void func0f1097d0(s32 device);
|
||||||
void filemgrSaveGameToDevice(s32 device);
|
void filemgrSaveGameToDevice(s32 device);
|
||||||
|
|||||||
+1
-1
@@ -3816,7 +3816,7 @@ struct menudata_filemgr {
|
|||||||
/*0xe42*/ u8 fileop;
|
/*0xe42*/ u8 fileop;
|
||||||
union {
|
union {
|
||||||
void *unke44;
|
void *unke44;
|
||||||
s32 mpplayernum;
|
intptr_t mpplayernum;
|
||||||
};
|
};
|
||||||
/*0xe48*/ u32 fileid;
|
/*0xe48*/ u32 fileid;
|
||||||
/*0xe4c*/ u32 deviceserial;
|
/*0xe4c*/ u32 deviceserial;
|
||||||
|
|||||||
Reference in new issue
Block a user