From b5f7fb0100b048d71cfe2467cb5185d3819e791c Mon Sep 17 00:00:00 2001 From: koopthekoopa Date: Sun, 17 Nov 2024 10:45:49 +0000 Subject: [PATCH] Remove the "address" and "size" comments --- config/43E/splits.txt | 492 ++++++++++---------- config/43U/splits.txt | 18 +- include/bannerSound/BannerSoundPlayer.h | 2 +- include/channelScript/iplCSLibrary.h | 2 +- include/system/iplChannelScriptManager.h | 6 +- include/system/iplNand.h | 122 ++--- include/system/iplNandMeta.h | 2 +- include/system/iplNigaoe.h | 5 +- libs/NW4R/src/math/math_arithmetic.cpp | 10 +- libs/NW4R/src/math/math_triangular.cpp | 12 - libs/NW4R/src/math/math_types.cpp | 8 - libs/NW4R/src/ut/ut_LinkList.cpp | 22 +- libs/NW4R/src/ut/ut_list.cpp | 32 -- libs/RVLMiddleware/eZiText/src/zi8error.c | 9 - libs/RVL_SDK/src/base/PPCArch.c | 98 +--- libs/RVL_SDK/src/os/OSAlarm.c | 48 -- libs/RVL_SDK/src/os/__ppc_eabi_init.cpp | 21 - libs/RevoEX/src/net/NETVersion.c | 6 +- libs/RevoEX/src/net/crc.c | 8 - libs/RevoEX/src/net/wireless_macaddr.c | 4 - libs/RevoEX/src/nwc24/NWC24CHJump.c | 16 - libs/Runtime/src/__init_cpp_exceptions.cpp | 12 +- libs/Runtime/src/__mem.c | 17 - libs/Runtime/src/global_destructor_chain.c | 8 - libs/Runtime/src/runtime.c | 68 --- rules/BS2Libs/scene/sdChannelButton.mak | 14 + rules/BS2Libs/scene/sdChannelMemory.mak | 12 + rules/BS2Libs/scene/sdChannelSelect.mak | 13 +- rules/BS2Libs/scene/sdChannelTitle.mak | 12 + rules/BS2rules.mak | 8 +- src/BS2/BS2.c | 4 +- src/BS2/BS2Entry.c | 4 - src/BS2/BS2Init.c | 8 - src/BS2/BootStart.c | 14 +- src/channelScript/CHANSVm.c | 4 - src/iplwww/www_message.cpp | 22 +- src/iplwww/www_print.cpp | 14 +- src/iplwww/www_thread.cpp | 36 -- src/scene/backMenu/iplBackMenu.cpp | 41 -- src/scene/health/iplHealth.cpp | 60 --- src/scene/sceneMisc/iplReboot.cpp | 4 - src/scene/sceneSystem/iplFaderSceneBase.cpp | 10 +- src/scene/sceneSystem/iplSceneBase.cpp | 40 -- src/scene/setting/iplSettingBg.cpp | 24 - src/system/RIPL_BoardRecord.c | 10 - src/system/iplBS2Manager.cpp | 92 +--- src/system/iplChannelRsoThread.cpp | 21 - src/system/iplChannelScriptManager.cpp | 4 +- src/system/iplErrorHandler.cpp | 26 +- src/system/iplMessage.cpp | 18 +- src/system/iplMessageManager.cpp | 8 - src/system/iplNand.cpp | 218 ++------- src/system/iplNandMeta.cpp | 56 +-- src/system/iplNandSDWorker.cpp | 19 +- src/system/iplNandWall.cpp | 17 +- src/system/iplNandWrapper.cpp | 4 - src/system/iplNigaoe.cpp | 30 +- src/system/iplNigaoeManager.cpp | 41 +- src/system/iplPointer.cpp | 30 +- src/system/iplPointerCore.cpp | 37 +- src/system/iplResetHandler.cpp | 42 +- src/system/iplSystem.cpp | 8 +- src/system/iplWarningHandler.cpp | 20 - src/system/main.cpp | 11 +- src/system/odh.cpp | 4 - src/utility/iplCapture.cpp | 16 +- src/utility/iplMessageBase.cpp | 23 +- src/utility/iplThread.cpp | 43 +- src/utility/iplTree.cpp | 20 - 69 files changed, 491 insertions(+), 1719 deletions(-) create mode 100644 rules/BS2Libs/scene/sdChannelButton.mak create mode 100644 rules/BS2Libs/scene/sdChannelMemory.mak create mode 100644 rules/BS2Libs/scene/sdChannelTitle.mak diff --git a/config/43E/splits.txt b/config/43E/splits.txt index 939bbcbf..be069b8d 100644 --- a/config/43E/splits.txt +++ b/config/43E/splits.txt @@ -618,398 +618,398 @@ scene/channelSelect/iplChannelSelect.cpp: .sbss start:0x8169A9F8 end:0x8169AA00 scene/channelSelect/iplClock.cpp: - .text start:0x813B0A0C end:0x813B1584 + .text start:0x813B0A0C end:0x813B1680 .rodata start:0x816101F8 end:0x81610210 .data start:0x8164E498 end:0x8164E550 .sdata2 start:0x81696840 end:0x81696848 - .sdata start:0x816987A0 end:0x81696998 + .sdata start:0x816987A0 end:0x81698838 scene/channelSelect/iplChannelObj.cpp: - .text start:0x813B1584 end:0x813B4030 - .rodata start:0x8160FFD0 end:0x816102E0 - .data start:0x8164E290 end:0x8164E768 - .sdata2 start:0x816949A8 end:0x816949F0 - .sdata start:0x81696998 end:0x81696A10 - .sbss start:0x81698B60 end:0x81698B68 + .text start:0x813B1680 end:0x813B412C + .rodata start:0x81610210 end:0x81610520 + .data start:0x8164E550 end:0x8164EA28 + .sdata2 start:0x81696848 end:0x81696890 + .sdata start:0x81698838 end:0x816988B0 + .sbss start:0x8169AA00 end:0x8169AA08 scene/channelSelect/iplChannelTitle.cpp: .bss start:0x810B7340 end:0x810B74F8 - .text start:0x813B4030 end:0x813BB0A4 - .rodata start:0x816102E0 end:0x81610310 - .data start:0x8164E768 end:0x8164F0B8 - .sdata2 start:0x816949F0 end:0x81694A10 - .sdata start:0x81696A10 end:0x81696B00 + .text start:0x813B412C end:0x813BB1A0 + .rodata start:0x81610520 end:0x81610550 + .data start:0x8164EA28 end:0x8164F378 + .sdata2 start:0x81696890 end:0x816968B0 + .sdata start:0x816988B0 end:0x816989A0 scene/faceSelect/iplFaceSelect.cpp: - .text start:0x813BB0A4 end:0x813BD5D8 - .rodata start:0x81610310 end:0x81610328 - .data start:0x8164F0B8 end:0x8164F8B8 - .sdata2 start:0x81694A10 end:0x81694A30 - .sdata start:0x81696B00 end:0x81696B30 + .text start:0x813BB1A0 end:0x813BD6D4 + .rodata start:0x81610550 end:0x81610568 + .data start:0x8164F378 end:0x8164FB78 + .sdata2 start:0x816968B0 end:0x816968D0 + .sdata start:0x816989A0 end:0x816989D0 scene/health/iplHealth.cpp: - .text start:0x813BD5D8 end:0x813BE010 - .data start:0x8164F8B8 end:0x8164FB08 - .sdata start:0x81696B30 end:0x81696B60 + .text start:0x813BD6D4 end:0x813BE10C + .data start:0x8164FB78 end:0x8164FDC8 + .sdata start:0x816989D0 end:0x81698A00 scene/kitayamaTest/iplKitayamaTest.cpp: - .text start:0x813BE010 end:0x813BE9E8 - .data start:0x8164FB08 end:0x8164FD80 + .text start:0x813BE10C end:0x813BEAE4 + .data start:0x8164FDC8 end:0x81650040 scene/kitayamaTest/nandsdworker_autotest.cpp: - .text start:0x813BE9E8 end:0x813C02F8 - .data start:0x8164FD80 end:0x81650380 + .text start:0x813BEAE4 end:0x813C03F4 + .data start:0x81650040 end:0x81650640 scene/letterWriter/iplLetterWriter.cpp: - .text start:0x813C02F8 end:0x813C1AC4 - .data start:0x81650380 end:0x816505D8 - .sdata2 start:0x81694A30 end:0x81694A48 - .sdata start:0x81696B60 end:0x81696B68 + .text start:0x813C03F4 end:0x813C1BC0 + .data start:0x81650640 end:0x81650898 + .sdata2 start:0x816968D0 end:0x816968E8 + .sdata start:0x81698A00 end:0x81698A08 scene/limitOver/iplLimitOver.cpp: - .text start:0x813C1AC4 end:0x813C2418 - .data start:0x816505D8 end:0x816508D0 - .sdata start:0x81696B68 end:0x81696BC8 + .text start:0x813C1BC0 end:0x813C2514 + .data start:0x81650898 end:0x81650B90 + .sdata start:0x81698A08 end:0x81698A68 scene/mailAddSel/iplMailAddressSelect.cpp: - .text start:0x813C2418 end:0x813C3BCC - .data start:0x816508D0 end:0x81650C90 - .sdata start:0x81696BC8 end:0x81696BD8 + .text start:0x813C2514 end:0x813C3CC8 + .data start:0x81650B90 end:0x81650F50 + .sdata start:0x81698A68 end:0x81698A78 scene/memory/iplMemory.cpp: .bss start:0x810B74F8 end:0x810B7508 - .text start:0x813C3BCC end:0x813C6E84 - .rodata start:0x81610328 end:0x81610350 - .data start:0x81650C90 end:0x81651250 - .sdata2 start:0x81694A48 end:0x81694A58 - .sdata start:0x81696BD8 end:0x81696BF8 + .text start:0x813C3CC8 end:0x813C6F80 + .rodata start:0x81610568 end:0x81610568 + .data start:0x81650F50 end:0x81651504 + .sdata2 start:0x816968E8 end:0x816968F8 + .sdata start:0x81698A78 end:0x81698A98 scene/saveDataEdit/iplSaveDataBase.cpp: - .text start:0x813C6E84 end:0x813C7C70 - .data start:0x81651250 end:0x816516E0 - .sdata start:0x81696BF8 end:0x81696C20 + .text start:0x813C6F80 end:0x813C7D6C + .data start:0x81651504 end:0x816519A0 + .sdata start:0x81698A98 end:0x81698AC0 scene/saveDataEdit/iplSaveDataBox.cpp: - .text start:0x813C7C70 end:0x813C8484 - .data start:0x816516E0 end:0x81651860 - .sdata start:0x81696C20 end:0x81696C30 + .text start:0x813C7D6C end:0x813C8580 + .data start:0x816519A0 end:0x81651B20 + .sdata start:0x81698AC0 end:0x81698AD0 scene/saveDataEdit/iplSaveDataEdit.cpp: - .text start:0x813C8484 end:0x813C98CC - .rodata start:0x81610350 end:0x81610368 - .data start:0x81651860 end:0x81651D30 - .sdata2 start:0x81694A58 end:0x81694A68 - .sdata start:0x81696C30 end:0x81696C78 + .text start:0x813C8580 end:0x813C99C8 + .rodata start:0x81610568 end:0x816105A8 + .data start:0x81651B20 end:0x81651FF0 + .sdata2 start:0x816968F8 end:0x81696908 + .sdata start:0x81698AD0 end:0x81698B18 scene/saveDataEdit/iplWiiBannerFileInfo.cpp: - .text start:0x813C98CC end:0x813C9DCC + .text start:0x813C99C8 end:0x813C9EC8 scene/memoryCard/iplMemoryCard.cpp: - .text start:0x813C9DCC end:0x813CC1FC - .rodata start:0x81610368 end:0x81610480 - .data start:0x81651D30 end:0x81652640 - .sdata2 start:0x81694A68 end:0x81694A80 - .sdata start:0x81696C78 end:0x81696CA0 + .text start:0x813C9EC8 end:0x813CC2F8 + .rodata start:0x816105A8 end:0x816106C0 + .data start:0x81651FF0 end:0x81652900 + .sdata2 start:0x81696908 end:0x81696918 + .sdata start:0x81698B18 end:0x81698B40 scene/memoryCard/iplMemoryCardBase.cpp: - .text start:0x813CC1FC end:0x813CD034 - .data start:0x81652640 end:0x816526D0 - .sdata2 start:0x81694A80 end:0x81694A88 + .text start:0x813CC2F8 end:0x813CD130 + .data start:0x81652900 end:0x81652990 + .sdata2 start:0x81696918 end:0x81696928 scene/memoryCard/iplMemoryCardManager.cpp: - .text start:0x813CD034 end:0x813CE548 + .text start:0x813CD130 end:0x813CE644 scene/memoryCard/iplGCSaveData.cpp: - .text start:0x813CE548 end:0x813CED20 - .rodata start:0x81610480 end:0x816104A8 - .data start:0x816526D0 end:0x81652820 - .sdata start:0x81696CA0 end:0x81696CB0 + .text start:0x813CE644 end:0x813CF264 + .rodata start:0x816106C0 end:0x816106E8 + .data start:0x81652990 end:0x81652AE0 + .sdata start:0x81698B40 end:0x81698B50 scene/memoryCard/iplGCWindow.cpp: - .text start:0x813CED20 end:0x813D140C - .rodata start:0x816104A8 end:0x81610558 - .data start:0x81652820 end:0x81652F18 - .sdata2 start:0x81694A88 end:0x81694AA0 - .sdata start:0x81696CB0 end:0x81696CE0 + .text start:0x813CF264 end:0x813D1508 + .rodata start:0x816106E8 end:0x81610798 + .data start:0x81652AE0 end:0x816531D8 + .sdata2 start:0x81696928 end:0x81696940 + .sdata start:0x81698B50 end:0x81698B80 scene/memoryCard/iplGCTextBalloon.cpp: - .text start:0x813D140C end:0x813D2018 - .data start:0x81652F18 end:0x81652F68 - .sdata2 start:0x81694AA0 end:0x81694AC0 - .sdata start:0x81696CE0 end:0x81696CF8 + .text start:0x813D1508 end:0x813D2114 + .data start:0x816531D8 end:0x81653228 + .sdata2 start:0x81696940 end:0x81696960 + .sdata start:0x81698B80 end:0x81698B98 scene/memoryCard/CardSequence.cpp: - .text start:0x813D2018 end:0x813D4694 - .data start:0x81652F68 end:0x81653520 - .sdata start:0x81696CF8 end:0x81696D00 - .sbss start:0x81698B68 end:0x81698B70 + .text start:0x813D2114 end:0x813D4790 + .data start:0x81653228 end:0x816537E0 + .sdata start:0x81698B98 end:0x81698BA0 + .sbss start:0x8169AA08 end:0x8169AA10 scene/nakamuraTest/iplContest.c: .bss start:0x810B7508 end:0x810B8008 - .text start:0x813D4694 end:0x813D5564 - .rodata start:0x81610558 end:0x816105A0 - .data start:0x81653520 end:0x81653810 - .sdata2 start:0x81694AC0 end:0x81694AC8 - .sdata start:0x81696D00 end:0x81696D08 + .text start:0x813D4790 end:0x813D5660 + .rodata start:0x81610798 end:0x816107E0 + .data start:0x816537E0 end:0x81653AD0 + .sdata2 start:0x81696960 end:0x81696968 + .sdata start:0x81698BA0 end:0x81698BA8 scene/nakamuraTest/gamespy/NATify.c: - .text start:0x813D5564 end:0x813D5E8C - .sdata start:0x81696D08 end:0x81696D18 - .sbss start:0x81698B70 end:0x81698B90 + .text start:0x813D5660 end:0x813D5F88 + .sdata start:0x81698BA8 end:0x81698BB8 + .sbss start:0x8169AA10 end:0x8169AA30 scene/nakamuraTest/gamespy/darray.c: - .text start:0x813D5E8C end:0x813D5FE8 + .text start:0x813D5F88 end:0x813D60E4 scene/nakamuraTest/gamespy/gsAvailable.c: .bss start:0x810B8008 end:0x810B80E0 - .text start:0x813D5FE8 end:0x813D6328 - .data start:0x81653810 end:0x81653838 - .sdata start:0x81696D18 end:0x81696D20 - .sbss start:0x81698B90 end:0x81698B98 + .text start:0x813D60E4 end:0x813D6424 + .data start:0x81653AD0 end:0x81653AF8 + .sdata start:0x81698BB8 end:0x81698BC0 + .sbss start:0x8169AA30 end:0x8169AA38 scene/nakamuraTest/gamespy/nonport.c: .bss start:0x810B80E0 end:0x810B80F0 - .text start:0x813D6328 end:0x813D6870 - .data start:0x81653838 end:0x81653858 - .sbss start:0x81698B98 end:0x81698BA0 + .text start:0x813D6424 end:0x813D696C + .data start:0x81653AF8 end:0x81653B18 + .sbss start:0x8169AA38 end:0x8169AA40 scene/nakamuraTest/gamespy/gsSHA1.c: - .text start:0x813D6870 end:0x813D6E30 - .rodata start:0x816105A0 end:0x816105B0 + .text start:0x813D696C end:0x813D6F2C + .rodata start:0x816107E0 end:0x816107F0 scene/nakamuraTest/gamespy/natneg.c: .bss start:0x810B80F0 end:0x810B83C8 - .text start:0x813D6E30 end:0x813D7F90 - .data start:0x81653858 end:0x816538B0 - .sdata start:0x81696D20 end:0x81696D40 - .sbss start:0x81698BA0 end:0x81698BD0 + .text start:0x813D6F2C end:0x813D808C + .data start:0x81653B18 end:0x81653B70 + .sdata start:0x81698BC0 end:0x81698BE0 + .sbss start:0x8169AA40 end:0x8169AA70 scene/nakamuraTest/iplNakamuraTest.cpp: - .text start:0x813D7F90 end:0x813D8D9C - .rodata start:0x816105B0 end:0x816105C8 - .data start:0x816538B0 end:0x81653C18 - .sdata start:0x81696D40 end:0x81696D48 - .sbss start:0x81698BD0 end:0x81698BD8 + .text start:0x813D808C end:0x813D8E98 + .rodata start:0x816107F0 end:0x81610808 + .data start:0x81653B70 end:0x81653ED8 + .sdata start:0x81698BE0 end:0x81698BE8 + .sbss start:0x8169AA70 end:0x8169AA78 scene/nakamuraTest/iplNetSetup.cpp: .bss start:0x810B83C8 end:0x810B83F0 - .text start:0x813D8D9C end:0x813D95BC - .data start:0x81653C18 end:0x81653CE8 - .sbss start:0x81698BD8 end:0x81698BE0 + .text start:0x813D8E98 end:0x813D96B8 + .data start:0x81653ED8 end:0x81653FA8 + .sbss start:0x8169AA78 end:0x8169AA80 scene/parentalDialog/iplParentalDialog.cpp: - .text start:0x813D95BC end:0x813DA778 - .data start:0x81653CE8 end:0x81653FD8 - .sdata start:0x81696D48 end:0x81696D80 + .text start:0x813D96B8 end:0x813DA874 + .data start:0x81653FA8 end:0x81654298 + .sdata start:0x81698BE8 end:0x81698C20 scene/sceneMisc/iplReboot.cpp: - .text start:0x813DA778 end:0x813DA8E8 - .data start:0x81653FD8 end:0x81654038 + .text start:0x813DA874 end:0x813DA9E4 + .data start:0x81654298 end:0x816542F8 scene/sceneMisc/iplRootScene.cpp: - .text start:0x813DA8E8 end:0x813DAB08 - .data start:0x81654038 end:0x81654088 + .text start:0x813DA9E4 end:0x813DAC04 + .data start:0x816542F8 end:0x81654348 scene/sdChannelSelect/iplSDChannelSelect.cpp: - .text start:0x813DAB08 end:0x813E2F2C - .rodata start:0x816105C8 end:0x81610608 - .data start:0x81654088 end:0x81654B38 - .sdata2 start:0x81694AC8 end:0x81694B18 - .sdata start:0x81696D80 end:0x81696DD0 + .text start:0x813DAC04 end:0x813E3028 + .rodata start:0x81610808 end:0x81610848 + .data start:0x81654348 end:0x81654DF8 + .sdata2 start:0x81696968 end:0x816969B8 + .sdata start:0x81698C20 end:0x81698C70 scene/sdChannelSelect/iplSDChannelObj.cpp: - .text start:0x813E2F2C end:0x813E4BBC - .rodata start:0x81610608 end:0x81610918 - .data start:0x81654B38 end:0x81654F98 - .sdata2 start:0x81694B18 end:0x81694B60 - .sdata start:0x81696DD0 end:0x81696E40 + .text start:0x813E3028 end:0x813E4CB8 + .rodata start:0x81610848 end:0x81610B58 + .data start:0x81654DF8 end:0x81655258 + .sdata2 start:0x816969B8 end:0x81696A00 + .sdata start:0x81698C70 end:0x81698CD0 -scene/sdChannelSelect/iplSDChannelTitle.cpp: - .text start:0x813E4BBC end:0x813E947C - .rodata start:0x81610918 end:0x81610948 - .data start:0x81654F98 end:0x81655638 - .sdata2 start:0x81694B60 end:0x81694B88 - .sdata start:0x81696E40 end:0x81696EF0 +scene/sdChannelTitle/iplSDChannelTitle.cpp: + .text start:0x813E4CB8 end:0x813E9578 + .rodata start:0x81610B58 end:0x81610B88 + .data start:0x81655258 end:0x816558F8 + .sdata2 start:0x81696A00 end:0x81696A28 + .sdata start:0x81698CD0 end:0x81698D90 -scene/sdChannelSelect/iplSDButton.cpp: - .text start:0x813E947C end:0x813EA88C - .data start:0x81655638 end:0x81655A70 - .sdata2 start:0x81694B88 end:0x81694BA0 - .sdata start:0x81696EF0 end:0x81696F30 +scene/sdChannelButton/iplSDButton.cpp: + .text start:0x813E9578 end:0x813EA988 + .data start:0x816558F8 end:0x81655D30 + .sdata2 start:0x81696A28 end:0x81696A40 + .sdata start:0x81698D90 end:0x81698DD0 -scene/sdChannelSelect/iplSDArrow.cpp: - .text start:0x813EA88C end:0x813EA9BC - .data start:0x81655A70 end:0x81655AC0 +scene/sdChannelButton/iplSDArrow.cpp: + .text start:0x813EA980 end:0x813EAAB8 + .data start:0x81655D30 end:0x81655D80 -scene/sdChannelSelect/iplSDMenuButton.cpp: - .text start:0x813EA9BC end:0x813EB5EC - .data start:0x81655AC0 end:0x81655CA0 - .sdata2 start:0x81694BA0 end:0x81694BD0 - .sdata start:0x81696F30 end:0x81696F50 +scene/sdChannelButton/iplSDMenuButton.cpp: + .text start:0x813EAAB8 end:0x813EB6E8 + .data start:0x81655D80 end:0x81655F60 + .sdata2 start:0x81696A40 end:0x81696A70 + .sdata start:0x81698DD0 end:0x81698DF0 -scene/sdChannelSelect/iplSDMemory.cpp: - .text start:0x813EB5EC end:0x813F0774 - .data start:0x81655CA0 end:0x816568E8 - .sdata2 start:0x81694BD0 end:0x81694C00 - .sdata start:0x81696F50 end:0x81696FE8 +scene/sdChannelMemory/iplSDMemory.cpp: + .text start:0x813EB6E8 end:0x813F0870 + .data start:0x81655F60 end:0x81656BA8 + .sdata2 start:0x81696A70 end:0x81696AA0 + .sdata start:0x81698DF0 end:0x81698EA0 scene/setting/iplSetting.cpp: - .text start:0x813F0774 end:0x813F9B70 - .rodata start:0x81610948 end:0x81610BC8 - .data start:0x816568E8 end:0x81657898 - .sdata2 start:0x81694C00 end:0x81694C40 - .sdata start:0x81696FE8 end:0x816971E0 - .sbss start:0x81698BE0 end:0x81698BF0 + .text start:0x813F0870 end:0x813F9C6C + .rodata start:0x81610B88 end:0x81610E08 + .data start:0x81656BA8 end:0x81657B58 + .sdata2 start:0x81696AA0 end:0x81696AE0 + .sdata start:0x81698EA0 end:0x81699080 + .sbss start:0x8169AA80 end:0x8169AA90 scene/setting/iplSensitivity.cpp: - .text start:0x813F9B70 end:0x813F9FC8 - .sdata2 start:0x81694C40 end:0x81694C78 + .text start:0x813F9C6C end:0x813FA0C4 + .sdata2 start:0x81696AE0 end:0x81696B18 scene/setting/iplNCDSetting.cpp: .bss start:0x810B83F0 end:0x810BBC90 - .text start:0x813F9FC8 end:0x813FBA54 - .data start:0x81657898 end:0x81657950 - .sbss start:0x81698BF0 end:0x81698BF8 + .text start:0x813FA0C4 end:0x813FBB50 + .data start:0x81657B58 end:0x81657C10 + .sbss start:0x8169AA90 end:0x8169AA98 scene/setting/iplParental.cpp: .bss start:0x810BBC90 end:0x810BC148 - .text start:0x813FBA54 end:0x813FC39C - .data start:0x81657950 end:0x81657AA0 - .sdata start:0x816971E0 end:0x816971F0 - .sbss start:0x81698BF8 end:0x81698C08 + .text start:0x813FBB50 end:0x813FC498 + .data start:0x81657C10 end:0x81657D60 + .sdata start:0x81699080 end:0x81699090 + .sbss start:0x8169AA98 end:0x8169AAA8 scene/setting/iplAPScanThread.cpp: - .text start:0x813FC39C end:0x813FC520 - .data start:0x81657AA0 end:0x81657B08 + .text start:0x813FC498 end:0x813FC61C + .data start:0x81657D60 end:0x81657DC8 scene/setting/iplUsbAP.cpp: .bss start:0x810BC148 end:0x810BD498 - .text start:0x813FC520 end:0x813FC8FC - .data start:0x81657B08 end:0x81657B18 - .sbss start:0x81698C08 end:0x81698C28 + .text start:0x813FC61C end:0x813FC9F8 + .data start:0x81657DC8 end:0x81657DD8 + .sbss start:0x8169AAA8 end:0x8169AAC0 scene/setting/iplUsbAPThread.cpp: - .text start:0x813FC8FC end:0x813FCA0C - .data start:0x81657B18 end:0x81657B60 + .text start:0x813FC9F8 end:0x813FCB08 + .data start:0x81657DD8 end:0x81657E20 scene/setting/iplAOSSThread.cpp: .bss start:0x810BD498 end:0x810BD4A8 - .text start:0x813FCA0C end:0x813FD170 - .data start:0x81657B60 end:0x81657B90 - .sdata start:0x816971F0 end:0x816971F8 - .sbss start:0x81698C28 end:0x81698C38 + .text start:0x813FCB08 end:0x813FD26C + .data start:0x81657E20 end:0x81657E50 + .sdata start:0x81699090 end:0x81699098 + .sbss start:0x8169AAC0 end:0x8169AAD8 scene/setting/iplAOSS.cpp: .bss start:0x810BD4A8 end:0x810BDDD0 - .text start:0x813FD170 end:0x813FDA04 - .data start:0x81657B90 end:0x81657BC0 - .sbss start:0x81698C38 end:0x81698C60 + .text start:0x813FD26C end:0x813FDB00 + .data start:0x81657E50 end:0x81657E80 + .sbss start:0x8169AAD8 end:0x8169AB00 scene/setting/iplRakuRakuThread.cpp: .bss start:0x810BDDD0 end:0x810BDEF8 - .text start:0x813FDA04 end:0x813FE27C - .data start:0x81657BC0 end:0x81657C48 - .sdata start:0x816971F8 end:0x81697200 - .sbss start:0x81698C60 end:0x81698C70 + .text start:0x813FDB00 end:0x813FE378 + .data start:0x81657E80 end:0x81657F08 + .sdata start:0x81699098 end:0x816990A0 + .sbss start:0x8169AB00 end:0x8169AB10 scene/setting/iplATERM.cpp: .bss start:0x810BDEF8 end:0x810C0C80 - .text start:0x813FE27C end:0x81406CC0 - .rodata start:0x81610BC8 end:0x816133F0 - .data start:0x81657C48 end:0x81657ED0 - .sdata2 start:0x81694C78 end:0x81694C88 - .sdata start:0x81697200 end:0x81697250 - .sbss start:0x81698C70 end:0x81698CE0 + .text start:0x813FE378 end:0x81406DBC + .rodata start:0x81610E08 end:0x81613630 + .data start:0x81657F08 end:0x81658190 + .sdata2 start:0x81696B18 end:0x81696B28 + .sdata start:0x816990A0 end:0x816990F0 + .sbss start:0x8169AB10 end:0x8169AB80 scene/setting/iplSettingBg.cpp: - .text start:0x81406CC0 end:0x81406ED0 - .data start:0x81657ED0 end:0x81657F40 - .sdata start:0x81697250 end:0x81697258 + .text start:0x81406DBC end:0x81406FCC + .data start:0x81658190 end:0x81658200 + .sdata start:0x816990F0 end:0x816990F8 scene/setting/iplSettingButton.cpp: - .text start:0x81406ED0 end:0x81407AFC - .data start:0x81657F40 end:0x816581B8 - .sdata start:0x81697258 end:0x81697278 + .text start:0x81406FCC end:0x81407BF8 + .data start:0x81658200 end:0x81658478 + .sdata start:0x816990F8 end:0x81699118 scene/setting/iplSettingSelect.cpp: - .text start:0x81407AFC end:0x81409BEC - .data start:0x816581B8 end:0x81658788 - .sdata start:0x81697278 end:0x81697288 + .text start:0x81407BF8 end:0x81409CE8 + .data start:0x81658478 end:0x81658A48 + .sdata start:0x81699118 end:0x81699128 scene/sceneSystem/iplSceneBase.cpp: - .text start:0x81409BEC end:0x81409FC4 - .data start:0x81658788 end:0x816587D8 + .text start:0x81409CE8 end:0x8140A0C0 + .data start:0x81658A48 end:0x81658A98 scene/sceneSystem/iplSceneCreator.cpp: - .text start:0x81409FC4 end:0x8140A4F8 - .data start:0x816587D8 end:0x81658908 + .text start:0x8140A0C0 end:0x8140A5F4 + .data start:0x81658A98 end:0x81658BC8 scene/sceneSystem/iplSceneManager.cpp: - .text start:0x8140A4F8 end:0x8140B208 - .data start:0x81658908 end:0x81658930 + .text start:0x8140A5F4 end:0x8140B304 + .data start:0x81658BC8 end:0x81658BF0 scene/sceneSystem/iplFaderSceneBase.cpp: - .text start:0x8140B208 end:0x8140B3B0 - .data start:0x81658930 end:0x81658998 + .text start:0x8140B304 end:0x8140B4AC + .data start:0x81658BF0 end:0x81658C58 scene/textWriter/iplTextWriter.cpp: - .text start:0x8140B3B0 end:0x8140CD54 - .data start:0x81658998 end:0x81658B90 - .sdata2 start:0x81694C88 end:0x81694CA0 - .sdata start:0x81697288 end:0x81697290 + .text start:0x8140B4AC end:0x8140CE50 + .data start:0x81658C58 end:0x81658E50 + .sdata2 start:0x81696B28 end:0x81696B40 + .sdata start:0x81699128 end:0x81699130 bannerSound/AudioWavePlayer.cpp: - .text start:0x8140CD54 end:0x8140DA2C - .data start:0x81658B90 end:0x81658BD0 - .sdata2 start:0x81694CA0 end:0x81694CA8 + .text start:0x8140CE50 end:0x8140DB28 + .data start:0x81658E50 end:0x81658E90 + .sdata2 start:0x81696B40 end:0x81696B48 bannerSound/AxAdpcmPlayer.cpp: .bss start:0x810C0C80 end:0x810C2580 - .text start:0x8140DA2C end:0x8140E63C - .ctors start:0x8160D1E8 end:0x8160D1EC - .data start:0x81658BD0 end:0x81658BF0 - .sdata2 start:0x81694CA8 end:0x81694CC0 - .sdata start:0x81697290 end:0x81697298 - .sbss start:0x81698CE0 end:0x81698CF0 + .text start:0x8140DB28 end:0x8140E704 + .ctors start:0x8160D428 end:0x8160D42C + .data start:0x81658E90 end:0x81658EB0 + .sdata2 start:0x81696B48 end:0x81696B60 + .sdata start:0x81699130 end:0x81699138 + .sbss start:0x8169AB80 end:0x8169AB90 bannerSound/BannerSoundPlayer.cpp: .bss start:0x810C2580 end:0x810C6580 - .text start:0x8140E63C end:0x8140EC60 - .sdata2 start:0x81694CC0 end:0x81694CD0 - .sbss start:0x81698CF0 end:0x81698CF8 + .text start:0x8140E704 end:0x8140ED5C + .sdata2 start:0x81696B60 end:0x81696B70 + .sbss start:0x8169AB90 end:0x8169AB98 bannerSound/AudioWaveUtility.cpp: - .text start:0x8140EC60 end:0x814101D8 - .rodata start:0x816133F0 end:0x81613408 - .data start:0x81658BF0 end:0x81658D90 - .sdata2 start:0x81694CD0 end:0x81694D18 - .sdata start:0x81697298 end:0x816972A0 + .text start:0x8140ED5C end:0x814102D4 + .rodata start:0x81613630 end:0x81613648 + .data start:0x81658EB0 end:0x81659050 + .sdata2 start:0x81696B70 end:0x81696BB8 + .sdata start:0x81699138 end:0x81699140 keyboard/pckeyboard.cpp: - .text start:0x814101D8 end:0x8141711C - .ctors start:0x8160D1EC end:0x8160D1F0 - .rodata start:0x81613408 end:0x81614AC0 - .data start:0x81658D90 end:0x8165BEB0 - .sdata2 start:0x81694D18 end:0x81694D20 - .sdata start:0x816972A0 end:0x81697328 - .sbss start:0x81698CF8 end:0x81698D00 + .text start:0x814101D8 end:0x81417218 + .ctors start:0x8160D42C end:0x8160D430 + .rodata start:0x81613648 end:0x81614D00 + .data start:0x81659050 end:0x8165C170 + .sdata2 start:0x81696BB8 end:0x81696BC0 + .sdata start:0x81699140 end:0x816991C8 + .sbss start:0x8169AB98 end:0x8169ABA0 keyboard/cellphone.cpp: - .text start:0x8141711C end:0x8141BB70 - .ctors start:0x8160D1F0 end:0x8160D1F4 - .rodata start:0x81614AC0 end:0x81614FE8 - .data start:0x8165BEB0 end:0x8165C820 - .sdata2 start:0x81694D20 end:0x81694D28 - .sdata start:0x81697328 end:0x81697398 + .text start:0x81417218 end:0x8141BC6C + .ctors start:0x8160D430 end:0x8160D434 + .rodata start:0x81614D00 end:0x81615228 + .data start:0x8165C170 end:0x8165CAE0 + .sdata2 start:0x81696BC0 end:0x81696BC8 + .sdata start:0x816991C8 end:0x81699238 keyboard/inputform.cpp: - .text start:0x8141BB70 end:0x81428150 - .ctors start:0x8160D1F4 end:0x8160D1F8 - .rodata start:0x81614FE8 end:0x816152E0 - .data start:0x8165C820 end:0x8165D2D0 - .sdata2 start:0x81694D28 end:0x81694D90 - .sdata start:0x81697398 end:0x816973C8 - .sbss start:0x81698D00 end:0x81698D20 + .text start:0x8141BC6C end:0x8142824C + .ctors start:0x8160D434 end:0x8160D438 + .rodata start:0x81615228 end:0x81615520 + .data start:0x8165CAE0 end:0x8165D590 + .sdata2 start:0x81696BC8 end:0x81696C30 + .sdata start:0x81699238 end:0x81699260 + .sbss start:0x8169ABA0 end:0x8169ABC0 keyboard/candidatebox.cpp: .text start:0x81428150 end:0x8142DF10 diff --git a/config/43U/splits.txt b/config/43U/splits.txt index bc0584d4..c028a622 100644 --- a/config/43U/splits.txt +++ b/config/43U/splits.txt @@ -477,7 +477,7 @@ BS2/BS2Fatal.c: .rodata start:0x8160F628 end:0x8160F650 .data start:0x81646F08 end:0x81647538 .sdata2 start:0x81694788 end:0x816947D0 - .sdata start:0x816965B8 end:0x816965C0 + .sdata start:0x816965B8 end:0x816965C0 .sbss start:0x81698B48 end:0x81698B50 scene/address/iplAddress.cpp: @@ -592,7 +592,7 @@ scene/channelEdit/iplChanAppEdit.cpp: .text start:0x813A54DC end:0x813A6F04 .rodata start:0x8160FC80 end:0x8160FCA8 .data start:0x8164D2E8 end:0x8164D7C0 - .sdata2 start:0x81694910 end:0x81694938 + .sdata2 start:0x81694910 end:0x81694938 .sdata start:0x81696860 end:0x816968A8 scene/channelEdit/iplAnmController.cpp: @@ -824,30 +824,30 @@ scene/sdChannelSelect/iplSDChannelObj.cpp: .sdata2 start:0x81694B18 end:0x81694B60 .sdata start:0x81696DD0 end:0x81696E40 -scene/sdChannelSelect/iplSDChannelTitle.cpp: +scene/sdChannelTitle/iplSDChannelTitle.cpp: .text start:0x813E4BBC end:0x813E947C .rodata start:0x81610918 end:0x81610948 .data start:0x81654F98 end:0x81655638 .sdata2 start:0x81694B60 end:0x81694B88 .sdata start:0x81696E40 end:0x81696EF0 -scene/sdChannelSelect/iplSDButton.cpp: +scene/sdChannelButton/iplSDButton.cpp: .text start:0x813E947C end:0x813EA88C .data start:0x81655638 end:0x81655A70 .sdata2 start:0x81694B88 end:0x81694BA0 .sdata start:0x81696EF0 end:0x81696F30 -scene/sdChannelSelect/iplSDArrow.cpp: +scene/sdChannelButton/iplSDArrow.cpp: .text start:0x813EA88C end:0x813EA9BC .data start:0x81655A70 end:0x81655AC0 -scene/sdChannelSelect/iplSDMenuButton.cpp: +scene/sdChannelButton/iplSDMenuButton.cpp: .text start:0x813EA9BC end:0x813EB5EC .data start:0x81655AC0 end:0x81655CA0 .sdata2 start:0x81694BA0 end:0x81694BD0 .sdata start:0x81696F30 end:0x81696F50 -scene/sdChannelSelect/iplSDMemory.cpp: +scene/sdChannelMemory/iplSDMemory.cpp: .text start:0x813EB5EC end:0x813F0774 .data start:0x81655CA0 end:0x816568E8 .sdata2 start:0x81694BD0 end:0x81694C00 @@ -1008,7 +1008,7 @@ keyboard/inputform.cpp: .rodata start:0x81614FE8 end:0x816152E0 .data start:0x8165C820 end:0x8165D2D0 .sdata2 start:0x81694D28 end:0x81694D90 - .sdata start:0x81697398 end:0x816973C8 + .sdata start:0x81697398 end:0x816973C0 .sbss start:0x81698D00 end:0x81698D20 keyboard/candidatebox.cpp: @@ -1017,7 +1017,7 @@ keyboard/candidatebox.cpp: .rodata start:0x816152E0 end:0x81615658 .data start:0x8165D2D0 end:0x8165E070 .sdata2 start:0x81694D90 end:0x81694DE0 - .sdata start:0x816973C8 end:0x816973F8 + .sdata start:0x816973C0 end:0x816973F8 keyboard/toolbar.cpp: .text start:0x8142DF10 end:0x8142F468 diff --git a/include/bannerSound/BannerSoundPlayer.h b/include/bannerSound/BannerSoundPlayer.h index fde66d4a..12a2ccf4 100644 --- a/include/bannerSound/BannerSoundPlayer.h +++ b/include/bannerSound/BannerSoundPlayer.h @@ -5,7 +5,7 @@ class BannerSoundPlayer { public: - void start(u32*, u32); + void start(void*, u32); private: u8 dummy[32]; }; diff --git a/include/channelScript/iplCSLibrary.h b/include/channelScript/iplCSLibrary.h index 8c12f74b..f9185dba 100644 --- a/include/channelScript/iplCSLibrary.h +++ b/include/channelScript/iplCSLibrary.h @@ -4,7 +4,7 @@ #include "channelScript/CHANSVm.h" #define INIT_EXTERN(l) \ -namespace l { bool init(CHANSVm* vm); } +namespace l { BOOL init(CHANSVm* vm); } #define CS_LIB_INITIALIZED(vm, l) \ cs::l::init(vm) diff --git a/include/system/iplChannelScriptManager.h b/include/system/iplChannelScriptManager.h index 9d81945b..2f1881e5 100644 --- a/include/system/iplChannelScriptManager.h +++ b/include/system/iplChannelScriptManager.h @@ -49,9 +49,9 @@ namespace ipl { enum { CHANS_VM_STATE_CREATE = 0, CHANS_VM_STATE_UNK1 = 1, - CHANS_VM_STATE_UNK2 = 1, - CHANS_VM_STATE_UNK3 = 1, - CHANS_VM_STATE_UNK4 = 1, + CHANS_VM_STATE_UNK2 = 2, + CHANS_VM_STATE_UNK3 = 3, + CHANS_VM_STATE_UNK4 = 4, }; u8* mpChansWork; // 0x00 diff --git a/include/system/iplNand.h b/include/system/iplNand.h index 3a2da8d0..30303a05 100644 --- a/include/system/iplNand.h +++ b/include/system/iplNand.h @@ -23,28 +23,33 @@ namespace ipl { class Base { public: Base(); - virtual ~Base(); // 0x08 + virtual ~Base(); // 0x08 - virtual void read() {} // 0x0C - virtual void write(); // 0x10 + virtual void read() {} // 0x0C + virtual void write(); // 0x10 - virtual bool isFinished() { return false; } // 0x14 - virtual bool checkData() { return false; } // 0x18 - virtual bool isFatalError() { return false; } // 0x1C + virtual bool isFinished() { return false; } // 0x14 + virtual bool checkData() { return false; } // 0x18 + virtual bool isFatalError() { return false; } // 0x1C }; class File : Base { public: File(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, const char* unk2, int offset, u32 length, bool isInNand); File(EGG::Heap* pHeap, const char* fileName, u8* buffer, u32 length, u8 perms); - virtual ~File(); // 0x08 (0x02) + virtual ~File(); // 0x08 - virtual void read(); // 0x0C (0x03) - virtual void write(); // 0x10 (0x04) + /** + * @brief Reads the file contents. + * @note To retrieve the read contents, use `getBuffer()` + */ + virtual void read(); // 0x0C + /** @brief Writes the file contents. */ + virtual void write(); // 0x10 - virtual bool isFinished(); // 0x14 (0x05) - virtual bool checkData(); // 0x18 (0x06) - virtual bool isFatalError(); // 0x1C (0x07) + virtual bool isFinished(); // 0x14 + virtual bool checkData(); // 0x18 + virtual bool isFatalError(); // 0x1C u8* getBuffer() { return mpBuffer; } u32 getLength() { return mpLength; } @@ -52,87 +57,90 @@ namespace ipl { bool isFullForTask() { return mbIsFullForTask; } protected: - virtual BOOL open_(u8 attr); // 0x20 (0x08) - virtual BOOL close_(); // 0x24 (0x09) + virtual BOOL open_(u8 attr); // 0x20 + virtual BOOL close_(); // 0x24 - virtual void readBlock_(void* buffer, int length, int offset = 0); // 0x28 (0x0A) + virtual void readBlock_(void* buffer, int length, int offset = 0); // 0x28 - virtual u32 getRawSize_(); // 0x2C (0x0B) - virtual u32 getDecodeSize_(const u8* buffer); // 0x30 (0x0C) - virtual u8* getBuffer_(u32 length); // 0x34 (0x0D) + virtual u32 getRawSize_(); // 0x2C + virtual u32 getDecodeSize_(const u8* buffer); // 0x30 + virtual u8* getBuffer_(u32 length); // 0x34 - virtual void uncompressLz7(const u8* src, u8* dest); // 0x38 (0x0E) + virtual void uncompressLz7(const u8* src, u8* dest); // 0x38 - virtual BOOL isCompressed(const u8* buffer); // 0x3C (0x0F) - virtual BOOL isSliCompressed(const u8* buffer); // 0x40 (0x10) + virtual BOOL isCompressed(const u8* buffer); // 0x3C + virtual BOOL isSliCompressed(const u8* buffer); // 0x40 /* @warning Due to an oversight, this checks for ASH compression. */ - virtual BOOL isAsrCompressed(const u8* buffer); // 0x44 (0x11) + virtual BOOL isAsrCompressed(const u8* buffer); // 0x44 /* @warning Due to an oversight, this checks for ASR compression. */ - virtual BOOL isAshCompressed(const u8* buffer); // 0x48 (0x12) - virtual BOOL isLz7Compressed(const u8* buffer); // 0x4C (0x13) + virtual BOOL isAshCompressed(const u8* buffer); // 0x48 + virtual BOOL isLz7Compressed(const u8* buffer); // 0x4C - virtual void callback_(); // 0x50 (0x14) + virtual void callback_(); // 0x50 protected: NandErrResult calcMD5_(const u8* sum, const u8* buffer, u32 length) const; BOOL nand_error_handling(int errcode); - EGG::Heap* mpHeap; // 0x04 + EGG::Heap* mpHeap; // 0x04 - char msFileName[NAND_MAX_PATH + 1]; // 0x08 + char msFileName[NAND_MAX_PATH + 1]; // 0x08 - ARCHandle* mpArc; // 0x4C - char msUnkFileName[NAND_MAX_PATH + 1]; // 0x50 (this seems to be unused) + ARCHandle* mpArc; // 0x4C + char msUnkFileName[NAND_MAX_PATH + 1]; // 0x50 (this seems to be unused) - int mFileOffset; // 0x94 - u32 mpLength; // 0x98 - bool mbInit; // 0x9C + int mFileOffset; // 0x94 + u32 mpLength; // 0x98 + bool mbInit; // 0x9C u8 mFilePerms; - u8* mpBuffer; // 0xA0 - u8* mpCmpBuffer; // 0xA4 + u8* mpBuffer; // 0xA0 + u8* mpCmpBuffer; // 0xA4 - NandErrResult mResult; // 0xA8 - volatile BOOL mbDoneTask; // 0xAC + NandErrResult mResult; // 0xA8 + volatile BOOL mbDoneTask; // 0xAC - ARCFileInfo mArcFile; // 0xB0 + ARCFileInfo mArcFile; // 0xB0 - u8 unk_0xBC[0x3C]; // unused? + u8 unk_0xBC[0x3C]; // unused? - NANDFileInfo mNandFile; // 0xF8 - int mLastError; // 0x184 - bool mbFatalError; // 0x188 - bool mbIsFullForTask; // 0x189 - BOOL mbIsNandFile; // 0x18C + NANDFileInfo mNandFile; // 0xF8 + int mLastError; // 0x184 + bool mbFatalError; // 0x188 + bool mbIsFullForTask; // 0x189 + BOOL mbIsNandFile; // 0x18C }; class LangFile : Base { public: LangFile(EGG::Heap* pHeap, const char* dirName, const char* fileName, ARCHandle* arc, bool isInNand); - virtual ~LangFile(); // 0x08 + virtual ~LangFile(); // 0x08 + + virtual void read(); // 0x0C + + virtual bool isFinished(); // 0x14 + virtual bool checkData(); // 0x18 + virtual bool isFatalError(); // 0x1C + + File* getCmnFile() { return mpCommonFile; } + File* getLangFile() { return mpLangFile; } - virtual void read(); // 0x0C - - virtual bool isFinished(); // 0x14 - virtual bool checkData(); // 0x18 - virtual bool isFatalError(); // 0x1C - private: - File* cmnFile; // 0x04 - File* langFile; // 0x08 + File* mpCommonFile; // 0x04 + File* mpLangFile; // 0x08 }; class LayoutFile : LangFile { public: LayoutFile(EGG::Heap* pHeap, const char* dirName, const char* fileName, ARCHandle* arc, bool isNandFile); - virtual ~LayoutFile(); // 0x08 + virtual ~LayoutFile(); // 0x08 - virtual void read(); // 0x0C + virtual void read(); // 0x0C - virtual bool isFinished(); // 0x14 - virtual bool checkData(); // 0x18 - virtual bool isFatalError(); // 0x1C + virtual bool isFinished(); // 0x14 + virtual bool checkData(); // 0x18 + virtual bool isFatalError(); // 0x1C }; class Manager { diff --git a/include/system/iplNandMeta.h b/include/system/iplNandMeta.h index d328814e..9574cf6b 100644 --- a/include/system/iplNandMeta.h +++ b/include/system/iplNandMeta.h @@ -11,7 +11,7 @@ namespace ipl { typedef void (*MetaCallback)(void*); public: - MetaFile(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, ESTitleId titleId, int offset, u32 length, UnkCallback callBack, void* callBackWork, int ticketIdx); + MetaFile(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, ESTitleId titleId, int offset, u32 length, MetaCallback callBack, void* callBackWork, int ticketIdx); virtual ~MetaFile(); protected: diff --git a/include/system/iplNigaoe.h b/include/system/iplNigaoe.h index 76491393..18fffc55 100644 --- a/include/system/iplNigaoe.h +++ b/include/system/iplNigaoe.h @@ -23,7 +23,8 @@ namespace ipl { void init(EGG::Heap* pHeap, int width, int height); void make_icon(); - BOOL created() { return mbCreated; } + BOOL created() { return mbCreated; } + u8* getIconTexture() { return mpIconTex; } u8* mpIconTex; // 0x00 u32 mIconSize; // 0x04 @@ -42,7 +43,7 @@ namespace ipl { undefined4 unk_0x4C; bool mbCreated; // 0x50 - friend class Manager; + friend class Manager; }; } } diff --git a/libs/NW4R/src/math/math_arithmetic.cpp b/libs/NW4R/src/math/math_arithmetic.cpp index 79d6cbc6..45d99a75 100644 --- a/libs/NW4R/src/math/math_arithmetic.cpp +++ b/libs/NW4R/src/math/math_arithmetic.cpp @@ -2,10 +2,6 @@ namespace nw4r { namespace math { - /** - * @note Address: 0x8151E538 (4.3U) - * @note Size: 0x24 - */ f32 FrSqrt(register f32 x) { register f32 rsqrt; register f32 c_half = 0.5f, c_three = 3.0f; @@ -23,11 +19,7 @@ namespace nw4r { } return work1; } - - /** - * @note Address: 0x8151E55C (4.3U) - * @note Size: 0x58 - */ + u32 CntBit1(register u32 x) { x = x - ((x >> 1) & 0x55555555); x = (x & 0x33333333) + ((x >> 2) & 0x33333333); diff --git a/libs/NW4R/src/math/math_triangular.cpp b/libs/NW4R/src/math/math_triangular.cpp index c2bc592e..3555f080 100644 --- a/libs/NW4R/src/math/math_triangular.cpp +++ b/libs/NW4R/src/math/math_triangular.cpp @@ -323,10 +323,6 @@ namespace nw4r { } } - /** - * @note Address: 0x8151E5B4 (4.3U) - * @note Size: 0x6C - */ f32 SinFIdx(f32 fidx) { f32 abs_fidx = FAbs(fidx); @@ -343,10 +339,6 @@ namespace nw4r { return (fidx < 0.0f) ? -sin : sin; } - /** - * @note Address: 0x8151E620 (4.3U) - * @note Size: 0x5C - */ f32 CosFIdx(f32 fidx) { f32 abs_fidx = FAbs(fidx); @@ -363,10 +355,6 @@ namespace nw4r { return cos; } - /** - * @note Address: 0x8151E67C (4.3U) - * @note Size: 0x1A8 - */ f32 Atan2FIdx(f32 y, f32 x) { f32 a, b, c; bool minus; diff --git a/libs/NW4R/src/math/math_types.cpp b/libs/NW4R/src/math/math_types.cpp index bdfd59fd..4b7c9277 100644 --- a/libs/NW4R/src/math/math_types.cpp +++ b/libs/NW4R/src/math/math_types.cpp @@ -2,10 +2,6 @@ namespace nw4r { namespace math { - /** - * @note Address: 0x8151E824 (4.3U) - * @note Size: 0x32 - */ void MTX44Identity(register MTX44 *pMtx) { register float a, b, c; a = 0.0f; @@ -24,10 +20,6 @@ namespace nw4r { } } - /** - * @note Address: 0x8151E858 (4.3U) - * @note Size: 0x10C - */ VEC4* VEC4Transform(VEC4* pOut, const MTX44* pM, const VEC4* pV) { VEC4 tmp; tmp.x = pM->_00 * pV->x + pM->_01 * pV->y + pM->_02 * pV->z + pM->_03 * pV->w; diff --git a/libs/NW4R/src/ut/ut_LinkList.cpp b/libs/NW4R/src/ut/ut_LinkList.cpp index 3ac095b6..294f3add 100644 --- a/libs/NW4R/src/ut/ut_LinkList.cpp +++ b/libs/NW4R/src/ut/ut_LinkList.cpp @@ -3,16 +3,8 @@ namespace nw4r { namespace ut { namespace detail { - /** - * @note Address: 0x81512364 (4.3U) - * @note Size: 0x84 - */ LinkListImpl::~LinkListImpl() { Clear(); } - - /** - * @note Address: 0x815123E8 (4.3U) - * @note Size: 0x48 - */ + LinkListImpl::Iterator LinkListImpl::Erase(LinkListImpl::Iterator it) { Iterator clone = it; return Erase(it, ++clone); @@ -32,18 +24,10 @@ namespace nw4r { return Iterator(pItLast); } - /** - * @note Address: 0x81512430 (4.3U) - * @note Size: 0x44 - */ void LinkListImpl::Clear() { Erase(GetBeginIter(), GetEndIter()); } - /** - * @note Address: 0x81512474 (4.3U) - * @note Size: 0x2C - */ LinkListImpl::Iterator LinkListImpl::Insert(Iterator it, pointer p) { Node* pNext = it.mPointer; Node* pPrev = pNext->mPrev; @@ -61,10 +45,6 @@ namespace nw4r { return (Iterator)p; } - /** - * @note Address: 0x815124A0 (4.3U) - * @note Size: 0x30 - */ LinkListImpl::Iterator LinkListImpl::Erase(pointer p) { Node* pNext = p->mNext; Node* pPrev = p->mPrev; diff --git a/libs/NW4R/src/ut/ut_list.cpp b/libs/NW4R/src/ut/ut_list.cpp index ba659233..040b45bb 100644 --- a/libs/NW4R/src/ut/ut_list.cpp +++ b/libs/NW4R/src/ut/ut_list.cpp @@ -14,10 +14,6 @@ namespace nw4r { list->numObjects++; } - /** - * @note Address: 0x8151205C (4.3U) - * @note Size: 0x18 - */ void List_Init(List* list, u16 offset) { list->offset = offset; @@ -26,10 +22,6 @@ namespace nw4r { list->numObjects = NULL; } - /** - * @note Address: 0x81512074 (4.3U) - * @note Size: 0x70 - */ void List_Append(List* list, void* object) { if (list->headObject == NULL) { SetFirstObject(list, object); @@ -48,10 +40,6 @@ namespace nw4r { } } - /** - * @note Address: 0x815120E4 (4.3U) - * @note Size: 0x6C - */ void List_Prepend(List* list, void* object) { if (list->headObject == NULL) { SetFirstObject(list, object); @@ -70,10 +58,6 @@ namespace nw4r { } } - /** - * @note Address: 0x81512150 (4.3U) - * @note Size: 0x120 - */ void List_Insert(List* list, void* pTarget, void* object) { if (pTarget == NULL) { List_Append(list, object); @@ -97,10 +81,6 @@ namespace nw4r { } } - /** - * @note Address: 0x81512270 (4.3U) - * @note Size: 0x6C - */ void List_Remove(List* list, void* object) { Link* link = OBJ_TO_LINK(list, object); @@ -126,10 +106,6 @@ namespace nw4r { list->numObjects--; } - /** - * @note Address: 0x815122DC (4.3U) - * @note Size: 0x20 - */ void* List_GetNext(const List* list, const void* object) { if (object == NULL) { return list->headObject; @@ -139,10 +115,6 @@ namespace nw4r { } } - /** - * @note Address: 0x815122FC (4.3U) - * @note Size: 0x1C - */ void* List_GetPrev(const List* list, const void* object) { if (object == NULL) { return list->tailObject; @@ -152,10 +124,6 @@ namespace nw4r { } } - /** - * @note Address: 0x81512318 (4.3U) - * @note Size: 0x4C - */ void* List_GetNth(const List* list, u16 n) { int i; void* it = NULL; diff --git a/libs/RVLMiddleware/eZiText/src/zi8error.c b/libs/RVLMiddleware/eZiText/src/zi8error.c index 47000dff..c6404b42 100644 --- a/libs/RVLMiddleware/eZiText/src/zi8error.c +++ b/libs/RVLMiddleware/eZiText/src/zi8error.c @@ -1,15 +1,6 @@ /* Functions appear to be stubbed out on release. */ -/** - * @note Address: 0x8148447C (4.3U) - * @note Size: 0x4 - */ void Zi8LogError(int code) {} - -/** - * @note Address: 0x81484480 (4.3U) - * @note Size: 0x4 - */ void Zi8ReplaceLastError(int code) {} diff --git a/libs/RVL_SDK/src/base/PPCArch.c b/libs/RVL_SDK/src/base/PPCArch.c index eadca95e..2ee8d621 100644 --- a/libs/RVL_SDK/src/base/PPCArch.c +++ b/libs/RVL_SDK/src/base/PPCArch.c @@ -1,91 +1,55 @@ #include #include -/** - * @note Address: 0x8152B340 (4.3U) - * @note Size: 0x8 - */ asm u32 PPCMfmsr() { nofralloc mfmsr r3 blr } -/** - * @note Address: 0x8152B348 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtmsr(register u32 val) { nofralloc mtmsr val blr } -/** - * @note Address: 0x8152B350 (4.3U) - * @note Size: 0x8 - */ asm u32 PPCMfhid0() { nofralloc mfhid0 r3 blr } -/** - * @note Address: 0x8152B358 (4.3U) - * @note Size: 0x8 - */ asm void PPCMthid0(register u32 val) { nofralloc mthid0 val blr } -/** - * @note Address: 0x8152B360 (4.3U) - * @note Size: 0x8 - */ asm u32 PPCMfl2cr() { nofralloc mfl2cr r3 blr } -/** - * @note Address: 0x8152B368 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtl2cr(register u32 val) { nofralloc mtl2cr val blr } -/** - * @note Address: 0x8152B370 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtdec(register u32 val) { nofralloc mtdec val blr } -/** - * @note Address: 0x8152B378 (4.3U) - * @note Size: 0x8 - */ asm void PPCSync() { nofralloc sc blr } -/** - * @note Address: 0x8152B380 (4.3U) - * @note Size: 0x14 - * @note The one and only. - */ +/** @note The one and only. */ asm void PPCHalt() { nofralloc sync @@ -96,70 +60,42 @@ _spin: b _spin } -/** - * @note Address: 0x8152B394 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtmmcr0(register u32 val) { nofralloc mtmmcr0 val blr } -/** - * @note Address: 0x8152B39C (4.3U) - * @note Size: 0x8 - */ asm void PPCMtmmcr1(register u32 val) { nofralloc mtmmcr1 val blr } -/** - * @note Address: 0x8152B3A4 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtpmc1(register u32 val) { nofralloc mtpmc1 val blr } -/** - * @note Address: 0x8152B3AC (4.3U) - * @note Size: 0x8 - */ asm void PPCMtpmc2(register u32 val) { nofralloc mtpmc2 val blr } -/** - * @note Address: 0x8152B3B4 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtpmc3(register u32 val) { nofralloc mtpmc3 val blr } -/** - * @note Address: 0x8152B3BC (4.3U) - * @note Size: 0x8 - */ asm void PPCMtpmc4(register u32 val){ nofralloc mtpmc4 val blr } -/** - * @note Address: 0x8152B3C4 (4.3U) - * @note Size: 0x20 - */ u32 PPCMffpscr() { register u64 fpscr; asm { @@ -169,10 +105,6 @@ u32 PPCMffpscr() { return fpscr; } -/** - * @note Address: 0x8152B3E4 (4.3U) - * @note Size: 0x28 - */ void PPCMtfpscr(register u32 val) { register struct { f32 tmp; @@ -187,30 +119,18 @@ void PPCMtfpscr(register u32 val) { } } -/** - * @note Address: 0x8152B40C (4.3U) - * @note Size: 0x8 - */ asm u32 PPCMfhid2() { nofralloc mfspr r3, 0x398 blr } -/** - * @note Address: 0x8152B414 (4.3U) - * @note Size: 0x8 - */ asm void PPCMthid2(register u32 val) { nofralloc mtspr 0x398, val blr } -/** - * @note Address: 0x8152B41C (4.3U) - * @note Size: 0xC - */ asm u32 PPCMfwpar() { nofralloc sync @@ -218,38 +138,22 @@ asm u32 PPCMfwpar() { blr } -/** - * @note Address: 0x8152B428 (4.3U) - * @note Size: 0x8 - */ asm void PPCMtwpar(register u32 val) { nofralloc mtwpar r3 blr } -/** - * @note Address: 0x8152B430 (4.3U) - * @note Size: 0x28 - */ void PPCDisableSpeculation() { PPCMthid0(PPCMfhid0() | HID0_SPD); } -/** - * @note Address: 0x8152B458 (4.3U) - * @note Size: 0x8 - */ asm void PPCSetFpNonIEEEMode() { nofralloc mtfsb1 29 blr } -/** - * @note Address: 0x8152B460 (4.3U) - * @note Size: 0x50 - */ void PPCMthid4(register u32 val) { if (val & HID4_H4A) { asm { diff --git a/libs/RVL_SDK/src/os/OSAlarm.c b/libs/RVL_SDK/src/os/OSAlarm.c index dd88e1a5..31cfa31c 100644 --- a/libs/RVL_SDK/src/os/OSAlarm.c +++ b/libs/RVL_SDK/src/os/OSAlarm.c @@ -22,10 +22,6 @@ static void SetTimer(const OSAlarm* alarm) { } } -/** - * @note Address 0x8152C88C (4.3U) - * @note Size 0x58 - */ void __OSInitAlarm() { if (__OSGetExceptionHandler(OS_EXCEPTION_DECREMENTER) != DecrementerExceptionHandler) { AlarmQueue.head = AlarmQueue.tail = NULL; @@ -35,19 +31,11 @@ void __OSInitAlarm() { } } -/** - * @note Address 0x8152C8E4 (4.3U) - * @note Size 0x10 - */ void OSCreateAlarm(OSAlarm* pAlarm) { pAlarm->handler = NULL; pAlarm->tag = 0; } -/** - * @note Address 0x8152C8F4 (4.3U) - * @note Size 0x250 - */ static void InsertAlarm(OSAlarm* alarm, OSTime end, OSAlarmHandler handler) { OSAlarm* iter; OSAlarm* prev; @@ -103,10 +91,6 @@ static void InsertAlarm(OSAlarm* alarm, OSTime end, OSAlarmHandler handler) { } } -/** - * @note Address 0x8152CB44 (4.3U) - * @note Size 0x70 - */ void OSSetAlarm(OSAlarm* alarm, OSTime start, OSAlarmHandler handler) { BOOL enabled = OSDisableInterrupts(); @@ -116,10 +100,6 @@ void OSSetAlarm(OSAlarm* alarm, OSTime start, OSAlarmHandler handler) { OSRestoreInterrupts(enabled); } -/** - * @note Address 0x8152CBB4 (4.3U) - * @note Size 0x84 - */ void OSSetPeriodicAlarm(OSAlarm* alarm, OSTime start, OSTime period, OSAlarmHandler handler) { BOOL enabled = OSDisableInterrupts(); @@ -130,10 +110,6 @@ void OSSetPeriodicAlarm(OSAlarm* alarm, OSTime start, OSTime period, OSAlarmHand OSRestoreInterrupts(enabled); } -/** - * @note Address 0x8152CC38 (4.3U) - * @note Size 0x118 - */ void OSCancelAlarm(OSAlarm* alarm) { OSAlarm* next; @@ -167,10 +143,6 @@ void OSCancelAlarm(OSAlarm* alarm) { OSRestoreInterrupts(enabled); } -/** - * @note Address 0x8152CD50 (4.3U) - * @note Size 0x22C - */ static void DecrementerExceptionCallback(__OSException type, OSContext* context) { #pragma unused(type) OSAlarmHandler handler; @@ -223,10 +195,6 @@ static void DecrementerExceptionCallback(__OSException type, OSContext* context) OSLoadContext(context); } -/** - * @note Address 0x8152CF7C (4.3U) - * @note Size 0x50 - */ static asm void DecrementerExceptionHandler(register u8 type, register OSContext* context) { nofralloc @@ -254,18 +222,10 @@ static asm void DecrementerExceptionHandler(register u8 type, register OSContext b DecrementerExceptionCallback } -/** - * @note Address 0x8152CFCC (4.3U) - * @note Size 0x8 - */ void OSSetAlarmTag(OSAlarm* alarm, u32 tag) { alarm->tag = tag; } -/** - * @note Address 0x8152CFD4 (4.3U) - * @note Size 0x8C - */ static BOOL OnReset(BOOL final, u32 event) { OSAlarm* iter; OSAlarm* next; @@ -287,18 +247,10 @@ static BOOL OnReset(BOOL final, u32 event) { return TRUE; } -/** - * @note Address 0x8152D060 (4.3U) - * @note Size 0x8 - */ void OSSetAlarmUserData(OSAlarm* alarm, void* userData) { alarm->userData = userData; } -/** - * @note Address 0x8152D068 (4.3U) - * @note Size 0x8 - */ void* OSGetAlarmUserData(const OSAlarm* alarm) { return alarm->userData; } diff --git a/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp b/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp index bf2f8c08..1f1c48a0 100644 --- a/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp +++ b/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp @@ -28,10 +28,6 @@ __declspec(section ".dtors$00") extern VoidPTR _dtors[]; #pragma section code_type ".init" -/** - * @note Address 0x813301D8 (4.3U) - * @note Size 0x24 - */ asm void __init_hardware() { mfmsr r0 ori r0, r0, 0x2000 @@ -46,10 +42,6 @@ asm void __init_hardware() { blr } -/** - * @note Address 0x813301FC (4.3U) - * @note Size 0x34 - */ asm void __flush_cache(void* pAddress, unsigned int size) { lis r5, 0xFFFF ori r5, r5, 0xFFF1 @@ -76,10 +68,6 @@ loop: #pragma section code_type ".text" -/** - * @note Address 0x81538608 (4.3U) - * @note Size 0x20 - */ asm void __init_user() { fralloc @@ -89,11 +77,6 @@ asm void __init_user() { blr } - -/** - * @note Address 0x81538628 (4.3U) - * @note Size 0x48 - */ static void __init_cpp() { VoidPTR *ctor; @@ -114,10 +97,6 @@ static void _ExitProcess() { PPCHalt(); } -/** - * @note Address 0x81538670 (4.3U) - * @note Size 0x4C - */ void exit() { __fini_cpp(); _ExitProcess(); diff --git a/libs/RevoEX/src/net/NETVersion.c b/libs/RevoEX/src/net/NETVersion.c index 73e90a56..d00318ca 100644 --- a/libs/RevoEX/src/net/NETVersion.c +++ b/libs/RevoEX/src/net/NETVersion.c @@ -1,9 +1,7 @@ +// That's it. + const char* NETRexPPCVersionPrintableString = "<< REX-PPC 2.0.4.0 (RevoEX-2.0PR4) REL 081212021713 >>"; -/** - * @note Address: 0x81494D7C (4.3U) - * @note Size: 0x8 - */ const char* NETGetRexPPCVersionPrintable() { return NETRexPPCVersionPrintableString; } diff --git a/libs/RevoEX/src/net/crc.c b/libs/RevoEX/src/net/crc.c index d99998b1..596ea130 100644 --- a/libs/RevoEX/src/net/crc.c +++ b/libs/RevoEX/src/net/crc.c @@ -1,9 +1,5 @@ #include -/** - * @note Address: 0x8149358C (4.3U) - * @note Size: 0x134 - */ u16 NETCalcCRC16(const void* pData, s32 size) { static u16 crc16_table[] = { 0x0000, 0xCC01, 0xD801, 0x1400, @@ -22,10 +18,6 @@ u16 NETCalcCRC16(const void* pData, s32 size) { return (u16)crc; } -/** - * @note Address: 0x814936C0 (4.3U) - * @note Size: 0x134 - */ u32 NETCalcCRC32(const void* pData, s32 size) { static u32 crc32_table[] = { 0x00000000, 0x1DB71064, 0x3B6E20C8, 0x26D930AC, diff --git a/libs/RevoEX/src/net/wireless_macaddr.c b/libs/RevoEX/src/net/wireless_macaddr.c index 8a41e363..bb7a68d4 100644 --- a/libs/RevoEX/src/net/wireless_macaddr.c +++ b/libs/RevoEX/src/net/wireless_macaddr.c @@ -1,9 +1,5 @@ extern int NCDiGetWirelessMacAddress(void* data); -/** - * @note Address: 0x81495844 (4.3U) - * @note Size: 0x4 - */ int NETGetWirelessMacAddress(void* data) { return NCDiGetWirelessMacAddress(data); } diff --git a/libs/RevoEX/src/nwc24/NWC24CHJump.c b/libs/RevoEX/src/nwc24/NWC24CHJump.c index 5cf5c10a..614d2b47 100644 --- a/libs/RevoEX/src/nwc24/NWC24CHJump.c +++ b/libs/RevoEX/src/nwc24/NWC24CHJump.c @@ -18,10 +18,6 @@ static u32* NWC24iGetCHJumpEntry(u32* table, u32 idx) { return (u32*)(table + 2 * idx); } -/** - * @note Address: 0x814B1A88 (4.3U) - * @note Size: 0xA0 (4.3U) - */ NWC24Err NWC24CheckCHJumpObj(const NWC24CHJumpObj* chjp, u32 dataSize) { u32 i; u32 tableSize; @@ -60,19 +56,11 @@ NWC24Err NWC24CheckCHJumpObj(const NWC24CHJumpObj* chjp, u32 dataSize) { return NWC24_OK; } -/** - * @note Address: 0x814B1B28 (4.3U) - * @note Size: 0x18 (4.3U) - */ NWC24Err NWC24GetCHJumpTitleId(const NWC24CHJumpObj* chjp, u64* titleId) { *titleId = chjp->header.titleId; return NWC24_OK; } -/** - * @note Address: 0x814B1B40 (4.3U) - * @note Size: 0x30 (4.3U) - */ NWC24Err NWC24GetCHJumpBlockSize(const NWC24CHJumpObj *chjp, u32* size, u32 index) { u32* table = NWC24iGetCHJumpTable(chjp); @@ -84,10 +72,6 @@ NWC24Err NWC24GetCHJumpBlockSize(const NWC24CHJumpObj *chjp, u32* size, u32 inde return NWC24_OK; } -/** - * @note Address: 0x814B1B70 (4.3U) - * @note Size: 0xA0 (4.3U) - */ NWC24Err NWC24GetCHJumpBlockData(const NWC24CHJumpObj* chjp, char* data, u32 size, u32 index) { u32* table = NWC24iGetCHJumpTable(chjp); char* srcData; diff --git a/libs/Runtime/src/__init_cpp_exceptions.cpp b/libs/Runtime/src/__init_cpp_exceptions.cpp index fcbb7311..0415d845 100644 --- a/libs/Runtime/src/__init_cpp_exceptions.cpp +++ b/libs/Runtime/src/__init_cpp_exceptions.cpp @@ -25,11 +25,7 @@ static inline void __exception_info_constants(__eti_init_info* info, char** R2) info = _eti_init_info; } -/** - * @note Address: 0x815F9D08 (4.3U) - * @note Size: 0x3C - */ -extern void __init_cpp_exceptions() { +void __init_cpp_exceptions() { if (fragmentID == -2) { char* R2; __eti_init_info* info; @@ -39,11 +35,7 @@ extern void __init_cpp_exceptions() { } } -/** - * @note Address: 0x815F9D44 (4.3U) - * @note Size: 0x34 - */ -extern void __fini_cpp_exceptions() { +void __fini_cpp_exceptions() { if (fragmentID != -2) { __unregister_fragment(fragmentID); fragmentID = -2; diff --git a/libs/Runtime/src/__mem.c b/libs/Runtime/src/__mem.c index d9fb9988..064d1ae7 100644 --- a/libs/Runtime/src/__mem.c +++ b/libs/Runtime/src/__mem.c @@ -3,10 +3,6 @@ #pragma section code_type ".init" -/** - * @note Address 0x81330230 (4.3U) - * @note Size 0x50 - */ void* memcpy(void* pDest, const void* pSrc, size_t count) { char* p; char* q; @@ -31,11 +27,6 @@ void* memcpy(void* pDest, const void* pSrc, size_t count) { return pDest; } - -/** - * @note Address 0x81330280 (4.3U) - * @note Size 0xB4 - */ void __fill_mem(void* pDest, int value, unsigned long length) { #define cDest ((unsigned char*)pDest) #define lDest ((unsigned long*)pDest) @@ -98,10 +89,6 @@ void __fill_mem(void* pDest, int value, unsigned long length) { #undef lDest } -/** - * @note Address 0x81330334 (4.3U) - * @note Size 0x30 - */ void* memset(void* pDest, int ch, size_t count) { __fill_mem(pDest, ch, count); return pDest; @@ -109,10 +96,6 @@ void* memset(void* pDest, int ch, size_t count) { #pragma section code_type ".text" -/** - * @note Address 0x815F8EFC (4.3U) - * @note Size 0x1C - */ __declspec(weak) size_t strlen(const char* str) { size_t size = -1; unsigned char* p = (unsigned char*)str - 1; diff --git a/libs/Runtime/src/global_destructor_chain.c b/libs/Runtime/src/global_destructor_chain.c index 1e109c41..06162830 100644 --- a/libs/Runtime/src/global_destructor_chain.c +++ b/libs/Runtime/src/global_destructor_chain.c @@ -3,10 +3,6 @@ DtorChain* __global_destructor_chain; -/** - * @note Address: 0x815F8FE0 (4.3U) - * @note Size 0x18 - */ void __register_global_object(void* object, void* dtor, DtorChain* chain) { chain->next = __global_destructor_chain; chain->dtor = dtor; @@ -15,10 +11,6 @@ void __register_global_object(void* object, void* dtor, DtorChain* chain) { __global_destructor_chain = chain; } -/** - * @note Address: 0x815F8FF8 (4.3U) - * @note Size 0x48 - */ void __destroy_global_chain() { DtorChain* chain; diff --git a/libs/Runtime/src/runtime.c b/libs/Runtime/src/runtime.c index b2549f4e..6ad87e8d 100644 --- a/libs/Runtime/src/runtime.c +++ b/libs/Runtime/src/runtime.c @@ -94,10 +94,6 @@ const unsigned long long __constants[] = { 0x41E0000000000000, }; -/** - * @note Address 0x815F9398 - * @note Size 0x5C - */ asm unsigned long __cvt_fp2unsigned(register double d) { nofralloc @@ -133,10 +129,6 @@ asm unsigned long __cvt_fp2unsigned(register double d) { blr } -/** - * @note Address 0x815F948C - * @note Size 0x4C - */ static asm void __save_fpr() { nofralloc @@ -179,10 +171,6 @@ static asm void __save_fpr() { blr } -/** - * @note Address 0x815F9440 - * @note Size 0x4C - */ static asm void __restore_fpr() { nofralloc ENTRY_RESTORE_FPR(14) @@ -224,10 +212,6 @@ static asm void __restore_fpr() { blr } -/** - * @note Address 0x815F948C - * @note Size 0x4C - */ static asm void __save_gpr() { nofralloc ENTRY_SAVE_GPR(14) @@ -269,10 +253,6 @@ static asm void __save_gpr() { blr } -/** - * @note Address 0x815F94D8 - * @note Size 0x4C - */ static asm void __restore_gpr() { nofralloc ENTRY_RESTORE_GPR(14) @@ -314,10 +294,6 @@ static asm void __restore_gpr() { blr } -/** - * @note Address: 0x815F9524 (4.3U) - * @note Size: 0xEC - */ asm void __div2u() { cmpwi r3, 0x0 cntlzw r0, r3 @@ -389,10 +365,6 @@ L_815F9604: blr } -/** - * @note Address: 0x815F9610 (4.3U) - * @note Size: 0x138 - */ asm void __div2i() { stwu r1, -0x10(r1) clrrwi. r9, r3, 31 @@ -487,10 +459,6 @@ L_815F9740: blr } -/** - * @note Address: 0x815F9748 (4.3U) - * @note Size: 0xE4 - */ asm void __mod2u() { cmpwi r3, 0x0 cntlzw r0, r3 @@ -560,10 +528,6 @@ L_815F9828: blr } -/** - * @note Address: 0x815F982C (4.3U) - * @note Size: 0x10C - */ asm void __mod2i() { cmpwi cr7, r3, 0x0 bge cr7, L_815F983C @@ -646,10 +610,6 @@ L_815F9934: blr } -/** - * @note Address: 0x815F9938 (4.3U) - * @note Size: 0x24 - */ asm void __shl2i() { subfic r8, r5, 0x20 subic r9, r5, 0x20 @@ -662,10 +622,6 @@ asm void __shl2i() { blr } -/** - * @note Address: 0x815F995C (4.3U) - * @note Size: 0x24 - */ asm void __shr2u() { subfic r8, r5, 0x20 subic r9, r5, 0x20 @@ -678,10 +634,6 @@ asm void __shr2u() { blr } -/** - * @note Address: 0x815F9980 (4.3U) - * @note Size: 0x28 - */ asm void __shr2i() { subfic r8, r5, 0x20 subic. r9, r5, 0x20 @@ -696,10 +648,6 @@ L_815F99A0: blr } -/** - * @note Address: 0x815F99A8 (4.3U) - * @note Size: 0xB0 - */ asm void __cvt_sll_dbl() { stwu r1, -0x10(r1) clrrwi. r5, r3, 31 @@ -751,10 +699,6 @@ L_815F9A44: blr } -/** - * @note Address: 0x815F9A58 (4.3U) - * @note Size: 0x9C - */ asm void __cvt_ull_dbl() { stwu r1, -0x10(r1) or. r7, r3, r4 @@ -800,10 +744,6 @@ L_815F9AE0: blr } -/** - * @note Address: 0x815F9AF4 (4.3U) - * @note Size: 0xA0 - */ asm void __cvt_ull_flt() { stwu r1, -0x10(r1) or. r7, r3, r4 @@ -850,10 +790,6 @@ L_815F9B7C: blr } -/** - * @note Address: 0x815F9B94 (4.3U) - * @note Size: 0xCC - */ asm void __cvt_dbl_usll() { stwu r1, -0x10(r1) stfd f1, 0x8(r1) @@ -914,10 +850,6 @@ L_815F9C58: blr } -/** - * @note Address: 0x815F9C60 (4.3U) - * @note Size: 0xAB - */ asm void __cvt_dbl_ull() { stwu r1, -0x10(r1) stfd f1, 0x8(r1) diff --git a/rules/BS2Libs/scene/sdChannelButton.mak b/rules/BS2Libs/scene/sdChannelButton.mak new file mode 100644 index 00000000..fa9b625d --- /dev/null +++ b/rules/BS2Libs/scene/sdChannelButton.mak @@ -0,0 +1,14 @@ +SD_CHAN_BUTTON_OBJS = $(BS2_SPLIT_PATH)/scene/sdChannelButton/iplSDButton.o \ + $(BS2_SPLIT_PATH)/scene/sdChannelButton/iplSDArrow.o \ + $(BS2_SPLIT_PATH)/scene/sdChannelButton/iplSDMenuButton.o + +DEPENDENCIES += $(SD_CHAN_BUTTON_OBJS:.o=.d) + +$(BS2_OBJ_PATH)/scene/sdChannelButton/%.o: $(BS2_SRC_PATH)/scene/sdChannelButton/%.cpp + $(call BuildCPPSources,$(BS2_CMN_CCPATH),$(BS2_CMN_CFLAGS),$(BS2_INC_PATHS),$(INCLUDE_ROOT)) + +$(BS2_BLD_PATH)/scene/sdChannelButton.a: $(SD_CHAN_BUTTON_OBJS) + $(call LinkLibrary,$(BS2_CMN_CCPATH),$^,$@) + + + diff --git a/rules/BS2Libs/scene/sdChannelMemory.mak b/rules/BS2Libs/scene/sdChannelMemory.mak new file mode 100644 index 00000000..97423f7b --- /dev/null +++ b/rules/BS2Libs/scene/sdChannelMemory.mak @@ -0,0 +1,12 @@ +SD_CHAN_MEM_OBJS = $(BS2_SPLIT_PATH)/scene/sdChannelMemory/iplSDMemory.o + +DEPENDENCIES += $(SD_CHAN_MEM_OBJS:.o=.d) + +$(BS2_OBJ_PATH)/scene/sdChannelMemory/%.o: $(BS2_SRC_PATH)/scene/sdChannelMemory/%.cpp + $(call BuildCPPSources,$(BS2_CMN_CCPATH),$(BS2_CMN_CFLAGS),$(BS2_INC_PATHS),$(INCLUDE_ROOT)) + +$(BS2_BLD_PATH)/scene/sdChannelMemory.a: $(SD_CHAN_MEM_OBJS) + $(call LinkLibrary,$(BS2_CMN_CCPATH),$^,$@) + + + diff --git a/rules/BS2Libs/scene/sdChannelSelect.mak b/rules/BS2Libs/scene/sdChannelSelect.mak index 387b7697..2bf7ec16 100644 --- a/rules/BS2Libs/scene/sdChannelSelect.mak +++ b/rules/BS2Libs/scene/sdChannelSelect.mak @@ -1,17 +1,12 @@ -SD_MENU_OBJS = $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDChannelSelect.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDChannelObj.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDChannelTitle.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDButton.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDArrow.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDMenuButton.o \ - $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDMemory.o +SD_CHAN_EL_OBJS = $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDChannelSelect.o \ + $(BS2_SPLIT_PATH)/scene/sdChannelSelect/iplSDChannelObj.o -DEPENDENCIES += $(SD_MENU_OBJS:.o=.d) +DEPENDENCIES += $(SD_CHAN_EL_OBJS:.o=.d) $(BS2_OBJ_PATH)/scene/sdChannelSelect/%.o: $(BS2_SRC_PATH)/scene/sdChannelSelect/%.cpp $(call BuildCPPSources,$(BS2_CMN_CCPATH),$(BS2_CMN_CFLAGS),$(BS2_INC_PATHS),$(INCLUDE_ROOT)) -$(BS2_BLD_PATH)/scene/sdChannelSelect.a: $(SD_MENU_OBJS) +$(BS2_BLD_PATH)/scene/sdChannelSelect.a: $(SD_CHAN_EL_OBJS) $(call LinkLibrary,$(BS2_CMN_CCPATH),$^,$@) diff --git a/rules/BS2Libs/scene/sdChannelTitle.mak b/rules/BS2Libs/scene/sdChannelTitle.mak new file mode 100644 index 00000000..f03c99d9 --- /dev/null +++ b/rules/BS2Libs/scene/sdChannelTitle.mak @@ -0,0 +1,12 @@ +SD_CHAN_TITLE_OBJS = $(BS2_SPLIT_PATH)/scene/sdChannelTitle/iplSDChannelTitle.o + +DEPENDENCIES += $(SD_CHAN_TITLE_OBJS:.o=.d) + +$(BS2_OBJ_PATH)/scene/sdChannelTitle/%.o: $(BS2_SRC_PATH)/scene/sdChannelTitle/%.cpp + $(call BuildCPPSources,$(BS2_CMN_CCPATH),$(BS2_CMN_CFLAGS),$(BS2_INC_PATHS),$(INCLUDE_ROOT)) + +$(BS2_BLD_PATH)/scene/sdChannelTitle.a: $(SD_CHAN_TITLE_OBJS) + $(call LinkLibrary,$(BS2_CMN_CCPATH),$^,$@) + + + diff --git a/rules/BS2rules.mak b/rules/BS2rules.mak index 128e5712..8d5c2a3b 100644 --- a/rules/BS2rules.mak +++ b/rules/BS2rules.mak @@ -17,7 +17,7 @@ BS2_ELF_ADDRESS = 0x81330000 BS2_IMAGE_SIZE = 0x3B0000 # for libraries -BS2_CMN_CFLAGS = -O4,s -ipa file $(COMMON_CCFLAGS) +BS2_CMN_CFLAGS = -O4,s -ipa file $(COMMON_CCFLAGS) -sym on BS2_CMN_CCPATH = $(CW_GC_30A52) # libraries @@ -47,6 +47,9 @@ BS2_CMN_CCPATH = $(CW_GC_30A52) -include $(RULES_ROOT)/BS2Libs/scene/parentalDialog.mak -include $(RULES_ROOT)/BS2Libs/scene/sceneMisc.mak -include $(RULES_ROOT)/BS2Libs/scene/sdChannelSelect.mak +-include $(RULES_ROOT)/BS2Libs/scene/sdChannelTitle.mak +-include $(RULES_ROOT)/BS2Libs/scene/sdChannelButton.mak +-include $(RULES_ROOT)/BS2Libs/scene/sdChannelMemory.mak -include $(RULES_ROOT)/BS2Libs/scene/setting.mak -include $(RULES_ROOT)/BS2Libs/scene/sceneSystem.mak -include $(RULES_ROOT)/BS2Libs/scene/textWriter.mak @@ -80,6 +83,9 @@ BS2_ELF_LIBRARIES = $(BS2_BLD_PATH)/system.a \ $(BS2_BLD_PATH)/scene/parentalDialog.a \ $(BS2_BLD_PATH)/scene/sceneMisc.a \ $(BS2_BLD_PATH)/scene/sdChannelSelect.a \ + $(BS2_BLD_PATH)/scene/sdChannelTitle.a \ + $(BS2_BLD_PATH)/scene/sdChannelButton.a \ + $(BS2_BLD_PATH)/scene/sdChannelMemory.a \ $(BS2_BLD_PATH)/scene/sceneSystem.a \ $(BS2_BLD_PATH)/scene/setting.a \ $(BS2_BLD_PATH)/scene/textWriter.a \ diff --git a/src/BS2/BS2.c b/src/BS2/BS2.c index 1b742647..8c7dc720 100644 --- a/src/BS2/BS2.c +++ b/src/BS2/BS2.c @@ -1,6 +1,4 @@ -/** - *** STUB *** -*/ +// *** STUB FOR NOW *** int main(int argc, char** argv) { return 0; } diff --git a/src/BS2/BS2Entry.c b/src/BS2/BS2Entry.c index bcc09d55..5a06eb92 100644 --- a/src/BS2/BS2Entry.c +++ b/src/BS2/BS2Entry.c @@ -4,10 +4,6 @@ extern void mainmenu(); -/** - * @note Address: 0x81379658 - * @note Size: 0xA0 - */ void BS2Entry() { // Wait for Video. VIWaitForRetrace(); diff --git a/src/BS2/BS2Init.c b/src/BS2/BS2Init.c index 0794fa09..6e9f7236 100644 --- a/src/BS2/BS2Init.c +++ b/src/BS2/BS2Init.c @@ -14,10 +14,6 @@ extern u32 __PADFixBits; extern void __OSFPRInit(); -/** - * @note Address: 0x8137AEA4 (4.3U) - * @note Size: 0x38 - */ static asm void ClearOtherBATs() { nofralloc @@ -64,10 +60,6 @@ static void SetConsoleInfo() { rvlBi->devKitVersion = BS2_VERSION; } -/** - * @note Address: 0x8137AEDC (4.3U) - * @note Size: 0xD8 - */ void BS2Init() { memset(OSPhysicalToCached(0x00000000), 0, 0x100); memset(OSPhysicalToCached(0x00003000), 0, 0x100); diff --git a/src/BS2/BootStart.c b/src/BS2/BootStart.c index 339de64e..758e10a8 100644 --- a/src/BS2/BootStart.c +++ b/src/BS2/BootStart.c @@ -23,11 +23,7 @@ extern void DBInit(); void __start(); -/** - * @note Address: 0x81330000 (4.3J/4.3U/4.3E) - * @note Size: 0xA8 - * @note This must be the first function linked. - */ +/** @note This must be the first function linked. */ __declspec(weak) asm void __start() { nofralloc @@ -92,10 +88,6 @@ bi2_end_arg_parse: b exit } -/** - * @note Address: 0x813300A8 (4.3J/4.3U/4.3E) - * @note Size: 0x90 - */ static asm void __init_registers() { nofralloc @@ -155,10 +147,6 @@ static void init_bss_section(void* dest, unsigned int size) { } } -/** - * @note Address: 0x81330138 (4.3J/4.3U/4.3E) - * @note Size: 0xA0 - */ static void __init_data() { __rom_copy_info* rci; __bss_init_info* bii; diff --git a/src/channelScript/CHANSVm.c b/src/channelScript/CHANSVm.c index ce603f6e..8e14ede1 100644 --- a/src/channelScript/CHANSVm.c +++ b/src/channelScript/CHANSVm.c @@ -16,10 +16,6 @@ inline void VmInitObjHdr(CHANSVmObjHdr* hdr) { memset((void*)hdr, 0, sizeof(CHANSVmObjHdr)); } -/** - * @note Address: 0x8144A5AC (4.3U) - * @note Size: 0xC0 - */ void CHANSVmDebugPrintf(const char* format, ...) { va_list args; char str[CHANSVmDebugLength + 2]; diff --git a/src/iplwww/www_message.cpp b/src/iplwww/www_message.cpp index 71b31c12..e8bfd015 100644 --- a/src/iplwww/www_message.cpp +++ b/src/iplwww/www_message.cpp @@ -2,34 +2,18 @@ namespace ext_ead { namespace www { - /** - * @note Address: 0x8136DEAC (4.3U) - * @note Size: 0x2C - */ BOOL ut_message_base::SendMessage(OSMessage msg, s32 flags) { return OSSendMessage(&mpMsgQueue, msg, flags) != FALSE; } - - /** - * @note Address: 0x8136DED8 (4.3U) - * @note Size: 0x2C - */ + BOOL ut_message_base::JamMessage(OSMessage msg, s32 flags) { return OSJamMessage(&mpMsgQueue, msg, flags) != FALSE; } - - /** - * @note Address: 0x8136DF04 (4.3U) - * @note Size: 0x2C - */ + BOOL ut_message_base::ReceiveMessage(OSMessage* pMsg, s32 flags) { return OSReceiveMessage(&mpMsgQueue, pMsg, flags) != FALSE; } - - /** - * @note Address: 0x8136DF30 (4.3U) - * @note Size: 0x8 - */ + void ut_message_base::InitMessageQueue(OSMessage* pMsg, s32 msgCount) { OSInitMessageQueue(&mpMsgQueue, pMsg, msgCount); } diff --git a/src/iplwww/www_print.cpp b/src/iplwww/www_print.cpp index 613dfe09..4727ac24 100644 --- a/src/iplwww/www_print.cpp +++ b/src/iplwww/www_print.cpp @@ -9,11 +9,7 @@ namespace ext_ead { namespace print { #define WWW_REPORT_LENGTH 1022 - /** - * @note Address: 0x8136E894 - * @note Size: 0x68 - * @note Was stubbed out for release - */ + /** @note Was stubbed out for release */ void IPLWWWReport(int type, const char* format, ...) { va_list args; @@ -24,11 +20,7 @@ namespace ext_ead { va_end(args); } - /** - * @note Address: 0x8136E8FC - * @note Size: 0x4 - * @note Was stubbed out for release - */ + /** @note Was stubbed out for release */ void IPLWWWVReport(int type, const char* format, va_list args) { #ifdef ENABLE_IPL_WWW_REPORT char str[WWW_REPORT_LENGTH + 2]; @@ -37,7 +29,7 @@ namespace ext_ead { str[WWW_REPORT_LENGTH + 1] = str[WWW_REPORT_LENGTH] = 0; - OSReport("[%s] %s", Message, str); + OSReport("%s %s", Message[type], str); #endif // ENABLE_IPL_WWW_REPORT } } diff --git a/src/iplwww/www_thread.cpp b/src/iplwww/www_thread.cpp index 591e4bc7..818e9b31 100644 --- a/src/iplwww/www_thread.cpp +++ b/src/iplwww/www_thread.cpp @@ -4,10 +4,6 @@ namespace ext_ead { namespace www { - /** - * @note Address: 0x8136E6B4 (4.3U) - * @note Size: 0x48 - */ void* ut_thread::ThreadMain_(void* param) { ut_thread* pThread = reinterpret_cast(param); @@ -15,25 +11,13 @@ namespace ext_ead { return pThread->Run(); } - /** - * @note Address: 0x8136E6FC (4.3U) - * @note Size: 0x24 - */ ut_thread::ut_thread() : mpStack(NULL), mStackSize(0), mPriority(16) {} - /** - * @note Address: 0x8136E720 (4.3U) - * @note Size: 0x40 - */ ut_thread::~ut_thread() {} - /** - * @note Address: 0x8136E760 (4.3U) - * @note Size: 0x7C - */ void ut_thread::Create(void* pStack, u32 stackSize, int priority, bool bStartThread) { mStackSize = stackSize; mPriority = priority; @@ -45,26 +29,14 @@ namespace ext_ead { } } - /** - * @note Address: 0x8136E7DC (4.3U) - * @note Size: 0x8 - */ void ut_thread::Resume() { OSResumeThread(&mThread); } - /** - * @note Address: 0x8136E7E4 (4.3U) - * @note Size: 0x8 - */ void ut_thread::Suspend() { OSSuspendThread(&mThread); } - /** - * @note Address: 0x8136E7EC (4.3U) - * @note Size: 0x50 - */ BOOL ut_thread::WaitForThreadExit() { BOOL result = FALSE; if (OSJoinThread(&mThread, (void*)&result)) { @@ -73,18 +45,10 @@ namespace ext_ead { return result; } - /** - * @note Address: 0x8136E83C (4.3U) - * @note Size: 0x2C - */ bool ut_thread::IsThreadTerminated() { return OSIsThreadTerminated(&mThread); } - /** - * @note Address: 0x8136E868 (4.3U) - * @note Size: 0x2C - */ bool ut_thread::IsThreadSuspended() { return OSIsThreadSuspended(&mThread); } diff --git a/src/scene/backMenu/iplBackMenu.cpp b/src/scene/backMenu/iplBackMenu.cpp index 55592a60..418050e4 100644 --- a/src/scene/backMenu/iplBackMenu.cpp +++ b/src/scene/backMenu/iplBackMenu.cpp @@ -4,10 +4,6 @@ extern u8 backToWiiMenu_arc[]; namespace ipl { namespace scene { - /** - * @note Address: 0x8138EA64 - * @note Size: 0x54 - */ BackMenu::BackMenu(EGG::Heap* pHeap) : FaderSceneBase(pHeap), unk_0x5C(0) { @@ -15,24 +11,11 @@ namespace ipl { unk_0x28 = 2; } - /** - * @note Address: 0x8138EAB8 - * @note Size: 0x4 - */ void BackMenu::prepare() {} - - /** - * @note Address: 0x8138EABC - * @note Size: 0x8 - */ BOOL BackMenu::isReady() const { return TRUE; } - /** - * @note Address: 0x8138EAC4 - * @note Size: 0xAC - */ void BackMenu::create() { mpLayout = new layout::Object(mpHeap, backToWiiMenu_arc, "arc", "my_BackToWiiMenu.brlyt"); @@ -46,18 +29,10 @@ namespace ipl { System::getFader()->fadeIn(); } - /** - * @note Address: 0x8138EB70 - * @note Size: 0x8 - */ void BackMenu::calcCommon() { mpLayout->calc(); } - /** - * @note Address: 0x8138EB78 - * @note Size: 0x44 - */ SceneReturn BackMenu::calcFadein() { if (System::getFader()->getStatus() == EGG::Fader::STATUS_PREPARE_OUT) { return SCENE_DONE; @@ -65,10 +40,6 @@ namespace ipl { return SCENE_CONTINUE; } - /** - * @note Address: 0x8138EBBC - * @note Size: 0x6C - */ SceneReturn BackMenu::calcNormal() { SceneReturn result = SCENE_CONTINUE; @@ -79,18 +50,10 @@ namespace ipl { return result; } - /** - * @note Address: 0x8138EC28 - * @note Size: 0x1C - */ void BackMenu::initCalcFadeout() { System::getFader()->fadeOut(); } - /** - * @note Address: 0x8138EC44 - * @note Size: 0xE8 - */ SceneReturn BackMenu::calcFadeout() { if (System::getFader()->getStatus() == EGG::Fader::STATUS_PREPARE_IN) { System::setUnk_0x2BE(true); @@ -108,10 +71,6 @@ namespace ipl { return SCENE_CONTINUE; } - /** - * @note Address: 0x8138ED2C - * @note Size: 0x50 - */ void BackMenu::draw() { if (System::getSceneManager()->isDrawingScene() == TRUE) { utility::Graphics::setOrtho(); diff --git a/src/scene/health/iplHealth.cpp b/src/scene/health/iplHealth.cpp index 1c26fc31..3d1ac5e9 100644 --- a/src/scene/health/iplHealth.cpp +++ b/src/scene/health/iplHealth.cpp @@ -30,10 +30,6 @@ namespace ipl { ANIM_FADE_OUT, }; - /** - * @note Address: 0x8164F91C - * @note Size: 0x30 - */ // Health And Safety screen const char* has_pane_name[] = { "Has_JPN", @@ -50,10 +46,6 @@ namespace ipl { "Has_CHN" }; - /** - * @note Address: 0x8164F9D4 - * @note Size: 0x30 - */ // "Press A to continue" text const char* push_pane_name[] = { "Push_JPN", @@ -70,10 +62,6 @@ namespace ipl { "Push_CHN" }; - /** - * @note Address: 0x813BD5D8 - * @note Size: 0x74 - */ skHealth::skHealth(EGG::Heap *pHeap) : FaderSceneBase(pHeap), mpHasPane(NULL), @@ -89,40 +77,20 @@ namespace ipl { unk_0x28 = 2; } - /** - * @note Address: 0x813BD64C - * @note Size: 0x5C - */ skHealth::~skHealth() {} - /** - * @note Address: 0x813BD6A8 - * @note Size: 0x4C - */ void skHealth::prepare() { mpLayoutFile = System::getNandManager()->readLayoutAsync(System::getUnk28Heap(), "health.ash", true); } - /** - * @note Address: 0x813BD6F4 - * @note Size: 0x24 - */ void skHealth::destroy() { delete mpLayoutFile; } - /** - * @note Address: 0x813BD718 - * @note Size: 0x14 - */ BOOL skHealth::isReady() const { return mpLayoutFile->isFinished(); } - /** - * @note Address: 0x813BD72C - * @note Size: 0x114 - */ u32 skHealth::getCountryIndex_() { u32 result = LANG_US_ENG; s32 language = SCGetLanguage(); @@ -192,10 +160,6 @@ namespace ipl { return result; } - /** - * @note Address: 0x813BD840 - * @note Size: 0x21C - */ // loading `getCountryIndex_()` to `country` for some reason is stored in `r29` and not `r26` // https://decomp.me/scratch/55mS2 void skHealth::create() { @@ -241,10 +205,6 @@ namespace ipl { System::getPointer()->setVisible(false); } - /** - * @note Address: 0x813BDA5C - * @note Size: 0x138 - */ SceneReturn skHealth::calcFadein() { SceneReturn result = SCENE_CONTINUE; @@ -272,10 +232,6 @@ namespace ipl { return result; } - /** - * @note Address: 0x813BDB94 - * @note Size: 0x140 - */ SceneReturn skHealth::calcNormal() { SceneReturn result = SCENE_CONTINUE; u32 newWpadMask = utility::wpad::getWpadConnectedMask(); @@ -309,10 +265,6 @@ namespace ipl { return result; } - /** - * @note Address: 0x813BDCD4 - * @note Size: 0x140 - */ SceneReturn skHealth::calcFadeout() { mpLayout->calc(); @@ -344,10 +296,6 @@ namespace ipl { return SCENE_CONTINUE; } - /** - * @note Address: 0x813BDE14 - * @note Size: 0x50 - */ void skHealth::draw() { if (System::getSceneManager()->isDrawingScene() == TRUE) { utility::Graphics::setOrtho(); @@ -355,10 +303,6 @@ namespace ipl { } } - /** - * @note Address: 0x813BDE64 - * @note Size: 0x118 - */ void skHealth::check_safe_mode() { if (!mbHeldCombo) { if (System::getMasterController()->down(KPAD_BUTTON_PLUS) && System::getMasterController()->down(KPAD_BUTTON_MINUS)) { @@ -380,10 +324,6 @@ namespace ipl { } } - /** - * @note Address: 0x813BDF7C - * @note Size: 0x88 - */ BOOL skHealth::finish_safe_mode_check() const { BOOL result = FALSE; diff --git a/src/scene/sceneMisc/iplReboot.cpp b/src/scene/sceneMisc/iplReboot.cpp index 063d284e..17e26ad0 100644 --- a/src/scene/sceneMisc/iplReboot.cpp +++ b/src/scene/sceneMisc/iplReboot.cpp @@ -6,10 +6,6 @@ namespace ipl { namespace scene { - /** - * @note Address: 0x813DA778 - * @note Size: 0x10C - */ void Reboot::calc() { if (System::unkBool() || (System::hasCreatedAfter() && System::isNandFull())) { System::getHomeButtonMenu()->setUnk_0x05(true); diff --git a/src/scene/sceneSystem/iplFaderSceneBase.cpp b/src/scene/sceneSystem/iplFaderSceneBase.cpp index 054a7e9e..05c91a3d 100644 --- a/src/scene/sceneSystem/iplFaderSceneBase.cpp +++ b/src/scene/sceneSystem/iplFaderSceneBase.cpp @@ -2,18 +2,10 @@ namespace ipl { namespace scene { - /** - * @note Address: 0x8140B208 (4.3U) - * @note Size: 0x4C - */ FaderSceneBase::FaderSceneBase(EGG::Heap* pHeap) : Base(pHeap), mState(FADE_STATE_FADE_IN) {} - - /** - * @note Address: 0x8140B254 (4.3U) - * @note Size: 0x14C - */ + void FaderSceneBase::calc() { if (mState != FADE_STATE_DONE) { calcCommon(); diff --git a/src/scene/sceneSystem/iplSceneBase.cpp b/src/scene/sceneSystem/iplSceneBase.cpp index fe105d46..f2d13d1f 100644 --- a/src/scene/sceneSystem/iplSceneBase.cpp +++ b/src/scene/sceneSystem/iplSceneBase.cpp @@ -2,10 +2,6 @@ namespace ipl { namespace scene { - /** - * @note Address: 0x81409BEC - * @note Size: 0x78 - */ Base::Base(EGG::Heap* pHeap) : mpHeap(pHeap), unk_0x28(0), @@ -16,54 +12,30 @@ namespace ipl { mCommand.clear(); } - /** - * @note Address: 0x81409C64 - * @note Size: 0x5C - */ Base::~Base() {} - /** - * @note Address: 0x81409CC0 - * @note Size: 0x4C - */ void Base::do_prepare() { prepare(); System::getNandManager()->sendToken(mNandToken); } - /** - * @note Address: 0x81409D0C - * @note Size: 0x44 - */ void Base::do_create() { create(); unk_0x2C |= 1; } - /** - * @note Address: 0x81409D50 - * @note Size: 0x6C - */ void Base::do_calc() { if ((getNext() == NULL || (unk_0x28 & 1)) && !(unk_0x2C & 2)) { calc(); } } - /** - * @note Address: 0x81409DBC - * @note Size: 0x6C - */ void Base::do_draw() { if ((getNext() == NULL || (unk_0x28 & 2)) && !(unk_0x2C & 2)) { draw(); } } - /** - * @note Address: 0x81409E28 - * @note Size: 0x60 - */ void Base::do_destroy() { destroy(); if (mCommand.unk_0x00 != 0) { @@ -72,10 +44,6 @@ namespace ipl { } } - /** - * @note Address: 0x81409E88 - * @note Size: 0x70 - */ void Base::createChildScene(int arg0, Base* pArg1, Base* pArg2, void* pArg3) { Command command; @@ -89,10 +57,6 @@ namespace ipl { System::getSceneManager()->pushCommand(command); } - /** - * @note Address: 0x81409EF8 - * @note Size: 0x9C - */ void Base::reserveSceneChange(int arg0, void* pArg1) { Command command; @@ -107,10 +71,6 @@ namespace ipl { System::getSceneManager()->pushCommand(command); } - /** - * @note Address: 0x81409F94 - * @note Size: 0x28 - */ void Base::reserveAllSceneDestruction(int arg0, void* pArg1) { mCommand.unk_0x00 = 3; mCommand.unk_0x04 = 1; diff --git a/src/scene/setting/iplSettingBg.cpp b/src/scene/setting/iplSettingBg.cpp index 294b0d9f..df81bb91 100644 --- a/src/scene/setting/iplSettingBg.cpp +++ b/src/scene/setting/iplSettingBg.cpp @@ -2,10 +2,6 @@ namespace ipl { namespace scene { - /** - * @note Address: 0x81406CC0 (4.3U) - * @note Size: 0x68 - */ SettingBg::SettingBg(EGG::Heap* pHeap, int unk) : Base(pHeap) { unkID = unk; mpLayout = NULL; @@ -14,18 +10,10 @@ namespace ipl { unk_0x28 = 3; } - /** - * @note Address: 0x81406D28 (4.3U) - * @note Size: 0x4C - */ void SettingBg::prepare() { mpLayoutFile = System::getNandManager()->readLayoutAsync(mpHeap, "setupBg.ash", false); } - /** - * @note Address: 0x81406D74 (4.3U) - * @note Size: 0xA4 - */ void SettingBg::create() { mpLayout = new layout::Object(mpHeap, mpLayoutFile, "arc", "it_BgSetUp_a.brlyt"); mpLayout->finishBinding(); @@ -36,18 +24,10 @@ namespace ipl { System::getFader()->fadeIn(); } - /** - * @note Address: 0x81406E18 (4.3U) - * @note Size: 0x08 - */ void SettingBg::calc() { mpLayout->calc(); } - /** - * @note Address: 0x81406E20 (4.3U) - * @note Size: 0x50 - */ void SettingBg::draw() { if (System::getSceneManager()->isDrawingScene() == TRUE) { utility::Graphics::setOrtho(); @@ -55,10 +35,6 @@ namespace ipl { } } - /** - * @note Address: 0x81406E70 (4.3U) - * @note Size: 0x58 - */ SettingBg::~SettingBg() {} } } diff --git a/src/system/RIPL_BoardRecord.c b/src/system/RIPL_BoardRecord.c index 254849fa..8cd82837 100644 --- a/src/system/RIPL_BoardRecord.c +++ b/src/system/RIPL_BoardRecord.c @@ -11,11 +11,6 @@ const char* RBRFileType_Odh = "odh"; const char* RBRFileType_Dat = "dat"; const char* RBRFileType_Log = "log"; -/** - * @note Address: 0x81332B48 (4.3U/4.3E) - * @note Address: 0x813321E8 (4.3J) - * @note Size: 0x98 - */ u8* RBRGetPicture(u32* rbrData, s32* dataSize) { u8* picData = NULL; @@ -40,11 +35,6 @@ u8* RBRGetPicture(u32* rbrData, s32* dataSize) { return picData; } -/** - * @note Address: 0x81332BE0 (4.3U/4.3E) - * @note Address: 0x81332280 (4.3J) - * @note Size: 0x44 - */ void RBRGetPosRect(f32* left, f32* right, f32* top, f32* bottom) { if (left != NULL) { *left = -230; diff --git a/src/system/iplBS2Manager.cpp b/src/system/iplBS2Manager.cpp index 2420c8ff..3064b5c6 100644 --- a/src/system/iplBS2Manager.cpp +++ b/src/system/iplBS2Manager.cpp @@ -11,10 +11,6 @@ namespace ipl { namespace bs2 { - /** - * @note Address: 0x813607A0 - * @note Size: 0x94 - */ Manager::Manager(EGG::Heap* pHeap) : unk_0x04(1), mState(BS2_STATE_52), @@ -35,18 +31,10 @@ namespace ipl { BS2SetBannerBuffer(mpBannerBuffer, BS2_DEFAULT_BANNER_SIZE); } - /** - * @note Address: 0x81360834 - * @note Size: 0x64 - */ Manager::~Manager() { delete[] mpBannerBuffer; } - /** - * @note Address: 0x81360898 - * @note Size: 0x10C - */ int Manager::update() { if ((unk_0x04 - 9) <= 1) { return unk_0x04; @@ -82,19 +70,11 @@ namespace ipl { return unk_0x04; } - /** - * @note Address: 0x813609E8 - * @note Size: 0x34 - */ u32 Manager::getDiskBannerBuffer(void** pBuffer) { *pBuffer = BS2GetBannerBufferAddr(); return BS2GetBannerBufferLength(); } - /** - * @note Address: 0x81360A1C - * @note Size: 0x9C - */ void Manager::startUpdate() { unk_0x0D = true; mbStartUpdate = true; @@ -119,47 +99,22 @@ namespace ipl { } } - /** - * @note Address: 0x81360AB8 - * @note Size: 0xC - */ void Manager::reserveRVLGame() { unk_0x0C = false; } - /** - * @note Address: 0x81360AC4 - * @note Size: 0xC - */ void Manager::reserveGCGame() { unk_0x0C = false; } - /** - * @note Address: 0x81360AD0 - * @note Size: 0x4 - */ - void Manager::startRVLGame() { bootNewSystem(); } + void Manager::startRVLGame() { bootNewSystem(); } + void Manager::startGCGame() { bootNewSystem(); } - /** - * @note Address: 0x81360AD4 - * @note Size: 0x4 - */ - void Manager::startGCGame() { bootNewSystem(); } - - /** - * @note Address: 0x81360AD8 - * @note Size: 0x14 - */ void Manager::abort() { unk_0x0E = true; unk_0x0F = false; } - /** - * @note Address: 0x81360AEC - * @note Size: 0x14 - */ void Manager::restart() { unk_0x0E = false; unk_0x0F = true; @@ -167,29 +122,18 @@ namespace ipl { System::checkNandOverFlowFlagAsync(); } - /** - * @note Address: 0x81360B00 - * @note Size: 0x28 - */ bool Manager::checkParentalControl() { return BS2CheckParentalControl(); } - /** - * @note Address: 0x81360B28 - * @note Size: 0x28 - */ void Manager::getDiskInfo(char** diskID, char** diskMaker) { + // Disc info is from BI read by BS2 OSBootInfo* bi = (OSBootInfo*)OSPhysicalToCached(BS2_BOOTINFO_ADDR); if (diskID) *diskID = (char*)bi->DVDDiskID.gameName; if (diskMaker) *diskMaker = (char*)bi->DVDDiskID.company; } - /** - * @note Address: 0x81360B50 - * @note Size: 0x74 - */ BOOL Manager::isTitleAvailable(ESTitleId titleId) const { u32 count = 0; @@ -202,28 +146,16 @@ namespace ipl { } } - /** - * @note Address: 0x81360BC4 - * @note Size: 0x10 - */ s32 Manager::getTicketFromNand(ESTitleId titleId, ESTicketView* pTicketView) const { return BS2GetTicketFromNand(titleId, pTicketView); } - /** - * @note Address: 0x81360BD4 - * @note Size: 0x48 - */ void Manager::loadLockedTitleAsync(ESTitleId titleId, ESTicketView& ticketView) { if (BS2StartLoadingTitle(titleId, &ticketView)) { unk_0x1C = BS2_STATE_70; } } - /** - * @note Address: 0x81360C1C - * @note Size: 0x124 - */ void Manager::splashTick(BS2State state) { switch(state) { case BS2_STATE_52: @@ -290,10 +222,6 @@ namespace ipl { } } - /** - * @note Address: 0x81360D40 - * @note Size: 0xC4 - */ void Manager::execTick(BS2State state) { if (unk_0x0D) { if (state == BS2_RUN_UPDATE) { @@ -324,10 +252,6 @@ namespace ipl { unk_0x0E = false; } - /** - * @note Address: 0x81360E04 - * @note Size: 0x14C - */ void Manager::updateTick() { if (mbStartUpdate && BS2UpdateState() == 2) { int i; @@ -372,29 +296,29 @@ namespace ipl { } } - /** - * @note Address: 0x81360F50 - * @note Size: 0xF8 - */ void Manager::bootNewSystem() { while (WPADGetStatus() != WPAD_ERR_OK) { VIWaitForRetrace(); } + // Mute all sound if (System::isRsrcLoaded()) { snd::getSystem()->stopAllSound(); snd::getSystem()->stopBannerSound(); snd::getSystem()->calc(); } + // Close all content System::getNandManager()->closeContentsAll(); + // Turn off video VISetBlack(TRUE); VIFlush(); VIWaitForRetrace(); while (!__OSSyncSram()) {} - + + // Run app! if (mState == BS2_RUN_APP) { BS2StartGame(); } diff --git a/src/system/iplChannelRsoThread.cpp b/src/system/iplChannelRsoThread.cpp index 46d7496b..daa1fbf2 100644 --- a/src/system/iplChannelRsoThread.cpp +++ b/src/system/iplChannelRsoThread.cpp @@ -6,28 +6,16 @@ namespace ipl { namespace channel { - /** - * @note Address: 0x813598BC (4.3U) - * @note Size: 0x6C - */ RsoThread::RsoThread(EGG::Heap* pHeap) : mbStarted(false), mpCalcFunc(NULL) { mpStack = new(pHeap, BUFFER_HEAP) u8[STACK_SIZE]; } - /** - * @note Address: 0x81359928 (4.3U) - * @note Size: 0x70 - */ RsoThread::~RsoThread() { delete[] mpStack; } - /** - * @note Address: 0x81359998 (4.3U) - * @note Size: 0x48 - */ void* RsoThread::Run() { if (mpCalcFunc != NULL) { mpCalcFunc(); @@ -38,10 +26,6 @@ namespace ipl { return this; } - /** - * @note Address: 0x813599E0 (4.3U) - * @note Size: 0x7C - */ void RsoThread::start() { if (!mbStarted) { mbStarted = true; @@ -50,11 +34,6 @@ namespace ipl { Create(mpStack, STACK_SIZE, 17); } } - - /** - * @note Address: 0x81359A5C (4.3U) - * @note Size: 0x14 - */ void RsoThread::setCalcFunc(CalcFunc func) { mpCalcFunc = func; OSInitMessageQueue(&mCalcQueue, &mCalcMsg, 1); diff --git a/src/system/iplChannelScriptManager.cpp b/src/system/iplChannelScriptManager.cpp index 22e707e6..61b74bee 100644 --- a/src/system/iplChannelScriptManager.cpp +++ b/src/system/iplChannelScriptManager.cpp @@ -42,7 +42,7 @@ namespace ipl { CHANSVmInit(&smCSVm, mpChansWork, CHANS_VM_WORK_SIZE); - bool result = CS_LIB_INITIALIZED(&smCSVm, system); + BOOL result = CS_LIB_INITIALIZED(&smCSVm, system); if (result == false) { OSHalt("CHANSVmSystemMenuInit error\n", 101); } @@ -150,7 +150,7 @@ namespace ipl { } void ChannelScriptManager::calc() { - if (smCSState == CHANS_VM_STATE_UNK2 && smpThread->IsThreadSuspended()) { + if (smCSState == CHANS_VM_STATE_UNK2 && smpThread->IsThreadSuspended() != FALSE) { OSReceiveMessage(smpThread->getCalcQueue(), &unk_0x30, 0); if (unk_0x30 == (OSMessage)1) { diff --git a/src/system/iplErrorHandler.cpp b/src/system/iplErrorHandler.cpp index 20e5e081..ab21bfac 100644 --- a/src/system/iplErrorHandler.cpp +++ b/src/system/iplErrorHandler.cpp @@ -26,10 +26,6 @@ extern u8 ipl_error_chn_bmg[]; extern u8 ipl_error_kor_bmg[]; namespace ipl { - /** - * @note Address: 0x81356458 (4.3U) - * @note Size: 0xBC - */ ErrorHandler::ErrorHandler(EGG::Heap* pHeap) : mbReady(FALSE), mType(NONE), @@ -45,10 +41,6 @@ namespace ipl { mpLayout = new(pHeap, 4) layout::Object(pHeap, mpArcData, "arc", "my_Fatal.brlyt"); } - /** - * @note Address: 0x81356514 (4.3U) - * @note Size: 0x98 - */ void ErrorHandler::set(Type type, u32 msgId, const char* arg1, int arg2, int arg3) { OSThread* curThread; @@ -56,7 +48,7 @@ namespace ipl { mType = type; mMessageID = msgId; - // Debug related? (never used when calling this function and seems to be incomplete) + // Debug related? (seems to be incomplete. unused.) unk_0x0C = arg2; unk_0x10 = arg3; if (arg1) { @@ -76,10 +68,6 @@ namespace ipl { } } - /** - * @note Address: 0x813565AC (4.3U) - * @note Size: 0x14C - */ void ErrorHandler::check() { if (mType != NONE) { message::Message ErrorMsg = message::Message(); @@ -136,18 +124,10 @@ namespace ipl { } } - /** - * @note Address: 0x813566F8 (4.3U) - * @note Size: 0x30 - */ void ErrorHandler::log(const char* type, int result, const char* file, int line) { NANDLoggingAddMessageAsync(NULL, "%s error. [%d] %s line: %d", type, result, file, line); } - /** - * @note Address: 0x81356728 (4.3U) - * @note Size: 0x90 - */ void ErrorHandler::calc() { if (mbReady == FALSE && System::getFader()->getStatus() == EGG::Fader::STATUS_PREPARE_IN) { System::getFader()->fadeIn(); @@ -159,10 +139,6 @@ namespace ipl { } } - /** - * @note Address: 0x813567B8 (4.3U) - * @note Size: 0x44 - */ void ErrorHandler::draw() { if (mbReady == TRUE) { utility::Graphics::setDefaultOrtho(); diff --git a/src/system/iplMessage.cpp b/src/system/iplMessage.cpp index 88a9d937..852969c4 100644 --- a/src/system/iplMessage.cpp +++ b/src/system/iplMessage.cpp @@ -6,23 +6,11 @@ namespace ipl { namespace message { - /** - * @note Address: 0x8133E6FC (4.3U) - * @note Size: 0x14 - */ Message::Message() : mpInfoHeader(NULL), mpInfoData(NULL), mspMessageData(NULL) {} - - /** - * @note Address: 0x8133E710 (4.3U) - * @note Size: 0x40 - */ + Message::~Message() {} - /** - * @note Address: 0x8133E750 (4.3U) - * @note Size: 0x6C - */ void Message::setResource(u8* msgData) { MESGHeader* header = (MESGHeader*)(msgData); @@ -50,10 +38,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133E7BC (4.3U) - * @note Size: 0x18 - */ wchar_t* Message::getMessage(u32 id) const { // Get data from offset u32 off = (&mpInfoData->offset)[(u16)id]; diff --git a/src/system/iplMessageManager.cpp b/src/system/iplMessageManager.cpp index e7dde70b..9fb7218b 100644 --- a/src/system/iplMessageManager.cpp +++ b/src/system/iplMessageManager.cpp @@ -6,19 +6,11 @@ namespace ipl { namespace message { - /** - * @note Address: 0x8133E7D4 (4.3U) - * @note Size: 0x50 - */ Manager::Manager(EGG::Heap* pHeap) { mpMessage = new(pHeap, CLASS_HEAP) Message(); initMessage(); } - /** - * @note Address: 0x8133E824 (4.3U) - * @note Size: 0x50 - */ void Manager::initMessage() { switch(System::getLanguage()) { case SC_LANG_ENGLISH: { diff --git a/src/system/iplNand.cpp b/src/system/iplNand.cpp index 6e75c6ed..52f85b89 100644 --- a/src/system/iplNand.cpp +++ b/src/system/iplNand.cpp @@ -23,30 +23,14 @@ #define EXT_SIZE 0x40 #define STANDARD_SIZE 0x20 -#define CHECK_MAGIC3(buffer, sig0, sig1, sig2) \ - buffer[0] == sig0 && buffer[1] == sig1 && buffer[2] == sig2 - -#define CHECK_MAGIC4(buffer, sig0, sig1, sig2, sig3) \ - buffer[0] == sig0 && buffer[1] == sig1 && buffer[2] == sig2 && buffer[3] == sig3 +#define CHECK_MAGIC3(buffer, sig0, sig1, sig2) buffer[0] == sig0 && buffer[1] == sig1 && buffer[2] == sig2 +#define CHECK_MAGIC4(buffer, sig0, sig1, sig2, sig3) buffer[0] == sig0 && buffer[1] == sig1 && buffer[2] == sig2 && buffer[3] == sig3 namespace ipl { namespace nand { - /** - * @note Address: 0x8133B2E4 (4.3U) - * @note Size: 0x10 - */ Base::Base() {} - - /** - * @note Address: 0x8133B2F4 (4.3U) - * @note Size: 0x40 - */ Base::~Base() {} - /** - * @note Address: 0x8133B334 (4.3U) - * @note Size: 0xC0 - */ // https://decomp.me/scratch/fOAdi File::File(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, const char* unk2, int offset, u32 length, bool isNandFile) : Base() { mDoneTask = FALSE; @@ -71,10 +55,6 @@ namespace ipl { memset(&mNandFile, 0, sizeof(NANDFileInfo)); } - /** - * @note Address: 0x8133B3F4 (4.3U) - * @note Size: 0xC0 - */ // https://decomp.me/scratch/FjG9e File::File(EGG::Heap* pHeap, const char* fileName, u8* buffer, u32 length, u8 perms) : Base() { mDoneTask = FALSE; @@ -100,26 +80,18 @@ namespace ipl { memset(&mNandFile, 0, sizeof(NANDFileInfo)); } - /** - * @note Address: 0x8133B4B4 (4.3U) - * @note Size: 0x78 - */ File::~File() { if (mbInit == true && mpBuffer) { delete[] mpBuffer; } } - /** - * @note Address: 0x8133B52C (4.3U) - * @note Size: 0xF0 - */ BOOL File::open_(u8 attr) { ARCHandle* handle; if (mpArc) { + // This part seems to be never used. if (mbIsNandFile) { - // This part seems to be never used. s32 result = wrapper::PrivateOpen(msUnkFileName, &mNandFile, attr); if (nand_error_handling(result) == FALSE) { return FALSE; @@ -128,11 +100,12 @@ namespace ipl { return ARCOpen(mpArc, msFileName, &mArcFile) == TRUE; } else { + // NAND File? if (mbIsNandFile) { s32 result = wrapper::PrivateOpen(msFileName, &mNandFile, attr); return nand_error_handling(result); } - else { + else { // System Menu file? if (System::getNandManager()->getDescriptor() < 0) { handle = NULL; } @@ -145,10 +118,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133B61C (4.3U) - * @note Size: 0x1B4 - */ void File::readBlock_(void* buffer, int length, int offset) { int arcOffset; s32 result; @@ -190,18 +159,14 @@ namespace ipl { } } - /** - * @note Address: 0x8133B7D0 (4.3U) - * @note Size: 0xBC - */ u32 File::getDecodeSize_(const u8* buffer) { - if (stricmp(&msFileName[strlen(msFileName) - 4], ".lz7") == 0) { + if (stricmp(&msFileName[strlen(msFileName) - 4], ".lz7") == 0) { // Check file extension return CXGetUncompressedSize(buffer); } - else if (buffer[0] == 'Y') { + else if (buffer[0] == 'Y') { // See if it is Yaz0 by checking if the first letter is 'Y' (...why) return Rvl_decode_szs_size(buffer); } - else if (buffer[0] == 'L') { + else if (buffer[0] == 'L') { // See if it is LZ77 by checking if the first letter is 'L' (again...why) return CXGetUncompressedSize(&buffer[4]); } else { @@ -209,10 +174,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133B88C (4.3U) - * @note Size: 0x84 - */ u32 File::getRawSize_() { u32 length = 0; @@ -232,10 +193,6 @@ namespace ipl { return length; } - /** - * @note Address: 0x8133B910 (4.3U) - * @note Size: 0x30 - */ BOOL File::isSliCompressed(const u8* buffer) { return CHECK_MAGIC3(buffer, 'Y', 'a', 'z'); } @@ -246,26 +203,14 @@ namespace ipl { Which also checks the magic without the little mistake. */ - /** - * @note Address: 0x8133B940 (4.3U) - * @note Size: 0x30 - */ BOOL File::isAsrCompressed(const u8* buffer) { return CHECK_MAGIC3(buffer, 'A','S','H'); } - /** - * @note Address: 0x8133B970 (4.3U) - * @note Size: 0x30 - */ BOOL File::isAshCompressed(const u8* buffer) { return CHECK_MAGIC3(buffer, 'A','S','R'); } - /** - * @note Address: 0x8133B9A0 (4.3U) - * @note Size: 0x94 - */ BOOL File::isLz7Compressed(const u8* buffer) { // Check the file extension if (stricmp(&msFileName[strlen(msFileName) - 4], ".lz7") == 0) { @@ -281,10 +226,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133BA34 (4.3U) - * @note Size: 0xB8 - */ BOOL File::isCompressed(const u8* buffer) { if (isSliCompressed(buffer) || isAsrCompressed(buffer) || isAshCompressed(buffer) || isLz7Compressed(buffer)) { return TRUE; @@ -294,10 +235,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133BAEC (4.3U) - * @note Size: 0x74 - */ void File::uncompressLz7(const u8* src, u8* dest) { if (stricmp(&msFileName[strlen(msFileName) - 4], ".lz7") == 0) { CXUncompressLZ(src, dest); @@ -307,10 +244,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133BB60 (4.3U) - * @note Size: 0x300 - */ // https://decomp.me/scratch/IsA3X void File::read() { if (open_(NAND_ACCESS_READ)) { @@ -341,11 +274,11 @@ namespace ipl { u32 fileOff = 0; // Check if the header is an MD5 file. if (CHECK_MAGIC4(headerData, 'I','M','D','5')) { - fileLen = *(u32*)(&headerData[4]); // get file length + fileLen = *(u32*)(&headerData[4]); // Get file length bHasMd5 = TRUE; - memcpy(sum, &headerData[0x10], NET_MD5_DIGEST_SIZE); // copy MD5 sum + memcpy(sum, &headerData[0x10], NET_MD5_DIGEST_SIZE); // Copy MD5 sum fileOff = 0x20; buffer += 0x20; @@ -353,33 +286,33 @@ namespace ipl { // Check if the file is compressed. if (isCompressed(buffer)) { - // read compressed data + // Read compressed data readBlock_(mpCmpBuffer, mpLength); - // prepare for decompression + // Prepare for decompression mpLength = getDecodeSize_(&mpCmpBuffer[fileOff]); mpBuffer = getBuffer_(mpLength); - // LZ7 compressed + // LZ77 compression if (isLz7Compressed(buffer)) { uncompressLz7(&mpCmpBuffer[fileOff], mpBuffer); - u32 rawSize = getRawSize_(); // unused + u32 rawSize = getRawSize_(); // Unused } - else { // any other compression + else { // Any other compression Rvl_decode(mpBuffer, &mpCmpBuffer[fileOff]); } - // calculate MD5. (result 1 = success, result 2 = failed) + // Calculate MD5. if (bHasMd5 == TRUE) { mResult = calcMD5_(sum, &mpCmpBuffer[fileOff], fileLen); } } else { - // just read the data. + // Just read the data mpBuffer = getBuffer_(mpLength - fileOff); readBlock_(mpBuffer, mpLength - fileOff, fileOff); - // calculate MD5. (result 1 = success, result 2 = failed) + // calculate MD5. if (bHasMd5 == TRUE) { mResult = calcMD5_(sum, mpBuffer, fileLen); } @@ -397,16 +330,9 @@ namespace ipl { callback_(); } - /** - * @note Address: 0x8133BE60 (4.3U) - * @note Size: 0x4 - */ + // For derived classes. void File::callback_() {} - /** - * @note Address: 0x8133BE64 (4.3U) - * @note Size: 0x90 - */ NandErrResult File::calcMD5_(const u8* sum, const u8* buffer, u32 length) const { u8 calcSum[NET_MD5_DIGEST_SIZE]; @@ -421,10 +347,6 @@ namespace ipl { return IPL_NAND_RESULT_SUCCESS; } - /** - * @note Address: 0x8133BEF4 (4.3U) - * @note Size: 0xA8 - */ BOOL File::close_() { s32 result; @@ -448,72 +370,51 @@ namespace ipl { } } - /** - * @note Address: 0x8133BF9C (4.3U) - * @note Size: 0x14 - */ u8* File::getBuffer_(u32 length) { return new(mpHeap, BUFFER_HEAP) u8[length]; } - /** - * @note Address: 0x8133BFB0 (4.3U) - * @note Size: 0x194 - */ LangFile::LangFile(EGG::Heap* pHeap, const char* dirName, const char* fileName, ARCHandle* arc, bool isNandFile) { char fullName[NAND_MAX_PATH + 1]; - cmnFile = NULL; - langFile = NULL; + mpCommonFile = NULL; + mpLangFile = NULL; + // Open the "common" file. strncpy(fullName, dirName, NAND_MAX_PATH + 1); strncat(fullName, "/common/", (NAND_MAX_PATH + 1) - strlen(fullName)); strncat(fullName, fileName, (NAND_MAX_PATH + 1) - strlen(fullName)); - cmnFile = new(pHeap, CLASS_HEAP) File(pHeap, fullName, arc, NULL, 0, 0, isNandFile); + mpCommonFile = new(pHeap, CLASS_HEAP) File(pHeap, fullName, arc, NULL, 0, 0, isNandFile); char* langPath = utility::Language::getPath(); + // Open the language exclusive file strncpy(fullName, dirName, NAND_MAX_PATH + 1); strncat(fullName, "/", (NAND_MAX_PATH + 1) - strlen(fullName)); strncat(fullName, langPath, (NAND_MAX_PATH + 1) - strlen(fullName)); strncat(fullName, "/", (NAND_MAX_PATH + 1) - strlen(fullName)); strncat(fullName, fileName, (NAND_MAX_PATH + 1) - strlen(fullName)); - langFile = new(pHeap, CLASS_HEAP) File(pHeap, fullName, arc, NULL, 0, 0, isNandFile); + mpLangFile = new(pHeap, CLASS_HEAP) File(pHeap, fullName, arc, NULL, 0, 0, isNandFile); } - /** - * @note Address: 0x8133C144 (4.3U) - * @note Size: 0xA8 - */ LangFile::~LangFile() { - if (cmnFile) delete cmnFile; - if (langFile) delete langFile; + if (mpCommonFile) delete mpCommonFile; + if (mpLangFile) delete mpLangFile; } - /** - * @note Address: 0x8133C1EC (4.3U) - * @note Size: 0x64 - */ void LangFile::read() { - if (cmnFile) cmnFile->read(); - if (langFile) langFile->read(); + if (mpCommonFile) mpCommonFile->read(); + if (mpLangFile) mpLangFile->read(); } - /** - * @note Address: 0x8133C250 (4.3U) - * @note Size: 0x3C - */ + // `LayoutFile` is literally `LangFile` lol. LayoutFile::LayoutFile(EGG::Heap* pHeap, const char* dirName, const char* fileName, ARCHandle* arc, bool isNandFile) : LangFile(pHeap, dirName, fileName, arc, isNandFile) {} - /** - * @note Address: 0x8133C28C (4.3U) - * @note Size: 0x128 - */ void File::write() { - u8 unused; + u8 dummy; EGG::Heap* usedHeap = System::getUnk0CHeap(); if (System::getUnk0CHeap() == NULL) { @@ -526,9 +427,10 @@ namespace ipl { ES_SetUid(SYSMENU_TITLE_ID); - result = wrapper::PrivateGetType(msFileName, &unused); + result = wrapper::PrivateGetType(msFileName, &dummy); nand_error_handling(result); + // Create file if it does not exist. if (mLastError == NAND_RESULT_NOEXISTS) { result = wrapper::PrivateCreate(msFileName, mFilePerms, NAND_ACCESS_NONE); success = nand_error_handling(result); @@ -538,9 +440,11 @@ namespace ipl { } } + // Open created file. result = wrapper::PrivateSafeOpen(msFileName, &mNandFile, NAND_ACCESS_WRITE, buffer, BUFFER_SIZE); success = nand_error_handling(result); + // If successfully open, start writing the file. if (success) { result = wrapper::Write(&mNandFile, mpCmpBuffer, mpLength); nand_error_handling(result); @@ -551,17 +455,13 @@ namespace ipl { done: delete[] buffer; - delete[] mpCmpBuffer; + mpCmpBuffer = NULL; mDoneTask = TRUE; } - /** - * @note Address: 0x8133C3B4 (4.3U) - * @note Size: 0x110 - */ BOOL File::nand_error_handling(int errcode) { BOOL result = FALSE; @@ -572,29 +472,35 @@ done: } else { switch (errcode) { + // If the file exists, move on. case NAND_RESULT_EXISTS: { result = TRUE; break; } + // If it did not exist, open error occured. case NAND_RESULT_NOEXISTS: { mResult = IPL_NAND_RESULT_OPEN_ERROR; break; } + // Too big to do anymore NAND stuff. case NAND_RESULT_MAXFILES: case NAND_RESULT_MAXBLOCKS: { mbIsFullForTask = true; break; } + // Authentication error case NAND_RESULT_AUTHENTICATION: case NAND_RESULT_ECC_CRIT: { mResult = IPL_NAND_RESULT_VERIFY_ERROR; break; } + // Display the system memory is damaged screen. case NAND_RESULT_CORRUPT: { mbFatalError = true; System::err_display(MESG_ERR_NAND); break; } + // Otherwise assume the system files are corrupted. default: { mbFatalError = true; System::err_log(NAND, errcode, 808); @@ -605,27 +511,19 @@ done: } } - /** - * @note Address: 0x8133C4C4 (4.3U) - * @note Size: 0x4 - */ void Base::write() {} - /** - * @note Address: 0x8133C4C8 (4.3U) - * @note Size: 0xA8 - */ bool LangFile::isFatalError() { bool result = true; bool fatalError = false; - if (cmnFile && cmnFile->isFatalError()) { + if (mpCommonFile && mpCommonFile->isFatalError()) { fatalError = true; } if (!fatalError) { bool fatalError = false; - if (langFile && langFile->isFatalError()) { + if (mpLangFile && mpLangFile->isFatalError()) { fatalError = true; } if (!fatalError) { @@ -636,39 +534,25 @@ done: return result; } - /** - * @note Address: 0x8133C570 (4.3U) - * @note Size: 0x8 - */ - bool File::isFatalError() { - return mbFatalError; - } + bool File::isFatalError() { return mbFatalError; } // weak? - /** - * @note Address: 0x8133C578 (4.3U) - * @note Size: 0x44 - */ bool LangFile::checkData() { - if (langFile) return langFile->checkData(); - if (cmnFile) return cmnFile->checkData(); + if (mpLangFile) return mpLangFile->checkData(); + if (mpCommonFile) return mpCommonFile->checkData(); return false; } - /** - * @note Address: 0x8133C5BC (4.3U) - * @note Size: 0xA8 - */ bool LangFile::isFinished() { bool result = false; bool finished = true; - if (cmnFile && !cmnFile->isFinished()) { + if (mpCommonFile && !mpCommonFile->isFinished()) { finished = false; } if (finished) { bool finished = true; - if (langFile && !langFile->isFinished()) { + if (mpLangFile && !mpLangFile->isFinished()) { finished = false; } if (finished) { @@ -679,10 +563,6 @@ done: return result; } - /** - * @note Address: 0x8133C680 (4.3U) - * @note Size: 0x58 - */ LayoutFile::~LayoutFile() {} } } diff --git a/src/system/iplNandMeta.cpp b/src/system/iplNandMeta.cpp index bd295d57..acdce490 100644 --- a/src/system/iplNandMeta.cpp +++ b/src/system/iplNandMeta.cpp @@ -9,11 +9,7 @@ namespace ipl { namespace nand { - /** - * @note Address: 0x8133CC34 (4.3U) - * @note Size: 0x90 - */ - MetaFile::MetaFile(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, ESTitleId titleId, int offset, u32 length, UnkCallback callBack, void* callBackWork, int ticketIdx) : + MetaFile::MetaFile(EGG::Heap* pHeap, const char* fileName, ARCHandle* arc, ESTitleId titleId, int offset, u32 length, MetaCallback callBack, void* callBackWork, int ticketIdx) : File(pHeap, fileName, arc, NULL, offset, length, false), mDescriptor(-1), mTitleId(titleId), @@ -23,20 +19,12 @@ namespace ipl { mCallback(callBack), mCallbackWork(callBackWork) {} - /** - * @note Address: 0x8133CCC4 (4.3U) - * @note Size: 0x58 - */ MetaFile::~MetaFile() {} - /** - * @note Address: 0x8133CD1C (4.3U) - * @note Size: 0xC4 - */ BOOL MetaFile::openNandFile_() { char fileName[48]; - // Create title path + // Get title path sprintf(fileName, "/meta/%08x/%08x/title.met", NANDTitleIdHi(mTitleId), NANDTitleIdLo(mTitleId)); if (mpArc) { @@ -55,10 +43,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133CDE0 (4.3U) - * @note Size: 0x8133CDE0 - */ void MetaFile::readNandBlock_(void* bufferOut, int length, int offset) { s32 result; @@ -75,10 +59,6 @@ namespace ipl { nand_error_handling(result); } - /** - * @note Address: 0x8133CE94 (4.3U) - * @note Size: 0x64 - */ BOOL MetaFile::closeNandFile_() { if (mTicket) { System::getUnk0CHeap()->free(mTicket); @@ -88,10 +68,6 @@ namespace ipl { return nand_error_handling(result); } - /** - * @note Address: 0x8133CEF8 (4.3U) - * @note Size: 0x158 - */ BOOL MetaFile::openTicketFile_() { s32 line; @@ -142,10 +118,6 @@ failed: return FALSE; } - /** - * @note Address: 0x8133D050 (4.3U) - * @note Size: 0xE8 - */ void MetaFile::readTicketBlock_(void* bufferOut, int length, int offset) { s32 result; @@ -169,10 +141,6 @@ failed: } } - /** - * @note Address: 0x8133D138 (4.3U) - * @note Size: 0xAC - */ BOOL MetaFile::closeTicketFile_() { s32 result = ES_CloseContentFile(mDescriptor); if (result >= ES_ERR_OK) { @@ -188,18 +156,10 @@ failed: } } - /** - * @note Address: 0x8133D1E4 (4.3U) - * @note Size: 0x4 - */ BOOL MetaFile::open_(u8 attr) { return openTicketFile_(); } - /** - * @note Address: 0x8133D1E8 (4.3U) - * @note Size: 0x14 - */ BOOL MetaFile::close_() { if (mbMetaInNand) { return closeNandFile_(); @@ -209,18 +169,10 @@ failed: } } - /** - * @note Address: 0x8133D1FC (4.3U) - * @note Size: 0x8 - */ u32 MetaFile::getRawSize_() { return ARCGetLength(&mArcFile); } - /** - * @note Address: 0x8133D204 (4.3U) - * @note Size: 0x14 - */ void MetaFile::readBlock_(void* buffer, int length, int offset) { if (mbMetaInNand) { readNandBlock_(buffer, length, offset); @@ -230,10 +182,6 @@ failed: } } - /** - * @note Address: 0x8133D218 (4.3U) - * @note Size: 0x1C - */ void MetaFile::callback_() { if (mCallback) { mCallback(mCallbackWork); diff --git a/src/system/iplNandSDWorker.cpp b/src/system/iplNandSDWorker.cpp index 1a07bde8..22bc39e9 100644 --- a/src/system/iplNandSDWorker.cpp +++ b/src/system/iplNandSDWorker.cpp @@ -10,30 +10,27 @@ typedef struct { u8 sig[4]; // 0x00 u32 hash; // 0x04 u32 version; // 0x08 (always 3) -} METABlockHeader; +} MetaBlockHeader; + +#define CHECK_MAGIC4(buffer, sig0, sig1, sig2, sig3) buffer[0] == sig0 && buffer[1] == sig1 && buffer[2] == sig2 && buffer[3] == sig3 +#define CHECK_MAGIC4_OR(buffer, sig0, sig1, sig2, sig3) buffer[0] == sig0 || buffer[1] == sig1 || buffer[2] == sig2 || buffer[3] == sig3 namespace ipl { - /** - * @note Address 0x81350EB4 - * @note Size 0xAC - */ BOOL NandSDWorker::check_header_base(const u8 *bnrData, u32 *hashOut) { - METABlockHeader* header = (METABlockHeader*)(bnrData); + MetaBlockHeader* header = (MetaBlockHeader*)(bnrData); u32 hash = header->hash; if (hashOut != NULL) { *hashOut = hash; } - if (header->sig[0] != 'I' || - header->sig[1] != 'M' || - header->sig[2] != 'E' || - header->sig[3] != 'T' || - hash < IMET_MAX_HEADER_SIZE) { + // Check signature + if (CHECK_MAGIC4_OR(header->sig, 'I','M','E','T') || hash < IMET_MAX_HEADER_SIZE) { OSReport("BANNER WARNING: invalid signature or header size %d\n", hash); return FALSE; } + // Check version if (header->version != IMET_CURRENT_VERSION) { OSReport("BANNER WARNING: different version v.%d ( now v.%d)\n", header->version, IMET_CURRENT_VERSION); return FALSE; diff --git a/src/system/iplNandWall.cpp b/src/system/iplNandWall.cpp index 37e1cb3e..cb5c9fe3 100644 --- a/src/system/iplNandWall.cpp +++ b/src/system/iplNandWall.cpp @@ -17,10 +17,6 @@ namespace ipl { u32 global_free_fsblock; u32 global_free_inode; - /** - * @note Address: 0x8133DC0C (4.3U) - * @note Size: 0xDC - */ void throwNandCheckCommand(void* unusedBuffer) { NANDFileSystemStatus status; @@ -31,6 +27,7 @@ namespace ipl { calcGlobalUsage_(&global_free_fsblock, &global_free_inode, &status); + // Display usage OSReport("**********************************************\n"); OSReport(" NAND USAGE : [fsblock: free / user_used] \n"); OSReport(" NAND USAGE : [fsblock: %6d / %6d ] \n", global_free_fsblock, user_used_fsblocks); @@ -45,10 +42,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133DCE8 (4.3U) - * @note Size: 0x40 - */ BOOL isNandCapacity() { if (user_used_fsblocks <= 17408 && user_used_inodes <= 4000 && global_free_fsblock >= 3592 && global_free_inode >= 128) { return TRUE; @@ -58,10 +51,6 @@ namespace ipl { } } - /** - * @note Address: 0x8133DD28 (4.3U) - * @note Size: 0x38 - */ void calcGlobalUsage_(u32* freeBlocks, u32* freeINodes, NANDFileSystemStatus* pStatus) { u32 bad = pStatus->badBlocks; u32 reserved = pStatus->reservedBlocks; @@ -72,10 +61,6 @@ namespace ipl { *freeBlocks = (BLOCKS_MAX - size) - pStatus->usedBlocks; } - /** - * @note Address: 0x8133DD60 (4.3U) - * @note Size: 0xA8 - */ BOOL checkNandCapacityAppBootable() { u32 usedDirBlocks = 0; u32 usedDirINodes = 0; diff --git a/src/system/iplNandWrapper.cpp b/src/system/iplNandWrapper.cpp index bbe5d750..1c000e3a 100644 --- a/src/system/iplNandWrapper.cpp +++ b/src/system/iplNandWrapper.cpp @@ -49,10 +49,6 @@ namespace ipl { } s32 SecretGetFileSystemStatus(NANDFileSystemStatus *pStatus) { WrapperFunction(NANDSecretGetFileSystemStatus(pStatus)); } - /** - * @note Address: 0x813606E4 (4.3U) - * @note Size: 0x80 - */ BOOL _condition(int result, int tries) { BOOL TryAgain = FALSE; diff --git a/src/system/iplNigaoe.cpp b/src/system/iplNigaoe.cpp index 438bdecd..d5536239 100644 --- a/src/system/iplNigaoe.cpp +++ b/src/system/iplNigaoe.cpp @@ -10,10 +10,6 @@ namespace ipl { namespace nigaoe { - /** - * @note Address: 0x8133EE00 (4.3U) - * @note Size: 0x48 - */ Object::Object(EGG::Heap* pHeap, int width, int height, int faceId, MakeIconCallback callback, void* callBackWork) : mFaceId(faceId), mpCharData(NULL), @@ -22,11 +18,7 @@ namespace ipl { mbCreated(false) { init(pHeap, width, height); } - - /** - * @note Address: 0x8133EE48 (4.3U) - * @note Size: 0x4C - */ + Object::Object(EGG::Heap* pHeap, int width, int height, RFLiCharData* charData, MakeIconCallback callback, void* callBackWork) : mFaceId(-1), mpCharData(charData), @@ -35,12 +27,9 @@ namespace ipl { mbCreated(false) { init(pHeap, width, height); } - - /** - * @note Address: 0x8133EE94 (4.3U) - * @note Size: 0x7C - */ + void Object::init(EGG::Heap* pHeap, int width, int height) { + // Prepare icon settings mIconSettings.width = width; mIconSettings.height = height; @@ -49,24 +38,17 @@ namespace ipl { mIconSettings.drawXluOnly = FALSE; + // Prepare icon buffer. u32 iconSize = width * height * GX_RGB5A3_SIZE; mIconSize = iconSize; mpIconTex = new(pHeap, BUFFER_HEAP) u8[iconSize]; } - - /** - * @note Address: 0x8133EF10 (4.3U) - * @note Size: 0x58 - */ + Object::~Object() { delete[] mpIconTex; } - - /** - * @note Address: 0x8133EF68 (4.3U) - * @note Size: 0x100 - */ + void Object::make_icon() { GXRenderModeObj *rMode; RFLErrcode err = RFLErrcode_Success; diff --git a/src/system/iplNigaoeManager.cpp b/src/system/iplNigaoeManager.cpp index 66ea7159..cd98ad6a 100644 --- a/src/system/iplNigaoeManager.cpp +++ b/src/system/iplNigaoeManager.cpp @@ -14,10 +14,6 @@ namespace ipl { namespace nigaoe { #define IPL_NIGAOE_ICON_MAX 10 - /** - * @note Address: 0x8133E984 (4.3U) - * @note Size: 0x110 - */ Manager::Manager(EGG::Heap* pHeap) { mResFile = System::getRFLArc(); @@ -48,34 +44,22 @@ namespace ipl { } } - /** - * @note Address: 0x8133EA94 (4.3U) - * @note Size: 0x90 - */ Object* Manager::create(EGG::Heap* pHeap, int width, int height, int faceId, Object::MakeIconCallback callback, void* callbackWork) { - // append mii to list + // Create mii and append to list Object* obj = new(pHeap, CLASS_HEAP) Object(pHeap, width, height, faceId, callback, callbackWork); nw4r::ut::List_Append(&mObjects, obj); return obj; } - /** - * @note Address: 0x8133EB24 (4.3U) - * @note Size: 0x90 - */ Object* Manager::create(EGG::Heap* pHeap, int width, int height, RFLiCharData* faceData, Object::MakeIconCallback callback, void* callbackWork) { - // append mii to list + // Create mii and append to list Object* obj = new(pHeap, CLASS_HEAP) Object(pHeap, width, height, faceData, callback, callbackWork); nw4r::ut::List_Append(&mObjects, obj); return obj; } - /** - * @note Address: 0x8133EBB4 (4.3U) - * @note Size: 0x7C - */ void Manager::makeIcon() { int i = 0; @@ -90,24 +74,15 @@ namespace ipl { } } - /** - * @note Address: 0x8133EC30 (4.3U) - * @note Size: 0x74 - */ void Manager::detach(Object* obj) { for (u16 i = 0; i < mObjects.numObjects; i++) { if (obj == (Object*)nw4r::ut::List_GetNth(&mObjects, i)) { nw4r::ut::List_Remove(&mObjects, obj); - return; } } } - /** - * @note Address: 0x8133ECA4 (4.3U) - * @note Size: 0x1C - */ BOOL Manager::isAvalable(u16 faceId) { BOOL result = FALSE; @@ -118,10 +93,6 @@ namespace ipl { return result; } - /** - * @note Address: 0x8133ECC0 (4.3U) - * @note Size: 0x60 - */ BOOL Manager::isValid(const RFLiCharData* faceData) const { RFLiCharInfo info; BOOL result = TRUE; @@ -138,19 +109,11 @@ namespace ipl { return result; } - /** - * @note Address: 0x8133ED20 (4.3U) - * @note Size: 0x48 - */ RFLErrcode Manager::addHiddenDB(const NWC24MsgObj* faceDB) { OSReport("wait async err %d\n", RFLWaitAsync()); return RFLiNWC24Msg2HiddenAsync(faceDB); } - /** - * @note Address: 0x8133ED68 (4.3U) - * @note Size: 0x98 - */ void Manager::commitHiddenDB() { nwc24::Manager* nwc24Mgr = System::isSafeMode() ? NULL : System::getNwc24Manager(); diff --git a/src/system/iplPointer.cpp b/src/system/iplPointer.cpp index 6fd368c6..4d182580 100644 --- a/src/system/iplPointer.cpp +++ b/src/system/iplPointer.cpp @@ -15,10 +15,6 @@ namespace ipl { #define MIN_LENGTH 32.f #define MAX_LENGTH 128.f - /** - * @note Address: 0x816354D4 (4.3U) - * @note Size: 0x24 - */ static const char* scLayoutName[MAX_LAYOUT_FILES] = { #define LYT_INVALID_ID -1 @@ -41,10 +37,6 @@ namespace ipl { "my_BScroll_a.brlyt" }; - /** - * @note Address: 0x81344188 (4.3U) - * @note Size: 0xE8 - */ Pointer::Pointer(EGG::Heap* pHeap) : unk_0x28(-1), mOriginPos(0.f, 0.f), @@ -61,10 +53,6 @@ namespace ipl { } } - /** - * @note Address: 0x81344270 (4.3U) - * @note Size: 0x174 - */ void Pointer::calc() { // Update the pointer cursor mCore.calc(this); @@ -106,10 +94,6 @@ namespace ipl { } } - /** - * @note Address: 0x81344428 (4.3U) - * @note Size: 0x50 - */ void Pointer::draw() { if (mbVisible) { mCore.draw(); @@ -119,27 +103,15 @@ namespace ipl { } } } - - /** - * @note Address: 0x81344478 (4.3U) - * @note Size: 0x8 - */ + void Pointer::setState(int chan, int state) { mCore.setState(chan, state); } - /** - * @note Address: 0x81344480 (4.3U) - * @note Size: 0x8 - */ void Pointer::changeType(int chan, int type) { mCore.changeType(chan, type); } - /** - * @note Address: 0x81344488 (4.3U) - * @note Size: 0x3C - */ layout::Object* Pointer::get_layout(int chan, int type) { int grabId = LYT_INVALID_ID; diff --git a/src/system/iplPointerCore.cpp b/src/system/iplPointerCore.cpp index 6cf78435..ee94cd16 100644 --- a/src/system/iplPointerCore.cpp +++ b/src/system/iplPointerCore.cpp @@ -13,10 +13,6 @@ #include "iplMath.h" namespace ipl { - /** - * @note Address: 0x813444C4 (4.3U) - * @note Size: 0x24 - */ PointerCoreObject::PointerCoreObject() : mpLayout(NULL), mState(0), @@ -24,10 +20,7 @@ namespace ipl { mChan(0), unk_0x10(0) {} - /** - * @note Address: 0x813444E8 (4.3U) - * @note Size: 0x19C - */ + void PointerCoreObject::calc(Pointer* pPointer, const controller::Interface* pController) { mpLayout = NULL; if (pController && pController->isValidDpd()) { @@ -51,22 +44,14 @@ namespace ipl { mpLayout->calc(); } } - - /** - * @note Address: 0x813446A0 (4.3U) - * @note Size: 0x24 - */ + void PointerCoreObject::draw() { if (!mpLayout) return; if (mState != 0) return; mpLayout->draw(); } - - /** - * @note Address: 0x813446C4 (4.3U) - * @note Size: 0x7C - */ + PointerCore::PointerCore() : mCursors() { int chan = 0; for (int i = WPAD_MAX_CONTROLLERS - 1; i >= 0; i--) { @@ -76,28 +61,16 @@ namespace ipl { } } - /** - * @note Address: 0x81344740 (4.3U) - * @note Size: 0x10 - */ void PointerCore::setState(int chan, int state) { mCursors[chan].setState(state); } - /** - * @note Address: 0x81344750 (4.3U) - * @note Size: 0x64 - */ void PointerCore::calc(Pointer* pPointer) { for (int i = 0; i < WPAD_MAX_CONTROLLERS; i++) { mCursors[i].calc(pPointer, System::getController(i)); } } - /** - * @note Address: 0x813447B4 (4.3U) - * @note Size: 0x54 - */ void PointerCore::draw() { utility::Graphics::setDefaultOrtho(); @@ -106,10 +79,6 @@ namespace ipl { } } - /** - * @note Address: 0x81344808 (4.3U) - * @note Size: 0x10 - */ void PointerCore::changeType(int chan, int type) { mCursors[chan].changeType(type); } diff --git a/src/system/iplResetHandler.cpp b/src/system/iplResetHandler.cpp index 3b93fcec..b64522a9 100644 --- a/src/system/iplResetHandler.cpp +++ b/src/system/iplResetHandler.cpp @@ -10,10 +10,6 @@ #include "system/iplTVRCManager.h" namespace ipl { - /** - * @note Address: 0x813567FC (4.3U) - * @note Size: 0x94 - */ ResetHandler::ResetHandler(EGG::Heap* pHeap) : mType(0), // ? mState(0), @@ -30,92 +26,56 @@ namespace ipl { OSSetResetCallback((OSResetCallback)cbReset); OSSetPowerCallback((OSPowerCallback)cbPowerOff); } - - /** - * @note Address: 0x81356890 (4.3U) - * @note Size: 0x24 - */ void ResetHandler::cbReset() { if (System::getResetHandler()->getType() == 0) { System::getResetHandler()->changeType(1); } } - /** - * @note Address: 0x813568B4 (4.3U) - * @note Size: 0x24 - */ void ResetHandler::cbPowerOff() { if (System::getResetHandler()->getType() == 0) { System::getResetHandler()->changeType(2); } } - /** - * @note Address: 0x813568D8 (4.3U) - * @note Size: 0x18 - */ void ResetHandler::reset() { if (mType == 0) { mType = 1; } } - /** - * @note Address: 0x813568F0 (4.3U) - * @note Size: 0x14 - */ void ResetHandler::check() { if (mType != 0) { System::reset_run(); } } - /** - * @note Address: 0x81356904 (4.3U) - * @note Size: 0x2FC - */ void ResetHandler::update() { if (mType != 0) { switch(mState) { case 0: { + // TODO!!... break; } } } } - /** - * @note Address: 0x81356C00 (4.3U) - * @note Size: 0x4 - */ void ResetHandler::cbFatalReset() { // stub } - /** - * @note Address: 0x81356C04 (4.3U) - * @note Size: 0x24 - */ void ResetHandler::cbFatalPowerOff() { if (System::getResetHandler()->getFatalState() == FATAL_STATE_NONE) { System::getResetHandler()->changeFatalState(FATAL_STATE_INIT); } } - /** - * @note Address: 0x81356C28 (4.3U) - * @note Size: 0x34 - */ void ResetHandler::setFatalResetCallback() { OSSetResetCallback(cbFatalReset); OSSetPowerCallback(cbFatalPowerOff); } - /** - * @note Address: 0x81356C5C (4.3U) - * @note Size: 0xF0 - */ void ResetHandler::fatalUpdate() { switch(mFatalState) { // Fade out diff --git a/src/system/iplSystem.cpp b/src/system/iplSystem.cpp index 415125e8..868418e9 100644 --- a/src/system/iplSystem.cpp +++ b/src/system/iplSystem.cpp @@ -7,12 +7,8 @@ #include namespace ipl { - System::Arg System::smArg; /** @note Address 0x81089008 (4.3J/U/E) Size 0x2D8 */ - - /** - * @note Address 0x81332C24 - * @note Size 0x48 - */ + System::Arg System::smArg; + System::Arg::Arg() { memset(&smArg, 0, sizeof(Arg)); OSCreateAlarm(&mUnkAlarm); diff --git a/src/system/iplWarningHandler.cpp b/src/system/iplWarningHandler.cpp index cbbc7acf..143e2fbf 100644 --- a/src/system/iplWarningHandler.cpp +++ b/src/system/iplWarningHandler.cpp @@ -5,10 +5,6 @@ #include "system/iplMessage.h" namespace ipl { - /** - * @note Address: 0x81356D4C (4.3U) - * @note Size: 0x64 - */ WarningHandler::WarningHandler(EGG::Heap* pHeap) : mType(NONE), mMessageID(0) { @@ -16,10 +12,6 @@ namespace ipl { mpDialog = new(pHeap, CLASS_HEAP) DialogWindow(pHeap); } - /** - * @note Address: 0x81356DB0 (4.3U) - * @note Size: 0x7C - */ void WarningHandler::set(Type type, u32 msgId) { mType = type; mMessageID = msgId; @@ -34,26 +26,14 @@ namespace ipl { System::getHomeButtonMenu()->enable(); } - /** - * @note Address: 0x81356E2C (4.3U) - * @note Size: 0x8 - */ void WarningHandler::calc() { mpDialog->calc(); } - /** - * @note Address: 0x81356E34 (4.3U) - * @note Size: 0x8 - */ void WarningHandler::draw() { mpDialog->draw(); } - /** - * @note Address: 0x81356E34 (4.3U) - * @note Size: 0x8 - */ BOOL WarningHandler::check() { return mpDialog->isActive(); } diff --git a/src/system/main.cpp b/src/system/main.cpp index aa01f0ea..f39f9389 100644 --- a/src/system/main.cpp +++ b/src/system/main.cpp @@ -4,20 +4,13 @@ extern "C" void mainmenu(); -/** - * @note Address: 0x81360764 (4.3U) - * @note Size: 0x2C - */ void mainmenu() { ipl::System::init(NULL, NULL); ipl::System::run(); } -/** - * @note Address: 0x81360790 (4.3U) - * @note Size: 0x10 - */ -s32 NANDCheck(u32 fsBlock, u32 iNode, u32 *answer) { +// why +s32 NANDCheck(u32 fsblock, u32 inode, u32 *answer) { *answer = 0; return NAND_RESULT_OK; } diff --git a/src/system/odh.cpp b/src/system/odh.cpp index 93c4a91d..e9449493 100644 --- a/src/system/odh.cpp +++ b/src/system/odh.cpp @@ -2,10 +2,6 @@ #include "system/odh.h" -/** - * @note Address: 0x8135DDB0 (4.3U) - * @note Size: 0x24 - */ s32 CArGBAOdh::ScaleLimit(s32 scale) { s32 newScale = scale; diff --git a/src/utility/iplCapture.cpp b/src/utility/iplCapture.cpp index 996a2d59..bba384c8 100644 --- a/src/utility/iplCapture.cpp +++ b/src/utility/iplCapture.cpp @@ -4,10 +4,6 @@ namespace ipl { namespace utility { - /** - * @note Address: 0x813632A8 (4.3U) - * @note Size: 0x9C - */ Capture::Capture(EGG::Heap* pHeap, int x, int y, int width, int height, _GXTexFmt texFmt) : mXPos(x), mYPos(y), @@ -20,19 +16,11 @@ namespace ipl { GXInitTexObj(&mTexObj, mTextureBuffer, mTextureWidth, mTextureHeight, mTextureFormat, GX_CLAMP, GX_CLAMP, GX_FALSE); } - - /** - * @note Address: 0x81363344 (4.3U) - * @note Size: 0x58 - */ + Capture::~Capture() { delete[] mTextureBuffer; } - - /** - * @note Address: 0x8136339C (4.3U) - * @note Size: 0xC0 - */ + void Capture::capture(BOOL disableFilter) { DCInvalidateRange(mTextureBuffer, mTextureSize); diff --git a/src/utility/iplMessageBase.cpp b/src/utility/iplMessageBase.cpp index 24bb9484..72607c18 100644 --- a/src/utility/iplMessageBase.cpp +++ b/src/utility/iplMessageBase.cpp @@ -2,34 +2,19 @@ namespace ipl { namespace utility { - /** - * @note Address: 0x81364D78 (4.3U) - * @note Size: 0x2C - */ + BOOL ut_message_base::SendMessage(OSMessage msg, s32 flags) { return OSSendMessage(&mpMsgQueue, msg, flags) != FALSE; } - - /** - * @note Address: 0x81364DA4 (4.3U) - * @note Size: 0x2C - */ + BOOL ut_message_base::JamMessage(OSMessage msg, s32 flags) { return OSJamMessage(&mpMsgQueue, msg, flags) != FALSE; } - - /** - * @note Address: 0x81364DD0 (4.3U) - * @note Size: 0x2C - */ + BOOL ut_message_base::ReceiveMessage(OSMessage* pMsg, s32 flags) { return OSReceiveMessage(&mpMsgQueue, pMsg, flags) != FALSE; } - - /** - * @note Address: 0x81364DFC (4.3U) - * @note Size: 0x8 - */ + void ut_message_base::InitMessageQueue(OSMessage* pMsg, s32 msgCount) { OSInitMessageQueue(&mpMsgQueue, pMsg, msgCount); } diff --git a/src/utility/iplThread.cpp b/src/utility/iplThread.cpp index 34150b6f..0e41d9d4 100644 --- a/src/utility/iplThread.cpp +++ b/src/utility/iplThread.cpp @@ -2,10 +2,6 @@ namespace ipl { namespace utility { - /** - * @note Address: 0x81364B88 (4.3U) - * @note Size: 0x48 - */ void* ut_thread::ThreadMain_(void* param) { ut_thread* pThread = reinterpret_cast(param); @@ -13,25 +9,13 @@ namespace ipl { return pThread->Run(); } - /** - * @note Address: 0x81364BD0 (4.3U) - * @note Size: 0x24 - */ ut_thread::ut_thread() : mpStack(NULL), mStackSize(0), mPriority(16) {} - /** - * @note Address: 0x81364BF4 (4.3U) - * @note Size: 0x40 - */ ut_thread::~ut_thread() {} - /** - * @note Address: 0x81364C34 (4.3U) - * @note Size: 0x7C - */ void ut_thread::Create(void* pStack, u32 stackSize, int priority, bool bStartThread) { mStackSize = stackSize; mPriority = priority; @@ -43,52 +27,29 @@ namespace ipl { } } - /** - * @note Address: 0x81364CB0 (4.3U) - * @note Size: 0x8 - */ void ut_thread::Resume() { OSResumeThread(&mThread); } - /** - * @note Address: 0x81364CB8 (4.3U) - * @note Size: 0x8 - */ void ut_thread::Suspend() { OSSuspendThread(&mThread); } - /** - * @note Address: 0x81364CC0 (4.3U) - * @note Size: 0x34 - */ + BOOL ut_thread::WaitForThreadExit() { BOOL result = FALSE; OSJoinThread(&mThread, (void*)&result); return result; } - /** - * @note Address: 0x81364CF4 (4.3U) - * @note Size: 0x2C - */ bool ut_thread::IsThreadTerminated() { return OSIsThreadTerminated(&mThread); } - /** - * @note Address: 0x81364D20 (4.3U) - * @note Size: 0x2C - */ bool ut_thread::IsThreadSuspended() { return OSIsThreadSuspended(&mThread); } - - /** - * @note Address: 0x81364D4C (4.3U) - * @note Size: 0x2C - */ + bool ut_thread::SetThreadPriority(int priority) { return OSSetThreadPriority(&mThread, priority); } diff --git a/src/utility/iplTree.cpp b/src/utility/iplTree.cpp index 845a880e..51c9ac5f 100644 --- a/src/utility/iplTree.cpp +++ b/src/utility/iplTree.cpp @@ -2,10 +2,6 @@ namespace ipl { namespace utility { - /** - * @note Address: 0x813626EC - * @note Size: 0x20 - */ BOOL RangeCheckGELTS32(s32 value, s32 min, s32 max) { BOOL result = FALSE; if (value >= min && value < max) { @@ -14,20 +10,12 @@ namespace ipl { return result; } - /** - * @note Address: 0x8136270C - * @note Size: 0x24 - */ Tree::Tree() : mpParent(NULL), mpChild(NULL), mpNext(NULL), mpPrev(NULL) {} - /** - * @note Address: 0x81362730 - * @note Size: 0x3C - */ void Tree::attach(Tree* pTree) { Tree* pTarget = mpChild; @@ -46,10 +34,6 @@ namespace ipl { } } - /** - * @note Address: 0x8136276C - * @note Size: 0x38 - */ void Tree::insert(Tree* pTree, Tree* pTree2) { pTree->mpParent = this; pTree->mpPrev = pTree2->mpPrev; @@ -64,10 +48,6 @@ namespace ipl { } } - /** - * @note Address: 0x813627A4 - * @note Size: 0x4C - */ void Tree::detach() { if (mpParent != NULL && mpParent->mpChild == this) { mpParent->mpChild = mpNext;