From 8e131f3aa41b94ded86b66c2956d3aef816ece9b Mon Sep 17 00:00:00 2001 From: Ryan Dwyer Date: Fri, 14 Apr 2023 20:55:19 +1000 Subject: [PATCH] Find workaround for pheadSaveFile hack --- src/game/camdraw.c | 4 ++-- src/include/types.h | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/game/camdraw.c b/src/game/camdraw.c index b0c3bf123..346c6e4b9 100644 --- a/src/game/camdraw.c +++ b/src/game/camdraw.c @@ -3278,8 +3278,8 @@ s32 pheadSaveFile(s8 device, s32 fileid, u16 serial) thing->unk3f4_03 = true; } - file.unk8e_00 = thing->unk3f4_01 & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff; - file.unk8e_01 = thing->unk3f4_02 & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff & 0xff; + file.unk8e_00 = thing->unk3f4_01; + file.unk8e_01 = thing->unk3f4_02; file.unk8e_02 = thing->unk3a4; file.unk82 = thing->unk3bc; diff --git a/src/include/types.h b/src/include/types.h index eb8b8360d..25d1bca58 100644 --- a/src/include/types.h +++ b/src/include/types.h @@ -6185,11 +6185,11 @@ struct var8007f8e0 { // perfect head? /*0x3d0*/ f32 unk3d0[7]; /*0x3ec*/ s32 unk3ec; /*0x3f0*/ s32 unk3f0; - /*0x3f4*/ u32 unk3f4_00 : 1; - /*0x3f4*/ u32 unk3f4_01 : 1; - /*0x3f4*/ u32 unk3f4_02 : 1; - /*0x3f4*/ u32 unk3f4_03 : 1; - /*0x3f4*/ u32 unk3f4_04 : 1; + /*0x3f4*/ u16 unk3f4_00 : 1; + /*0x3f4*/ u16 unk3f4_01 : 1; + /*0x3f4*/ u16 unk3f4_02 : 1; + /*0x3f4*/ u16 unk3f4_03 : 1; + /*0x3f4*/ u16 unk3f4_04 : 1; /*0x3f8*/ struct fileguid fileguid; };