Skip to content

Commit

Permalink
Merge branch 'master' into newmk
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaMech authored Apr 17, 2024
2 parents 055fd23 + e054740 commit 6e47922
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 59 deletions.
45 changes: 0 additions & 45 deletions asm/non_matchings/save/func_800B69BC.s

This file was deleted.

18 changes: 4 additions & 14 deletions src/save.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,30 +995,20 @@ u8 func_800B68F4(s32 arg0) {
GLOBAL_ASM("asm/non_matchings/save/func_800B68F4.s")
#endif

#ifdef NON_MATCHING
// Stack nonsense. As it stands now there's too much on the stack, but everything else is fine
// But if you try to reduce the stack you get bigger issues. No idea what's going on
s32 func_800B69BC(s32 arg0) {
s32 i;
s32 offset;
struct_8018EE10_entry *plz;

offset = sizeof(struct_8018EE10_entry);
offset *= arg0;
struct_8018EE10_entry *plz = &D_8018EE10[arg0];

plz = &D_8018EE10[arg0];
plz->ghostDataSaved = FALSE;
plz->courseIndex = 0;
plz->characterId = 0;
for (i = 0; i < 60; i++) {
for (i = 0; i < sizeof(plz->unk_07); i++) {
plz->unk_07[i] = i;
}
plz->checksum = func_800B6828(arg0);
return osPfsReadWriteFile(&gControllerPak1FileHandle, gControllerPak1FileNote, PFS_WRITE, offset, sizeof(struct_8018EE10_entry), (u8 *)plz);

return osPfsReadWriteFile(&gControllerPak1FileHandle, gControllerPak1FileNote, PFS_WRITE, (s32) sizeof(struct_8018EE10_entry) * arg0, sizeof(struct_8018EE10_entry), (u8 *)plz);
}
#else
GLOBAL_ASM("asm/non_matchings/save/func_800B69BC.s")
#endif

s32 func_800B6A68(void) {
UNUSED s32 pad;
Expand Down

0 comments on commit 6e47922

Please sign in to comment.