Introduce osSyncPrintf macro and rename func0f10f1b0 to savefilePrintFlags

This commit is contained in:
Ryan Dwyer
2020-03-26 22:50:59 +10:00
parent ca04bf4c57
commit 38a4816c5c
3 changed files with 6 additions and 8 deletions
+3 -7
View File
@@ -28,11 +28,6 @@
#include "lib/lib_4b170.h"
#include "types.h"
const char var7f1b38c0[] = "Flag %d = %s";
const char var7f1b38d0[] = "TRUE";
const char var7f1b38d8[] = "FALSE";
u32 *savefileGetFlags(void)
{
return &g_SoloSaveFile.flags;
@@ -53,12 +48,13 @@ u32 savefileHasFlag(u32 value)
return bitGetByIndex(value, &g_SoloSaveFile.flags);
}
void func0f10f1b0(void)
void savefilePrintFlags(void)
{
s32 i;
for (i = 0x23; i != 0x4f; i++) {
bitGetByIndex(i, &g_SoloSaveFile.flags);
osSyncPrintf("Flag %d = %s", i,
bitGetByIndex(i, &g_SoloSaveFile.flags) ? "TRUE" : "FALSE");
}
}
+2
View File
@@ -6,6 +6,8 @@
#define false 0
#define true 1
#define osSyncPrintf
#define ABS(val) (val > 0 ? val : -val)
#define ARRAYCOUNT(a) (s32)(sizeof(a) / sizeof(a[0]))
#define CHRRACE(chr) (chr ? chr->race : RACE_HUMAN)
+1 -1
View File
@@ -6,7 +6,7 @@
u32 savefileHasFlag(u32 value);
void savefileSetFlag(u32 value);
void savefileUnsetFlag(u32 value);
void func0f10f1b0(void);
void savefilePrintFlags(void);
void savefileApplyOptions(struct savefile_solo *file);
void savefileLoadDefaults(struct savefile_solo *file);
u32 func0f10fac8(void);