summaryrefslogtreecommitdiff
path: root/src/save.c
diff options
context:
space:
mode:
authorMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-31 13:04:39 -0700
committerMegaMech <7255464+MegaMech@users.noreply.github.com>2024-12-31 13:04:39 -0700
commit3cdffe421b9717aeea76b09e3c16abb9de2ce6bb (patch)
treeb0016c1c5569049289864fd2e37d800620584d7e /src/save.c
parent1101dcafb08a1f17b06306ff44a9d869ffeb7862 (diff)
Big 19750 renames
Diffstat (limited to 'src/save.c')
-rw-r--r--src/save.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/save.c b/src/save.c
index 82d3ea2e5..29e8b7068 100644
--- a/src/save.c
+++ b/src/save.c
@@ -5,7 +5,7 @@
#include "save.h"
-#include "code_80091750.h"
+#include "menu_items.h"
#include "menus.h"
#include "save_data.h"
#include "staff_ghosts.h"
@@ -425,21 +425,21 @@ u8 func_800B5508(s32 cup, s32 ccGrandPrixPoints, s32 points_scored) {
// Check if all 4 cups have gold cups scored
// for a given CC mode
-s32 func_800B5530(s32 cc_mode) {
+s32 is_cc_mode_complete(s32 cc_mode) {
if (gSaveData.main.saveInfo.grandPrixPoints[cc_mode] == 0xFF) {
- return 1;
+ return true;
}
- return 0;
+ return false;
}
// Check if the 150CC mode has all 4 gold cups
s32 has_unlocked_extra_mode(void) {
- return func_800B5530(CC_150);
+ return is_cc_mode_complete(CC_150);
}
// Check if the Extra mode has all 4 gold cups
s32 has_completed_extra_mode(void) {
- return func_800B5530(CC_EXTRA);
+ return is_cc_mode_complete(CC_EXTRA);
}
void func_800B559C(s32 arg0) {
@@ -911,7 +911,7 @@ s32 func_800B65F4(s32 arg0, s32 arg1) {
writeStatus = osPfsReadWriteFile(&gControllerPak2FileHandle, gControllerPak2FileNote, 0U, (arg0 * 0x3C00) + 0x100,
0x00003C00, (u8*) D_800DC714);
if (writeStatus == 0) {
- temp_s3 = &((struct_8018EE10_entry*) D_8018D9C0)[arg0];
+ temp_s3 = &((struct_8018EE10_entry*) gSomeDLBuffer)[arg0];
for (i = 0; i < 0x3C; i++) {
if (temp_s3->unk_07[i] != func_800B60E8(i)) {
temp_s3->ghostDataSaved = 0;
@@ -942,14 +942,14 @@ void func_800B6798(void) {
s32 temp_s0;
u8* tmp;
- tmp = (u8*) D_8018D9C0;
+ tmp = (u8*) gSomeDLBuffer;
osPfsReadWriteFile(&gControllerPak2FileHandle, gControllerPak2FileNote, PFS_READ, 0,
0x100 /* 2*sizeof(struct_8018EE10_entry) ? */, tmp);
for (temp_s0 = 0; temp_s0 < 2; ++temp_s0) {
- // if (D_8018D9C0[temp_s0]->checksum != func_800B68F4(temp_s0)) {
- // D_8018D9C0[temp_s0]->ghostDataSaved = 0;
+ // if (gSomeDLBuffer[temp_s0]->checksum != func_800B68F4(temp_s0)) {
+ // gSomeDLBuffer[temp_s0]->ghostDataSaved = 0;
// }
if (((struct_8018EE10_entry*) (tmp + (temp_s0 << 7)))->checksum != func_800B68F4(temp_s0)) {
((struct_8018EE10_entry*) (tmp + (temp_s0 << 7)))->ghostDataSaved = 0;
@@ -974,7 +974,7 @@ u8 func_800B68F4(s32 arg0) {
s32 i;
checksum = 0;
for (i = 0; i < 0x43; i++) {
- u8* addr = &((u8*) D_8018D9C0)[arg0];
+ u8* addr = &((u8*) gSomeDLBuffer)[arg0];
checksum += addr[i] * multiplier + i;
}
return checksum;