This commit is contained in:
TakaRikka
2025-11-30 14:35:25 -08:00
2422 changed files with 53851 additions and 74495 deletions
+1 -79
View File
@@ -45,7 +45,6 @@ public:
void genMessage(JORMContext*);
};
/* 800056C0-80005728 000000 0068+00 1/1 0/0 0/0 .text version_check__Fv */
void version_check() {
#if !PLATFORM_SHIELD
if (!strcmp("20Apr2004", "20Apr2004") && !strcmp("Patch2", "Patch2")) {
@@ -59,42 +58,32 @@ void version_check() {
#endif
}
/* 803A2EE0-803A2EF4 000000 0012+02 2/2 1/1 0/0 .data COPYDATE_STRING__7mDoMain */
char mDoMain::COPYDATE_STRING[18] = "??/??/?? ??:??:??";
/* 803D32E0-803D3308 000000 0028+00 3/2 0/0 0/0 .bss RootHeapCheck */
// static HeapCheck RootHeapCheck;
static HeapCheck RootHeapCheck = HeapCheck(0,"Root","ルート");
/* 803D3308-803D3330 000028 0028+00 1/2 0/0 0/0 .bss SystemHeapCheck */
// static HeapCheck SystemHeapCheck;
static HeapCheck SystemHeapCheck = HeapCheck(0,"System","システム");
/* 803D3330-803D3358 000050 0028+00 1/2 0/0 0/0 .bss ZeldaHeapCheck */
// static HeapCheck ZeldaHeapCheck;
static HeapCheck ZeldaHeapCheck = HeapCheck(0,"Zelda","ゼルダ");
/* 803D3358-803D3380 000078 0028+00 1/2 0/0 0/0 .bss GameHeapCheck */
// static HeapCheck GameHeapCheck;
static HeapCheck GameHeapCheck = HeapCheck(0,"Game","ゲーム");
/* 803D3380-803D33A8 0000A0 0028+00 1/2 0/0 0/0 .bss ArchiveHeapCheck */
// static HeapCheck ArchiveHeapCheck;
static HeapCheck ArchiveHeapCheck = HeapCheck(0,"Archive","アーカイブ");
/* 803D33A8-803D33D0 0000C8 0028+00 1/2 0/0 0/0 .bss J2dHeapCheck */
// static HeapCheck J2dHeapCheck;
static HeapCheck J2dHeapCheck = HeapCheck(0,"J2d","J2D");
/* 803D33D0-803D33F8 0000F0 0028+00 1/2 0/0 0/0 .bss HostioHeapCheck */
// static HeapCheck HostioHeapCheck;
static HeapCheck HostioHeapCheck = HeapCheck(0,"Hostio","ホストIO");
/* 803D33F8-803D3420 000118 0028+00 1/2 0/0 0/0 .bss CommandHeapCheck */
// static HeapCheck CommandHeapCheck;
static HeapCheck CommandHeapCheck = HeapCheck(0,"Command","コマンド");
/* 803A2EF4-803A2F14 -00001 0020+00 1/2 0/0 0/0 .data HeapCheckTable */
static HeapCheck* HeapCheckTable[8] = {
&RootHeapCheck, &SystemHeapCheck, &ZeldaHeapCheck, &GameHeapCheck,
&ArchiveHeapCheck, &J2dHeapCheck, &HostioHeapCheck, &CommandHeapCheck,
@@ -116,7 +105,6 @@ void printFrameLine() {
calendar.hour, calendar.min, calendar.sec, calendar.msec, calendar.usec);
}
/* 80005728-8000578C 000068 0064+00 1/1 0/0 0/0 .text CheckHeap1__9HeapCheckFv */
void HeapCheck::CheckHeap1() {
s32 totalUsedSize = mHeap->getTotalUsedSize();
s32 freeSize = mHeap->getFreeSize();
@@ -128,7 +116,6 @@ void HeapCheck::CheckHeap1() {
mMaxTotalFreeSize = freeSize;
}
/* 8000578C-80005848 0000CC 00BC+00 1/1 0/0 0/0 .text CheckHeap__FUl */
void CheckHeap(u32 i_padNo) {
mDoMch_HeapCheckAll();
OSCheckActiveThreads();
@@ -143,7 +130,6 @@ void CheckHeap(u32 i_padNo) {
}
}
/* 80005848-800058A0 000188 0058+00 2/2 0/0 0/0 .text countUsed__FP10JKRExpHeap */
static int countUsed(JKRExpHeap* heap) {
OSDisableScheduler();
@@ -158,12 +144,10 @@ static int countUsed(JKRExpHeap* heap) {
return counter;
}
/* 800058A0-800058C4 0001E0 0024+00 2/2 0/0 0/0 .text getUsedCount__9HeapCheckCFv */
s32 HeapCheck::getUsedCount() const {
return countUsed(mHeap);
}
/* 800058C4-80005AD8 000204 0214+00 1/1 0/0 0/0 .text heapDisplay__9HeapCheckCFv */
void HeapCheck::heapDisplay() const {
s32 heap_size = mHeap->getHeapSize();
s32 used_count = heap_size - getTargetHeapSize();
@@ -190,7 +174,6 @@ void HeapCheck::heapDisplay() const {
int mDoMain::argument = -1;
#endif
/* 80450580-80450584 000000 0004+00 3/3 6/6 0/0 .sdata None */
s8 mDoMain::developmentMode = -1;
#ifdef DEBUG
@@ -198,30 +181,24 @@ u32 mDoMain::gameHeapSize = 0xFFFFFFFF;
u32 mDoMain::archiveHeapSize = 0xFFFFFFFF;
#endif
/* 80450584-80450588 000004 0004+00 0/0 1/1 0/0 .sdata memMargin__7mDoMain */
u32 mDoMain::memMargin = 0xFFFFFFFF;
#ifdef DEBUG
int mDoMain::e3menu_no = -1;
#endif
/* 80450588-80450590 000008 0008+00 2/2 0/0 0/0 .sdata None */
u8 mHeapBriefType = 4;
#if DEBUG
static u8 memorycheck_check_frame;
#endif
/* 80450B00-80450B08 000000 0008+00 1/1 0/0 0/0 .sbss None */
static u8 fillcheck_check_frame;
/* 80450B08-80450B0C 000008 0004+00 1/1 1/1 0/0 .sbss sPowerOnTime__7mDoMain */
OSTime mDoMain::sPowerOnTime;
/* 80450B10-80450B14 000010 0004+00 0/0 2/2 0/0 .sbss sHungUpTime__7mDoMain */
OSTime mDoMain::sHungUpTime;
/* 80450B18-80450B1C -00001 0004+00 3/3 0/0 0/0 .sbss None */
/* 80450B18 0001+00 data_80450B18 None */
static u8 mDisplayHeapSize;
@@ -240,7 +217,6 @@ static u8 mPrintFrameLine;
/* 80450B1A 0002+00 data_80450B1A None */
static u8 mCheckHeap;
/* 80005AD8-80005D4C 000418 0274+00 1/1 0/0 0/0 .text debugDisplay__Fv */
void debugDisplay() {
static const char* desc1[5] = {
"", "TotalFree", "MaxUsed ", "Used ", "RelUsed ",
@@ -510,7 +486,6 @@ void mDoMain_HIO_c::listenPropertyEvent(const JORPropertyEvent* property) {
}
#endif
/* 80005D4C-8000614C 00068C 0400+00 1/1 0/0 0/0 .text Debug_console__FUl */
bool Debug_console(u32 i_padNo) {
JUTConsole* console = JFWSystem::getSystemConsole();
if (console != NULL) {
@@ -615,9 +590,8 @@ bool Debug_console(u32 i_padNo) {
#define COPYDATE_PATH "/str/RVL/Debug/COPYDATE"
#endif
/* 8000614C-800061C8 000A8C 007C+00 1/1 0/0 0/0 .text LOAD_COPYDATE__FPv */
s32 LOAD_COPYDATE(void*) {
DVDFileInfo ALIGN_DECL(32) fileInfo;
DVDFileInfo ATTRIBUTE_ALIGN(32) fileInfo;
u8 buffer[32];
BOOL status = DVDOpen(COPYDATE_PATH, &fileInfo);
@@ -631,7 +605,6 @@ s32 LOAD_COPYDATE(void*) {
return status;
}
/* 800061C8-8000628C 000B08 00C4+00 1/1 0/0 0/0 .text debug__Fv */
static void debug() {
#if DEBUG
if (mPrintFrameLine) {
@@ -690,7 +663,6 @@ static void debug() {
}
}
/* 8000628C-80006454 000BCC 01C8+00 1/1 0/0 0/0 .text main01__Fv */
void main01(void) {
OS_REPORT("\x1b[m");
@@ -891,13 +863,10 @@ void parse_args(int argc, const char* argv[]) {
}
#endif
/* 803D3420-803DB420 000140 8000+00 1/1 0/0 0/0 .bss mainThreadStack */
static u8 mainThreadStack[32768];
/* 803DB420-803DB740 008140 0318+08 1/1 0/0 0/0 .bss mainThread */
static OSThread mainThread;
/* 80006454-800065D8 000D94 0184+00 0/0 1/1 0/0 .text main */
void game_main(int argc, const char* argv[]) {
OSThread* current_thread = OSGetCurrentThread();
u8* stack = mainThreadStack;
@@ -969,122 +938,75 @@ void game_main(int argc, const char* argv[]) {
OSSuspendThread(current_thread);
}
/* 800065D8-800065E0 000F18 0008+00 0/0 2/0 0/0 .text dump_sort__7JKRHeapFv */
bool JKRHeap::dump_sort() {
return true;
}
/* ############################################################################################## */
/* 80450B38-80450B3C 000038 0004+00 0/0 2/2 0/0 .sbss
* sInstance__34JASGlobalInstance<13Z2WolfHowlMgr> */
template<>
Z2WolfHowlMgr* JASGlobalInstance<Z2WolfHowlMgr>::sInstance;
/* 80450B3C-80450B40 00003C 0004+00 0/0 6/6 0/0 .sbss sInstance__31JASGlobalInstance<10Z2EnvSeMgr>
*/
template<>
Z2EnvSeMgr* JASGlobalInstance<Z2EnvSeMgr>::sInstance;
/* 80450B40-80450B44 000040 0004+00 0/0 6/6 0/0 .sbss
* sInstance__32JASGlobalInstance<11Z2FxLineMgr> */
template<>
Z2FxLineMgr* JASGlobalInstance<Z2FxLineMgr>::sInstance;
/* 80450B44-80450B48 000044 0004+00 0/0 18/18 0/0 .sbss
* sInstance__31JASGlobalInstance<10Z2Audience> */
template<>
Z2Audience* JASGlobalInstance<Z2Audience>::sInstance;
/* 80450B48-80450B4C 000048 0004+00 0/0 17/17 0/0 .sbss
* sInstance__34JASGlobalInstance<13Z2SoundObjMgr> */
template<>
Z2SoundObjMgr* JASGlobalInstance<Z2SoundObjMgr>::sInstance;
/* 80450B4C-80450B50 00004C 0004+00 0/0 10/10 0/0 .sbss
* sInstance__32JASGlobalInstance<11Z2SoundInfo> */
template<>
Z2SoundInfo* JASGlobalInstance<Z2SoundInfo>::sInstance;
/* 80450B50-80450B54 000050 0004+00 0/0 5/5 0/0 .sbss
* sInstance__33JASGlobalInstance<12JAUSoundInfo> */
template<>
JAUSoundInfo* JASGlobalInstance<JAUSoundInfo>::sInstance;
/* 80450B54-80450B58 000054 0004+00 0/0 2/2 0/0 .sbss
* sInstance__38JASGlobalInstance<17JAUSoundNameTable> */
template<>
JAUSoundNameTable* JASGlobalInstance<JAUSoundNameTable>::sInstance;
/* 80450B58-80450B5C 000058 0004+00 0/0 12/12 0/0 .sbss
* sInstance__34JASGlobalInstance<13JAUSoundTable> */
template<>
JAUSoundTable* JASGlobalInstance<JAUSoundTable>::sInstance;
/* 80450B5C-80450B60 00005C 0004+00 0/0 6/6 0/0 .sbss
* sInstance__33JASGlobalInstance<12JAISoundInfo> */
template<>
JAISoundInfo* JASGlobalInstance<JAISoundInfo>::sInstance;
/* 80450B60-80450B64 000060 0004+00 0/0 29/29 0/0 .sbss
* sInstance__31JASGlobalInstance<10Z2SoundMgr> */
template<>
Z2SoundMgr* JASGlobalInstance<Z2SoundMgr>::sInstance;
/* 80450B64-80450B68 000064 0004+00 0/0 2/2 0/0 .sbss
* sInstance__33JASGlobalInstance<12JAIStreamMgr> */
template<>
JAIStreamMgr* JASGlobalInstance<JAIStreamMgr>::sInstance;
/* 80450B68-80450B6C 000068 0004+00 0/0 3/3 0/0 .sbss sInstance__29JASGlobalInstance<9JAISeqMgr>
*/
template<>
JAISeqMgr* JASGlobalInstance<JAISeqMgr>::sInstance;
/* 80450B6C-80450B70 00006C 0004+00 0/0 4/4 0/0 .sbss sInstance__28JASGlobalInstance<8JAISeMgr> */
template<>
JAISeMgr* JASGlobalInstance<JAISeMgr>::sInstance;
/* 80450B70-80450B74 000070 0004+00 0/0 9/9 0/0 .sbss
* sInstance__33JASGlobalInstance<12Z2SpeechMgr2> */
template<>
Z2SpeechMgr2* JASGlobalInstance<Z2SpeechMgr2>::sInstance;
/* 80450B74-80450B78 000074 0004+00 0/0 22/22 0/0 .sbss
* sInstance__35JASGlobalInstance<14Z2SoundStarter> */
template<>
Z2SoundStarter* JASGlobalInstance<Z2SoundStarter>::sInstance;
/* 80450B78-80450B7C 000078 0004+00 0/0 2/2 0/0 .sbss
* sInstance__36JASGlobalInstance<15JAISoundStarter> */
template<>
JAISoundStarter* JASGlobalInstance<JAISoundStarter>::sInstance;
/* 80450B7C-80450B80 00007C 0004+00 0/0 34/34 0/0 .sbss
* sInstance__32JASGlobalInstance<11Z2StatusMgr> */
template<>
Z2StatusMgr* JASGlobalInstance<Z2StatusMgr>::sInstance;
/* 80450B80-80450B84 000080 0004+00 0/0 46/46 0/0 .sbss
* sInstance__31JASGlobalInstance<10Z2SceneMgr> */
template<>
Z2SceneMgr* JASGlobalInstance<Z2SceneMgr>::sInstance;
/* 80450B84-80450B88 000084 0004+00 0/0 38/38 0/0 .sbss sInstance__28JASGlobalInstance<8Z2SeqMgr>
*/
template<>
Z2SeqMgr* JASGlobalInstance<Z2SeqMgr>::sInstance;
/* 80450B88-80450B8C 000088 0004+00 0/0 25/25 0/0 .sbss sInstance__27JASGlobalInstance<7Z2SeMgr>
*/
template<>
Z2SeMgr* JASGlobalInstance<Z2SeMgr>::sInstance;
/* 80450B8C-80450B90 00008C 0004+00 0/0 6/6 0/0 .sbss
* sInstance__35JASGlobalInstance<14JASAudioThread> */
template<>
JASAudioThread* JASGlobalInstance<JASAudioThread>::sInstance;
/* 80450B90-80450B98 000090 0004+04 0/0 4/4 0/0 .sbss
* sInstance__40JASGlobalInstance<19JASDefaultBankTable> */
template<>
JASDefaultBankTable* JASGlobalInstance<JASDefaultBankTable>::sInstance;