Fix some data types in hsfman.c
This commit is contained in:
parent
c122c41d2e
commit
548a123ce5
4 changed files with 25 additions and 34 deletions
|
|
@ -69,10 +69,10 @@ typedef struct hsf_header {
|
|||
} HsfHeader;
|
||||
|
||||
typedef struct hsf_scene {
|
||||
GXColor unk0;
|
||||
f32 unk4;
|
||||
f32 unk8;
|
||||
u32 unkC;
|
||||
GXFogType fogType;
|
||||
f32 start;
|
||||
f32 end;
|
||||
GXColor color;
|
||||
} HsfScene;
|
||||
|
||||
typedef struct hsf_bitmap {
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@ typedef struct ThreeDCameraStruct {
|
|||
typedef struct ThreeDProjectionStruct {
|
||||
s8 unk_00;
|
||||
char unk_01[0x3];
|
||||
u32 unk_04;
|
||||
AnimData *unk_04;
|
||||
char unk_08[0xC];
|
||||
Point3d unk_14;
|
||||
Point3d unk_20;
|
||||
|
|
@ -67,10 +67,5 @@ typedef struct ThreeDShadowStruct {
|
|||
void*unk_04;
|
||||
char unk_08[0x90];
|
||||
} ThreeDShadowStruct;
|
||||
typedef struct fog_data {
|
||||
GXFogType fogType;
|
||||
f32 start;
|
||||
f32 end;
|
||||
GXColor color;
|
||||
} FogStruct;
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -257,8 +257,8 @@ static void SceneLoad(void)
|
|||
if(head.scene.count) {
|
||||
file_scene = (HsfScene *)((u32)fileptr+head.scene.ofs);
|
||||
new_scene = file_scene;
|
||||
new_scene->unk8 = file_scene->unk8;
|
||||
new_scene->unk4 = file_scene->unk4;
|
||||
new_scene->end = file_scene->end;
|
||||
new_scene->start = file_scene->start;
|
||||
Model.scene = new_scene;
|
||||
Model.sceneCnt = head.scene.count;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,19 +5,17 @@ void Hu3DFogClear(void);
|
|||
void Hu3DLighInit(void);
|
||||
void Hu3DMotionInit(void);
|
||||
void Hu3DParManInit(void);
|
||||
char *HuSprAnimRead(char*);
|
||||
void HuSprAnimKill(s32);
|
||||
|
||||
s16 Hu3DCameraExistF;
|
||||
ModelData Hu3DData[0x200] = {};
|
||||
ThreeDCameraStruct Hu3DCamera[0x10] = {};
|
||||
s16 layerNum[8] = {};
|
||||
void (*layerHook[8])(s16) = {};
|
||||
char *reflectAnim[5] = {};
|
||||
char *hiliteAnim[4] = {};
|
||||
AnimData *reflectAnim[5] = {};
|
||||
AnimData *hiliteAnim[4] = {};
|
||||
ThreeDProjectionStruct Hu3DProjection[4] = {};
|
||||
ThreeDShadowStruct Hu3DShadowData = {};
|
||||
FogStruct FogData = {};
|
||||
HsfScene FogData = {};
|
||||
Mtx Hu3DCameraMtx = {};
|
||||
Mtx Hu3DCameraMtxXPose = {};
|
||||
s16 Hu3DPauseF;
|
||||
|
|
@ -27,28 +25,26 @@ s32 Hu3DShadowF;
|
|||
u16 NoSyncF;
|
||||
f32 lbl_801D4AB0;
|
||||
s32 modelKillAllF;
|
||||
char refMapData0[0x1240] = {};
|
||||
char refMapData1[0x1100] = {};
|
||||
char refMapData2[0x2080] = {};
|
||||
char refMapData3[0x2080] = {};
|
||||
char refMapData4[0x2080] = {};
|
||||
char toonMapData[0x880] = {};
|
||||
char toonMapData2[0x1080] = {};
|
||||
char hiliteData[0x480] = {};
|
||||
char hiliteData2[0x480] = {};
|
||||
char hiliteData3[0x480] = {};
|
||||
char hiliteData4[0x480] = {};
|
||||
#include "refMapData0.inc"
|
||||
#include "refMapData1.inc"
|
||||
#include "refMapData2.inc"
|
||||
#include "refMapData3.inc"
|
||||
#include "refMapData4.inc"
|
||||
#include "toonMapData.inc"
|
||||
#include "toonMapData2.inc"
|
||||
#include "hiliteData.inc"
|
||||
#include "hiliteData2.inc"
|
||||
#include "hiliteData3.inc"
|
||||
#include "hiliteData4.inc"
|
||||
const char lbl_8012D630[] = "Error: Not Found %s for MipMapSet\n";
|
||||
s16 reflectMapNo;
|
||||
char *toonAnim;
|
||||
AnimData *toonAnim;
|
||||
GXColor BGColor;
|
||||
void Hu3DAnimInit(void);
|
||||
void Hu3DFogClear(void);
|
||||
void Hu3DLighInit(void);
|
||||
void Hu3DMotionInit(void);
|
||||
void Hu3DParManInit(void);
|
||||
char *HuSprAnimRead(char*);
|
||||
void HuSprAnimKill(s32);
|
||||
|
||||
|
||||
extern s16 Hu3DCameraBit;
|
||||
|
|
@ -101,7 +97,7 @@ void Hu3DInit(void) {
|
|||
Hu3DAnimInit();
|
||||
Hu3DParManInit();
|
||||
for (i = 0; i < 4; i++) {
|
||||
Hu3DProjection[i].unk_04 = 0;
|
||||
Hu3DProjection[i].unk_04 = NULL;
|
||||
}
|
||||
Hu3DShadowCamBit = 0;
|
||||
Hu3DShadowData.unk_04 = 0;
|
||||
|
|
@ -304,7 +300,7 @@ void Hu3DShadowSizeSet(u16 arg0) {
|
|||
|
||||
void Hu3DProjectionKill(s16 arg0) {
|
||||
HuSprAnimKill(Hu3DProjection[arg0].unk_04);
|
||||
Hu3DProjection[arg0].unk_04 = 0;
|
||||
Hu3DProjection[arg0].unk_04 = NULL;
|
||||
}
|
||||
|
||||
void Hu3DProjectionPosSet(s16 arg0, Vec arg1, Vec arg2, Vec arg3) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue