fpc symbol names (#119)

* fpcCtIt_filter_JudgeInLayer

* dStage_roomControl_c::getZoneNo

* fix fpc symbol names

* format

* mUnk0 -> mLayerID

Co-authored-by: Pheenoh <pheenoh@gmail.com>
This commit is contained in:
lepelog
2021-03-28 14:07:21 -04:00
committed by GitHub
co-authored by Pheenoh
parent 5d26059b09
commit 88eb837a9c
34 changed files with 111 additions and 113 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ public:
void clearIndex();
void common_init(int xfb_number);
void delXfb(s32 index);
void delXfb(int index);
static JUTXfb* createManager(JKRHeap* heap, EXfbNumber xfb_number);
static void destroyManager();
void initiate(u16 width, u16 height, JKRHeap* heap, JUTXfb::EXfbNumber xfb_number);
@@ -1,7 +0,0 @@
/* 8002D9B0 0002A8F0 3C 80 80 3F */ lis r4, lbl_803F6094@ha
/* 8002D9B4 0002A8F4 38 84 60 94 */ addi r4, r4, lbl_803F6094@l
/* 8002D9B8 0002A8F8 1C 03 04 04 */ mulli r0, r3, 0x404
/* 8002D9BC 0002A8FC 7C 64 02 14 */ add r3, r4, r0
/* 8002D9C0 0002A900 88 63 03 F7 */ lbz r3, 0x3f7(r3)
/* 8002D9C4 0002A904 7C 63 07 74 */ extsb r3, r3
/* 8002D9C8 0002A908 4E 80 00 20 */ blr
+13 -1
View File
@@ -333,12 +333,13 @@ private:
u16 field_0x62;
int mVrboxNumInfo;
int mVrboxcolNumInfo;
};
}; // Size: 0x6C
#pragma pack(push, 1)
class dStage_roomControl_c {
public:
void init(void);
static int getZoneNo(int room);
private:
u8 field_0x0[164];
@@ -386,6 +387,17 @@ private:
};
#pragma pack(pop)
class dStage_roomStatus_c : dStage_roomDt_c {
private:
/* 0x06C */ u8 mJ3DLightInfo[0xA0 - 0x6C];
/* 0x0A0 */ u8 unk_A0[0x3F7 - 0xA0];
/* 0x3F7 */ s8 mZoneNo;
/* 0x3F8 */ u8 unk_3F8[0x404 - 0x3F8];
public:
int getZoneNo() const { return mZoneNo; }
}; // Size: 0x404
// unknown name
struct objectNameInfo {
char mName[8];
-23
View File
@@ -1,23 +0,0 @@
/* 80020A40 0001D980 94 21 FF F0 */ stwu r1, -0x10(r1)
/* 80020A44 0001D984 7C 08 02 A6 */ mflr r0
/* 80020A48 0001D988 90 01 00 14 */ stw r0, 0x14(r1)
/* 80020A4C 0001D98C 7C 85 23 78 */ mr r5, r4
/* 80020A50 0001D990 80 83 00 0C */ lwz r4, 0xc(r3)
/* 80020A54 0001D994 80 64 00 44 */ lwz r3, 0x44(r4)
/* 80020A58 0001D998 80 63 00 0C */ lwz r3, 0xc(r3)
/* 80020A5C 0001D99C 80 05 00 00 */ lwz r0, 0(r5)
/* 80020A60 0001D9A0 7C 03 00 40 */ cmplw r3, r0
/* 80020A64 0001D9A4 40 82 00 1C */ bne lbl_80020A80
/* 80020A68 0001D9A8 80 64 00 40 */ lwz r3, 0x40(r4)
/* 80020A6C 0001D9AC 80 85 00 08 */ lwz r4, 8(r5)
/* 80020A70 0001D9B0 81 85 00 04 */ lwz r12, 4(r5)
/* 80020A74 0001D9B4 7D 89 03 A6 */ mtctr r12
/* 80020A78 0001D9B8 4E 80 04 21 */ bctrl
/* 80020A7C 0001D9BC 48 00 00 08 */ b lbl_80020A84
lbl_80020A80:
/* 80020A80 0001D9C0 38 60 00 00 */ li r3, 0
lbl_80020A84:
/* 80020A84 0001D9C4 80 01 00 14 */ lwz r0, 0x14(r1)
/* 80020A88 0001D9C8 7C 08 03 A6 */ mtlr r0
/* 80020A8C 0001D9CC 38 21 00 10 */ addi r1, r1, 0x10
/* 80020A90 0001D9D0 4E 80 00 20 */ blr
+1 -1
View File
@@ -21,7 +21,7 @@ typedef struct node_judge_data {
} node_judge_data;
typedef struct fpcCtIt_jilprm_c {
u32 mUnk0;
u32 mLayerID;
fpcCtIt_JudgeFunc mFunc;
void* mpUserData;
} fpcCtIt_jilprm_c;
+3 -2
View File
@@ -5,9 +5,10 @@
#include "f/f_pc/f_pc_base.h"
#include "global.h"
typedef s32 (*cNdIt_MethodFuncFunc)(cNdIt_MethodFunc);
typedef int (*fpcDw_HandlerFunc)(void*, void*);
typedef int (*fpcDw_HandlerFuncFunc)(fpcDw_HandlerFunc);
s32 fpcDw_Execute(base_process_class* pProc);
s32 fpcDw_Handler(cNdIt_MethodFuncFunc param_1, cNdIt_MethodFunc param_2);
s32 fpcDw_Handler(fpcDw_HandlerFuncFunc param_1, fpcDw_HandlerFunc param_2);
#endif
+2 -1
View File
@@ -5,6 +5,7 @@
#include "SComponent/c_node_iter.h"
#include "f/f_pc/f_pc_base.h"
#include "f/f_pc/f_pc_layer_iter.h"
#include "f/f_pc/f_pc_line_iter.h"
base_process_class* fpcEx_Search(fpcLyIt_JudgeFunc pFunc, void* pUserData);
base_process_class* fpcEx_SearchByID(unsigned int id);
@@ -13,7 +14,7 @@ s32 fpcEx_ToLineQ(base_process_class* pProc);
s32 fpcEx_ExecuteQTo(base_process_class* pProc);
s32 fpcEx_Execute(base_process_class* pProc);
s32 fpcEx_ToExecuteQ(base_process_class* pProc);
void fpcEx_Handler(cNdIt_MethodFunc pFunc);
void fpcEx_Handler(fpcLnIt_QueueFunc pFunc);
extern "C" {
void fpcEx_IsExist__FUi(void);
+3 -4
View File
@@ -25,8 +25,8 @@ typedef struct layer_class {
void fpcLy_SetCurrentLayer(layer_class* pLayer);
layer_class* fpcLy_CurrentLayer(void);
layer_class* fpcLy_RootLayer(void);
layer_class* fpcLy_Layer(u32 id);
layer_class* fpcLy_Search(u32 id);
layer_class* fpcLy_Layer(unsigned int id);
layer_class* fpcLy_Search(unsigned int id);
void fpcLy_Regist(layer_class* pLayer);
void fpcLy_CreatedMesg(layer_class* pLayer);
@@ -46,8 +46,7 @@ BOOL fpcLy_CancelMethod(struct process_method_tag_class* pLayer);
void fpcLy_CancelQTo(struct process_method_tag_class* pMthd);
s32 fpcLy_ToCancelQ(layer_class* pLayer, struct process_method_tag_class* pMthd);
void fpcLy_Create(layer_class* pLayer, struct process_node_class* pPcNode, node_list_class* pLists,
s32 listNum);
void fpcLy_Create(layer_class* pLayer, void* pPcNode, node_list_class* pLists, int listNum);
s32 fpcLy_Delete(layer_class* pLayer);
+3 -2
View File
@@ -10,10 +10,11 @@ typedef struct layer_iter {
void* mpUserData;
} layer_iter;
typedef int (*fpcLyIt_OnlyHereFunc)(void*, void*);
typedef void* (*fpcLyIt_JudgeFunc)(void*, void*);
s32 fpcLyIt_OnlyHere(layer_class* pLayer, cNdIt_MethodFunc pFunc, void* pUserData);
s32 fpcLyIt_OnlyHereLY(layer_class* pLayer, cNdIt_MethodFunc pFunc, void* pUserData);
s32 fpcLyIt_OnlyHere(layer_class* pLayer, fpcLyIt_OnlyHereFunc pFunc, void* pUserData);
s32 fpcLyIt_OnlyHereLY(layer_class* pLayer, fpcLyIt_OnlyHereFunc pFunc, void* pUserData);
void* fpcLyIt_Judge(layer_class* pLayer, fpcLyIt_JudgeFunc pFunc, void* pUserData);
void* fpcLyIt_AllJudge(fpcLyIt_JudgeFunc pFunc, void* pUserData);
+4 -3
View File
@@ -14,8 +14,9 @@ typedef struct layer_management_tag_class {
} layer_management_tag_class;
s32 fpcLyTg_QueueTo(layer_management_tag_class* pTag);
s32 fpcLyTg_ToQueue(layer_management_tag_class* pTag, u32 layerID, u16 listID, u16 listPrio);
s32 fpcLyTg_Move(layer_management_tag_class*, u32, u16, u16);
s32 fpcLyTg_Init(layer_management_tag_class*, u32, void*);
s32 fpcLyTg_ToQueue(layer_management_tag_class* pTag, unsigned int layerID, u16 listID,
u16 listPrio);
s32 fpcLyTg_Move(layer_management_tag_class*, unsigned int, u16, u16);
s32 fpcLyTg_Init(layer_management_tag_class*, unsigned int, void*);
#endif
+3 -1
View File
@@ -4,6 +4,8 @@
#include "SComponent/c_node_iter.h"
void fpcLnIt_Queue(cNdIt_MethodFunc pFunc);
typedef int (*fpcLnIt_QueueFunc)(void*, void*);
void fpcLnIt_Queue(fpcLnIt_QueueFunc pFunc);
#endif
+2 -2
View File
@@ -10,9 +10,9 @@ typedef struct line_tag {
s32 mLineListID;
} line_tag;
s32 fpcLnTg_Move(line_tag* pLineTag, s32 newLineListID);
s32 fpcLnTg_Move(line_tag* pLineTag, int newLineListID);
void fpcLnTg_QueueTo(line_tag* pLineTag);
s32 fpcLnTg_ToQueue(line_tag* pLineTag, s32 lineListID);
s32 fpcLnTg_ToQueue(line_tag* pLineTag, int lineListID);
void fpcLnTg_Init(line_tag* pLineTag, void* pData);
#endif
+2 -2
View File
@@ -20,7 +20,7 @@ void fpcM_Draw(void* pProc);
s32 fpcM_DrawIterater(fpcM_DrawIteraterFunc pFunc);
void fpcM_Execute(void* pProc);
s32 fpcM_Delete(void* pProc);
BOOL fpcM_IsCreating(u32 pID);
BOOL fpcM_IsCreating(unsigned int pID);
void fpcM_Management(fpcM_ManagementFunc pFunc1, fpcM_ManagementFunc pFunc2);
void fpcM_Init(void);
base_process_class* fpcM_FastCreate(s16 pProcTypeID, FastCreateReqFunc param_2, void* param_3,
@@ -28,7 +28,7 @@ base_process_class* fpcM_FastCreate(s16 pProcTypeID, FastCreateReqFunc param_2,
s32 fpcM_IsPause(void* pProc, u8 param_2);
void fpcM_PauseEnable(void* pProc, u8 param_2);
void fpcM_PauseDisable(void* pProc, u8 param_2);
void* fpcM_JudgeInLayer(u32 pLayerID, fpcCtIt_JudgeFunc pFunc, void* pUserData);
void* fpcM_JudgeInLayer(unsigned int pLayerID, fpcCtIt_JudgeFunc pFunc, void* pUserData);
extern "C" {
void fpcM_Delete__FPv(void);
+1 -1
View File
@@ -4,7 +4,7 @@
#include "global.h"
typedef s32 (*process_method_func)(void*);
typedef int (*process_method_func)(void*);
typedef struct process_method_class {
process_method_func mpCreateFunc;
+3 -1
View File
@@ -5,6 +5,8 @@
#include "SComponent/c_list_iter.h"
#include "global.h"
void fpcMtdIt_Method(node_list_class* pList, cNdIt_MethodFunc pMethod);
typedef int (*fpcMtdIt_MethodFunc)(void*);
void fpcMtdIt_Method(node_list_class* pList, fpcMtdIt_MethodFunc pMethod);
#endif
+1 -1
View File
@@ -5,7 +5,7 @@
#include "SComponent/c_tag.h"
#include "global.h"
typedef s32 (*process_method_tag_func)(void*);
typedef int (*process_method_tag_func)(void*);
typedef struct process_method_tag_class {
create_tag_class mCreateTag;
+4 -3
View File
@@ -23,9 +23,10 @@ s32 fpcPi_QueueTo(process_priority_class* pPi);
s32 fpcPi_ToQueue(process_priority_class* pPi);
process_priority_class* fpcPi_GetFromQueue(void);
s32 fpcPi_Delete(process_priority_class* pPi);
s32 fpcPi_IsNormal(u32 layer, u16 listID, u16 priority);
s32 fpcPi_Change(process_priority_class* pPi, u32 layer, u16 listID, u16 priority);
s32 fpcPi_IsNormal(unsigned int layer, u16 listID, u16 priority);
s32 fpcPi_Change(process_priority_class* pPi, unsigned int layer, u16 listID, u16 priority);
s32 fpcPi_Handler(void);
s32 fpcPi_Init(process_priority_class* pPi, void* pUserData, u32 layer, u16 listID, u16 priority);
s32 fpcPi_Init(process_priority_class* pPi, void* pUserData, unsigned int layer, u16 listID,
u16 priority);
#endif
+1 -1
View File
@@ -48,7 +48,7 @@ JUTXfb::~JUTXfb() {
/* sManager */ lbl_80451550 = NULL;
}
void JUTXfb::delXfb(s32 index) {
void JUTXfb::delXfb(int index) {
if ((this->is_xfb_allocated[index] != false) && (this->xfb_buffer[index] != NULL)) {
delete this->xfb_buffer[index];
}
+4 -5
View File
@@ -5,6 +5,7 @@
#include "d/d_item/d_item/d_item.h"
#include "d/d_kankyo/d_kankyo.h"
#include "d/d_meter2/d_meter2_info/d_meter2_info.h"
#include "d/d_stage/d_stage.h"
#include "f/f_op/f_op_scene_mng.h"
#include "global.h"
#include "m_Do/m_Do_Reset/m_Do_Reset.h"
@@ -297,7 +298,7 @@ extern u8 lbl_803A71C4;
extern u8 lbl_80451D00;
extern u8 lbl_803A37C0;
extern u8 lbl_80451D04;
extern u8 lbl_803F6094;
extern dStage_roomStatus_c lbl_803F6094[0x40];
extern u8 lbl_80451D10;
extern u8 lbl_80451D08;
extern u8 lbl_803A71D0;
@@ -733,10 +734,8 @@ asm void dComIfGs_onZoneSwitch__Fii(void) {
}
// getZoneNo__20dStage_roomControl_cFi
// dStage_roomControl_c::getZoneNo(int)
asm int getZoneNo__20dStage_roomControl_cFi(int) {
nofralloc
#include "d/d_com/d_com_inf_game/asm/func_8002D9B0.s"
int dStage_roomControl_c::getZoneNo(int room) {
return lbl_803F6094[room].getZoneNo();
}
// dComIfGs_offZoneSwitch__Fii
+9 -9
View File
@@ -1391,7 +1391,7 @@ void dSv_info_c::onSwitch(int i_no, int i_roomNo) {
} else if (i_no < 0xc0) {
dungeon_bit.onSwitch(i_no - 0x80);
} else {
int zoneId = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneId = dStage_roomControl_c::getZoneNo(i_roomNo);
if (i_no < 0xE0) {
zones[zoneId].getZoneBit().onSwitch(i_no - 0xC0);
} else {
@@ -1410,7 +1410,7 @@ void dSv_info_c::offSwitch(int i_no, int i_roomNo) {
} else if (i_no < 0xc0) {
dungeon_bit.offSwitch(i_no - 0x80);
} else {
int zoneId = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneId = dStage_roomControl_c::getZoneNo(i_roomNo);
if (i_no < 0xE0) {
zones[zoneId].getZoneBit().offSwitch(i_no - 0xC0);
} else {
@@ -1430,7 +1430,7 @@ BOOL dSv_info_c::isSwitch(int i_no, int i_roomNo) const {
} else if (i_no < 0xc0) {
value = dungeon_bit.isSwitch(i_no - 0x80);
} else {
int zoneId = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneId = dStage_roomControl_c::getZoneNo(i_roomNo);
if ((zoneId < 0) || (zoneId >= 0x20)) {
value = FALSE;
} else {
@@ -1455,7 +1455,7 @@ BOOL dSv_info_c::revSwitch(int i_no, int i_roomNo) {
} else if (i_no < 0xC0) {
value = dungeon_bit.revSwitch(i_no - 0x80);
} else {
int zoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
if (i_no < 0xE0) {
value = zones[zoneNo].getZoneBit().revSwitch(i_no - 0xC0);
} else {
@@ -1476,7 +1476,7 @@ void dSv_info_c::onItem(int i_no, int i_roomNo) {
} else if (i_no < 0xA0) {
memory.getTempFlags().onItem(i_no - 0x80);
} else {
int zoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
if (i_no < 0xC0) {
zones[zoneNo].getZoneBit().onItem(i_no - 0xA0);
} else {
@@ -1496,7 +1496,7 @@ BOOL dSv_info_c::isItem(int i_no, int i_roomNo) const {
} else if (i_no < 0xA0) {
value = memory.getTempFlagsConst().isItem(i_no - 0x80);
} else {
int zoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
if (i_no < 0xC0) {
value = zones[zoneNo].getZoneBitConst().isItem(i_no - 0xA0);
} else {
@@ -1512,7 +1512,7 @@ void dSv_info_c::onActor(int i_id, int i_roomNo) {
return;
}
int zoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
zones[zoneNo].getZoneActor().on(i_id);
}
@@ -1521,7 +1521,7 @@ void dSv_info_c::offActor(int i_id, int i_roomNo) {
return;
}
int zoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int zoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
zones[zoneNo].getZoneActor().off(i_id);
}
@@ -1530,7 +1530,7 @@ BOOL dSv_info_c::isActor(int i_id, int i_roomNo) const {
return FALSE;
}
int ActorZoneNo = getZoneNo__20dStage_roomControl_cFi(i_roomNo);
int ActorZoneNo = dStage_roomControl_c::getZoneNo(i_roomNo);
return zones[ActorZoneNo].getZoneActorConst().is(i_id);
}

Some files were not shown because too many files have changed in this diff Show More