Decompile wipe.c
This commit is contained in:
parent
72c850b0fb
commit
f383e26929
12 changed files with 390 additions and 31 deletions
|
|
@ -12,16 +12,6 @@ typedef struct player_config {
|
|||
s16 iscom;
|
||||
} PlayerConfig;
|
||||
|
||||
typedef struct wipe_state {
|
||||
char unk00[0x30];
|
||||
float unk30;
|
||||
float duration;
|
||||
char unk38[0x11];
|
||||
u8 unk49;
|
||||
char unk4A[2];
|
||||
} WipeState;
|
||||
|
||||
|
||||
typedef struct system_state {
|
||||
/* 0x00 */ struct {
|
||||
u16 story : 1;
|
||||
|
|
|
|||
|
|
@ -86,6 +86,11 @@ static inline void GXPosition2f32(const f32 x, const f32 y) {
|
|||
GXWGFifo.f32 = y;
|
||||
}
|
||||
|
||||
static inline void GXPosition2u16(const u16 x, const u16 y) {
|
||||
GXWGFifo.u16 = x;
|
||||
GXWGFifo.u16 = y;
|
||||
}
|
||||
|
||||
static inline void GXPosition2s16(const s16 x, const s16 y) {
|
||||
GXWGFifo.s16 = x;
|
||||
GXWGFifo.s16 = y;
|
||||
|
|
|
|||
|
|
@ -13,9 +13,6 @@ void Hu3DCameraPerspectiveSet(s32, f32, f32, f32, f32);
|
|||
void Hu3DCameraViewportSet(s32, f32, f32, f32, f32, f32, f32);
|
||||
void HuAudFadeOut(s32 arg0);
|
||||
|
||||
void WipeCreate(char dir, char type, short duration);
|
||||
u8 WipeStatGet(void);
|
||||
|
||||
void Hu3DModelPosSet(s16 index, float x, float y, float z);
|
||||
void Hu3DModelRotSet(s16 index, float x, float y, float z);
|
||||
void Hu3DModelScaleSet(s16 index, float x, float y, float z);
|
||||
|
|
|
|||
42
include/game/wipe.h
Normal file
42
include/game/wipe.h
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
#ifndef _GAME_WIPE_H
|
||||
#define _GAME_WIPE_H
|
||||
|
||||
#include "dolphin.h"
|
||||
|
||||
#define WIPE_TYPE_NORMAL 0
|
||||
#define WIPE_TYPE_CROSS 1
|
||||
#define WIPE_TYPE_DUMMY 2
|
||||
#define WIPE_MODE_IN 1
|
||||
#define WIPE_MODE_OUT 2
|
||||
#define WIPE_MODE_BLANK 3
|
||||
|
||||
typedef struct wipe_state {
|
||||
u32 unk00;
|
||||
u32 unk04;
|
||||
void *copy_data;
|
||||
u32 unk0C;
|
||||
void *unk10[8];
|
||||
float time;
|
||||
float duration;
|
||||
u32 unk38;
|
||||
u16 w;
|
||||
u16 h;
|
||||
u16 x;
|
||||
u16 y;
|
||||
GXColor color;
|
||||
volatile u8 type;
|
||||
u8 mode;
|
||||
u8 stat;
|
||||
u8 keep_copy;
|
||||
} WipeState;
|
||||
|
||||
void WipeInit(GXRenderModeObj *rmode);
|
||||
void WipeExecAlways(void);
|
||||
void WipeCreate(s16 mode, s16 type, s16 duration);
|
||||
void WipeColorSet(u8 r, u8 g, u8 b);
|
||||
u8 WipeStatGet(void);
|
||||
|
||||
extern WipeState wipeData;
|
||||
extern BOOL wipeFadeInF;
|
||||
|
||||
#endif
|
||||
|
|
@ -4,7 +4,6 @@
|
|||
#include "dolphin.h"
|
||||
#include "common_structs.h"
|
||||
|
||||
extern WipeState wipeData;
|
||||
|
||||
extern PlayerConfig GWPlayerCfg[4];
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue