summaryrefslogtreecommitdiff
path: root/src/save.c
diff options
context:
space:
mode:
authorSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-07-23 16:04:31 -0300
committerSonic Dreamcaster <alejandro.asenjo88@gmail.com>2025-07-23 16:07:59 -0300
commit55a0b79bfc001ccb801927010b1c25e2d7782ea9 (patch)
tree8a060afa9b394181e62d2c4dd29cb2b7992205b1 /src/save.c
parentf9019a2548f51c725557f2495e9dc1791199ffd6 (diff)
Better controller pak with File deletion menubettercontrollerpak
Co-authored-by: Dario <dariosamo@gmail.com> Co-authored-by: Mr-Wiseguy <mrwiseguyromhacking@gmail.com>
Diffstat (limited to 'src/save.c')
-rw-r--r--src/save.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/save.c b/src/save.c
index abba01a42..10f3e332e 100644
--- a/src/save.c
+++ b/src/save.c
@@ -33,7 +33,9 @@ s8 sControllerPak2State = BAD;
// default time trial records in little endian form
const u8 D_800F2E60[4] = { 0xc0, 0x27, 0x09, 0x00 };
// osPfsFindFile -> gGameName ("MARIOKART64" in nosFont)
-const u8 gGameName[] = "MARIOKART64";
+const u8 gGameName[] = {
+ 0x26, 0x1a, 0x2b, 0x22, 0x28, 0x24, 0x1a, 0x2b, 0x2d, 0x16, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00
+};
// ext_name param to osPfsFindFile (four total bytes, but only one is setable)
const u8 gExtCode[] = { 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
@@ -867,9 +869,8 @@ s32 func_800B64EC(s32 arg0) {
}
sPlayerGhostReplay = (u32*) &D_802BFB80.arraySize8[0][D_80162DC8][3];
- temp_v0 =
- osPfsReadWriteFile(&gControllerPak1FileHandle, gControllerPak1FileNote, PFS_READ,
- (arg0 * (sizeof(u8) * 0x1000)) + 0x100, sizeof(u8) * 0x1000, (u8*) sPlayerGhostReplay);
+ temp_v0 = osPfsReadWriteFile(&gControllerPak1FileHandle, gControllerPak1FileNote, PFS_READ,
+ (arg0 * (sizeof(u8) * 0x1000)) + 0x100, sizeof(u8) * 0x1000, (u8*) sPlayerGhostReplay);
if (temp_v0 == 0) {
// clang-format off
phi_s1 = (u8 *) &D_8018EE10[arg0]; temp_s0 = 0; while (1) {