mirror of
https://github.com/izzy2lost/2ship2harkinian-Android.git
synced 2026-06-19 01:20:08 -07:00
z_kaleido_manager and z_kaleido_scope_call OK (#489)
* migrated data and bss for z_kaleido_manager, renamed ovl_Player_Actor to ovl_player_actor to make it work with the data * z_kaleido_manager OK * add to functions.h variables.h and variables.txt * init * rename parameters in func_80163700 * rename func_80163700 to KaleidoManager_FaultAddrConvFunc * change u32 casts to uintptr_t casts in z_kaleido_manager. (u8 *) casts must stay, they are the only casts that match * ran format, uintptr_t * made suggested changes
This commit is contained in:
+13
-13
@@ -1645,8 +1645,8 @@ UNK_TYPE func_800F41E4(GlobalContext* globalCtx, ActorContext* actorCtx);
|
||||
|
||||
void func_800F4A10(GlobalContext* globalCtx);
|
||||
void func_800F4C0C(GlobalContext* globalCtx);
|
||||
void func_800F4E20(GlobalContext* globalCtx);
|
||||
void func_800F4F28(GlobalContext* globalCtx);
|
||||
void KaleidoSetup_Init(GlobalContext* globalCtx);
|
||||
void KaleidoSetup_Destroy(GlobalContext* globalCtx);
|
||||
void Font_LoadChar(GlobalContext* globalCtx, u16 codePointIndex, s32 offset);
|
||||
void Font_LoadCharNES(GlobalContext* globalCtx, u8 codePointIndex, s32 offset);
|
||||
void Font_LoadMessageBoxEndIcon(Font* font, u16 icon);
|
||||
@@ -2888,17 +2888,17 @@ void ShrinkWindow_Draw(GraphicsContext* gfxCtx);
|
||||
// void func_801631DC(void);
|
||||
// void func_80163334(UNK_TYPE1 param_1, UNK_TYPE1 param_2, UNK_TYPE1 param_3, UNK_TYPE1 param_4, UNK_TYPE4 param_5, UNK_TYPE4 param_6);
|
||||
// void func_80163660(void);
|
||||
// void func_80163700(void);
|
||||
// void func_80163758(void);
|
||||
// void func_801637B4(void);
|
||||
void func_80163804(GlobalContext* globalCtx);
|
||||
// void func_8016388C(void);
|
||||
// void func_801638D8(void);
|
||||
// void func_801639A0(void);
|
||||
void func_801639EC(GlobalContext* globalCtx);
|
||||
void func_80163A38(GlobalContext* globalCtx);
|
||||
// void func_80163A58(void);
|
||||
// void func_80163C0C(void);
|
||||
void* KaleidoManager_FaultAddrConvFunc(void* address, void* param);
|
||||
void KaleidoManager_LoadOvl(KaleidoMgrOverlay* ovl);
|
||||
void KaleidoManager_ClearOvl(KaleidoMgrOverlay* ovl);
|
||||
void KaleidoManager_Init(GlobalContext* globalCtx);
|
||||
void KaleidoManager_Destroy();
|
||||
void* KaleidoManager_GetRamAddr(void* vram);
|
||||
void KaleidoScopeCall_LoadPlayer(void);
|
||||
void KaleidoScopeCall_Init(GlobalContext* globalCtx);
|
||||
void KaleidoScopeCall_Destroy(GlobalContext* globalCtx);
|
||||
void KaleidoScopeCall_Update(GlobalContext* globalCtx);
|
||||
void KaleidoScopeCall_Draw(GlobalContext* globalCtx);
|
||||
// void func_80163C90(void);
|
||||
// void func_80163D80(void);
|
||||
// void func_80163DC0(void);
|
||||
|
||||
@@ -73,7 +73,7 @@ DECLARE_OVERLAY_SEGMENT(opening)
|
||||
DECLARE_OVERLAY_SEGMENT(file_choose)
|
||||
DECLARE_OVERLAY_SEGMENT(daytelop)
|
||||
DECLARE_OVERLAY_SEGMENT(kaleido_scope)
|
||||
DECLARE_OVERLAY_SEGMENT(Player_Actor)
|
||||
DECLARE_OVERLAY_SEGMENT(player_actor)
|
||||
|
||||
DECLARE_OVERLAY_SEGMENT(En_Test)
|
||||
DECLARE_OVERLAY_SEGMENT(En_GirlA)
|
||||
|
||||
+5
-6
@@ -1550,10 +1550,9 @@ extern char D_801D0714[];
|
||||
// extern UNK_TYPE1 D_801D08E8;
|
||||
// extern UNK_TYPE1 D_801D0900;
|
||||
extern ActorInit Player_InitVars;
|
||||
// extern UNK_TYPE1 D_801D0B70;
|
||||
extern KaleidoMgrOverlay gKaleidoMgrOverlayTable[2];
|
||||
// extern UNK_TYPE1 D_801D0B8C;
|
||||
// extern UNK_TYPE4 D_801D0BA8;
|
||||
// extern UNK_TYPE4 D_801D0BAC;
|
||||
extern KaleidoMgrOverlay* gKaleidoMgrCurOvl;
|
||||
// extern UNK_TYPE4 D_801D0BB0;
|
||||
// extern UNK_TYPE1 D_801D0C80;
|
||||
// extern UNK_TYPE1 D_801D0CB0;
|
||||
@@ -3332,9 +3331,9 @@ extern ShrinkWindowContext gShrinkWindowContext;
|
||||
extern ShrinkWindowContext* gShrinkWindowContextPtr;
|
||||
// extern UNK_TYPE4 D_801F6B50;
|
||||
// extern UNK_TYPE1 D_801F6B58;
|
||||
// extern UNK_TYPE1 D_801F6BF0;
|
||||
// extern UNK_TYPE1 D_801F6C00;
|
||||
// extern UNK_TYPE1 D_801F6C04;
|
||||
extern FaultAddrConvClient sKaleidoAreaFaultClient;
|
||||
extern void (*sKaleidoScopeUpdateFunc)(GlobalContext* globalCtx);
|
||||
extern void (*sKaleidoScopeDrawFunc)(GlobalContext* globalCtx);
|
||||
// extern UNK_TYPE1 D_801F6C10;
|
||||
extern Input D_801F6C18;
|
||||
// extern UNK_TYPE1 D_801F6C30;
|
||||
|
||||
@@ -702,6 +702,22 @@ typedef struct {
|
||||
/* 0x344 */ u32 unk_344;
|
||||
} InterfaceContext; // size = 0x348
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ void* loadedRamAddr;
|
||||
/* 0x04 */ uintptr_t vromStart;
|
||||
/* 0x08 */ uintptr_t vromEnd;
|
||||
/* 0x0C */ void* vramStart;
|
||||
/* 0x10 */ void* vramEnd;
|
||||
/* 0x14 */ uintptr_t offset; // loadedRamAddr - vramStart
|
||||
/* 0x18 */ const char* name;
|
||||
} KaleidoMgrOverlay; // size = 0x1C
|
||||
|
||||
typedef enum {
|
||||
/* 0x00 */ KALEIDO_OVL_KALEIDO_SCOPE,
|
||||
/* 0x01 */ KALEIDO_OVL_PLAYER_ACTOR,
|
||||
/* 0x02 */ KALEID_OVL_MAX
|
||||
} KaleidoMgrOverlayType;
|
||||
|
||||
typedef struct {
|
||||
/* 0x00 */ u16 unk_0;
|
||||
/* 0x02 */ u16 unk_2;
|
||||
|
||||
Reference in New Issue
Block a user