Cleanup, and documenting (#583)

* Some amount of documenting in printf.c

* Formatter, and do some mild cleanup and documentation in menu.c

* Fix gSaveMenuObjectIndices

* Use ObjectTransform in MenuAsset as it's what's being passed to cam_push_model_mtx

* Fix warnings and format

* Cleanup some objects.c code and it's usage of casting.

* Add Object to Object_64

* Much better score for func_8000B750

* Match func_8000B750

* Update score

* Do some naming

* Sorry one more better documenting!
This commit is contained in:
Ryan Myers
2025-05-21 12:56:15 -04:00
committed by GitHub
parent 2ac56bae9c
commit 97aaf39e64
24 changed files with 391 additions and 388 deletions
+6
View File
@@ -170,6 +170,11 @@ typedef struct ObjPropertyTimeTrial {
struct ObjectHeader *header;
} ObjPropertyTimeTrial;
typedef struct ObjPropertyBoost {
struct Object *obj;
s32 unk4;
} ObjPropertyBoost;
typedef struct ObjProperties {
union {
ObjPropertyCommon common;
@@ -204,6 +209,7 @@ typedef struct ObjProperties {
ObjPropertyWeapon weapon;
ObjPropertyCamControl camControl;
ObjPropertyTimeTrial timeTrial;
ObjPropertyBoost boost;
};
} ObjProperties;
+4
View File
@@ -1660,6 +1660,7 @@ typedef struct Object_CharacterSelect {
typedef struct Object_64 {
union {
struct Object *obj;
Object_Laser laser;
Object_TrophyCabinet trophy_cabinet;
Object_Animator animator;
@@ -1761,7 +1762,10 @@ typedef struct unk800B2260_C {
/* Size: 0x018 bytes */
typedef struct ObjectTransform {
/* 0x0000 */ Vec3s rotation;
union {
/* 0x0006 */ s16 flags;
/* 0x0006 */ s16 spriteID;
};
/* 0x0008 */ f32 scale;
/* 0x000C */ f32 x_position;
/* 0x0010 */ f32 y_position;