mirror of
https://gitlab.com/ryandwyer/perfect-dark
synced 2026-07-31 23:58:38 -04:00
Introduce osSyncPrintf macro and rename func0f10f1b0 to savefilePrintFlags
This commit is contained in:
+3
-7
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user