diff --git a/include/layout/iplLayout.h b/include/layout/iplLayout.h index 2853ecad..3207aa65 100644 --- a/include/layout/iplLayout.h +++ b/include/layout/iplLayout.h @@ -17,10 +17,21 @@ namespace ipl { public: Object(EGG::Heap* pHeap, nand::LayoutFile* pLayoutArchive, const char* layoutDirectory, const char* layoutFileName); + /** + * @brief Lock up(?) until it has finished binding panes. + */ void finishBinding(); + /** + * @brief Updates the Layout. + */ void calc(); + /** + * @brief Draws the Layout. + */ void draw(); - + /** + * @brief Gets the root of the Layout. + */ nw4r::lyt::Pane* GetRootPane() { return mpRootPane; } private: diff --git a/include/system/iplController.h b/include/system/iplController.h index 9dd034f9..a88561c8 100644 --- a/include/system/iplController.h +++ b/include/system/iplController.h @@ -36,12 +36,29 @@ namespace ipl { virtual int unk_0x4C(); virtual int unk_0x50(); virtual int unk_0x54(); + /** + * @brief Gets the IR sensor position of the Wii Remote. + * + * @return The IR sensor X and Y as `ipl::math::VEC2`. + */ virtual math::VEC2 getIRPos() const; + /** + * @brief Gets the Horizon of the Wii Remote. + * + * @return The Horizon X and Y as `ipl::math::VEC2`. + */ virtual math::VEC2 getHorizon() const; virtual int unk_0x60(); virtual int unk_0x64(); virtual int unk_0x68(); virtual int unk_0x6C(); + /** + * @brief If the Wii Remote is available. + * + * @remark This function is probably instead called `isValidDpd` + * + * @return Whether it is active or not. + */ virtual bool Active() const; }; } diff --git a/include/system/iplNand.h b/include/system/iplNand.h index ee37d2b8..4fa9bea4 100644 --- a/include/system/iplNand.h +++ b/include/system/iplNand.h @@ -17,8 +17,19 @@ namespace ipl { class Manager { public: Manager(); - - LayoutFile* readLayout(EGG::Heap* pHead, const char* archiveName, bool unk); + + /** + * @brief Reads a Layout File. + * + * This loads an ASH compressed archive containing Layout Data. + * + * @param pHeap The memory heap used for the function. + * @param archiveName The file name of the ASH compressed archive. + * @param unk Unkown boolean. + * + * @return The Layout File Data as `ipl::nand::LayoutFile`. + */ + LayoutFile* readLayout(EGG::Heap* pHeap, const char* archiveName, bool unk); }; } } diff --git a/include/system/iplNandSDWorker.h b/include/system/iplNandSDWorker.h index a4d96f84..f05969c0 100644 --- a/include/system/iplNandSDWorker.h +++ b/include/system/iplNandSDWorker.h @@ -13,6 +13,14 @@ namespace ipl { ~NandSDWorker(); private: + /** + * @brief Verifies if the banner header is valid. + * + * @param pBnrData The buffer containing the banner data. + * @param hashOut Save the hash of the banner as a `u32`. + * + * @return Boolean telling if the header is valid. + */ BOOL check_header_base(const u8 *pBnrData, u32 *hashOut); }; } diff --git a/include/system/iplNigaoe.h b/include/system/iplNigaoe.h index 6fd7162f..857ac45e 100644 --- a/include/system/iplNigaoe.h +++ b/include/system/iplNigaoe.h @@ -17,7 +17,10 @@ namespace ipl { Object(EGG::Heap* pHeap, int width, int height, RFLiCharData* pCharData, void (*someFunc)(Object*, void*), void* pArg3); ~Object(); - void SomeFunc(void* pArg1) { return (*mSomeFunc)(this, pArg1); } + /** + * @param pArg0 Argument 1. + */ + void SomeFunc(void* pArg0) { return (*mSomeFunc)(this, pArg0); } private: void init(EGG::Heap* pHeap, int width, int height); diff --git a/include/system/iplPointer.h b/include/system/iplPointer.h index 6edfdd55..8f647627 100644 --- a/include/system/iplPointer.h +++ b/include/system/iplPointer.h @@ -24,14 +24,41 @@ namespace ipl { class Pointer { public: + /** + * @param pHeap The memory heap used for work. + */ Pointer(EGG::Heap* pHeap); + /** + * @brief Updates the Wii Remote Pointers. + */ void calc(); + /** + * @brief Draws the Wii Remote Pointers. + */ void draw(); - + /** + * @brief Changes the state of a Wii Remote Pointer. + * + * @param chan The Wii Remote Player (0 - 3) + * @param state The state that will change to. + */ void setState(int chan, int state); + /** + * @brief Changes the Layout Type of a Wii Remote Pointer. + * + * @param chan The Wii Remote Player (0 - 3) + * @param type The layout type that will change to. + */ void changeType(int chan, int type); - + /** + * @brief Gets the Layout Data of a Wii Remote Pointer. + * + * @param chan The Wii Remote Player (0 - 3) + * @param type The layout type that will return. + * + * @return The Layout Data as `ipl::layout::Object` + */ layout::Object* get_layout(int chan, int type); public: diff --git a/include/system/iplPointerCore.h b/include/system/iplPointerCore.h index 259ac0c2..b947fb99 100644 --- a/include/system/iplPointerCore.h +++ b/include/system/iplPointerCore.h @@ -12,7 +12,6 @@ #include "layout/iplLayout.h" - namespace ipl { enum { POINTER_LYT_TYPE_POINT = 0, @@ -22,6 +21,9 @@ namespace ipl { }; class Pointer; + /** + * @warning Do not use `ipl::PointerCoreObject`, Please instead use `ipl::Pointer` + */ class PointerCoreObject { public: PointerCoreObject(); @@ -30,10 +32,7 @@ namespace ipl { void draw(); void setState(int newState) { mState = newState; } - int getState() { return mState; } - - void setLayoutType(int newLayoutType) { mLayoutType = newLayoutType; } - int getLayoutType() { return mLayoutType; } + void changeType(int newLayoutType) { mLayoutType = newLayoutType; } void setChan(int newChan) { mChan = newChan; } int getChan() { return mChan; } @@ -48,6 +47,9 @@ namespace ipl { f32 unk_0x10; }; + /** + * @warning Do not use `ipl::PointerCore`, Please instead use `ipl::Pointer` + */ class PointerCore { public: PointerCore(); diff --git a/include/system/iplSystem.h b/include/system/iplSystem.h index 5f5ba7e3..3db986f0 100644 --- a/include/system/iplSystem.h +++ b/include/system/iplSystem.h @@ -21,13 +21,37 @@ namespace ipl { OSAlarm mUnkAlarm; // 0x1E0 }; + /** + * @brief Initializes the IPL. + * + * @param argc The amount of arguments passed, + * @param argv Array of arguments. + */ static void init(int argc, char** argv); + /** + * @brief Boots up the IPL. + * + * @note Run this function after `ipl::System::init` + */ static void run(); + /** + * @return The Renderer of the IPL. + */ static GXRenderModeObj* getRenderModeObj(); + /** + * @return The System Memory Manager of the IPL. + */ static nand::Manager* getNandManager() { return smArg.mpNandManager; } + /** + * @return The Wii Remotes of the IPL. + * + * @param chan The Wii Remote Player + */ static controller::Interface* getController(int chan); - + /** + * @return A boolean telling if the user can restart their Wii console. + */ static bool isResetAcceptable(); private: @@ -35,7 +59,7 @@ namespace ipl { u8 unk_0x00[0x6C]; ipl::nand::Manager* mpNandManager; // 0x6C u8 unk_0x70[0x249]; - bool mCanReset; // 0x2B9 + bool mbResetDisabled; // 0x2B9 u8 unk_0x2BA[0x1C]; } ArgData; diff --git a/include/utility/iplCapture.h b/include/utility/iplCapture.h index 61ded351..a9b5e28b 100644 --- a/include/utility/iplCapture.h +++ b/include/utility/iplCapture.h @@ -11,10 +11,23 @@ namespace ipl { namespace utility { class Capture { public: - Capture(EGG::Heap* pHeap, int x, int y, int width, int height, _GXTexFmt texFmt); + /** + * @param pHeap The memory heap used for this. + * @param x The X position of the capture. + * @param y The Y position of the capture. + * @param width The width position of the capture. + * @param height The height position of the capture. + * @param texFmt Texture format of the capture. (RGB5A3 by default) + */ + Capture(EGG::Heap* pHeap, int x, int y, int width, int height, _GXTexFmt texFmt = GX_TF_RGB5A3); ~Capture(); - void capture(BOOL copyFilter); + /** + * @brief Capture the screen + * + * @param disableFilter Disable the GX filter on capture. + */ + void capture(BOOL disableFilter); private: u16 mXPos; // 0x00 diff --git a/include/utility/iplMessageBase.h b/include/utility/iplMessageBase.h index 0d8e11c1..f5d80d7d 100644 --- a/include/utility/iplMessageBase.h +++ b/include/utility/iplMessageBase.h @@ -9,10 +9,10 @@ namespace ipl { namespace utility { class ut_message_base { public: + BOOL SendMessage(OSMessage msg, s32 flags); BOOL JamMessage(OSMessage msg, s32 flags); BOOL ReceiveMessage(OSMessage* pMsg, s32 flags); - void InitMessageQueue(OSMessage* pMsg, s32 msgCount); private: diff --git a/include/utility/iplUtility.h b/include/utility/iplUtility.h index 78d16814..de59d18d 100644 --- a/include/utility/iplUtility.h +++ b/include/utility/iplUtility.h @@ -12,6 +12,13 @@ namespace ipl { namespace utility { + /** + * @brief Converts IR position to Cursor position. + * + * @param basePos The IR position. + * + * @return The Cursor Position as `ipl::math::VEC2` + */ math::VEC2 get_cursor_pos(const math::VEC2& basePos); } } diff --git a/libs/RVL_SDK/include/revolution/gx/GXEnum.h b/libs/RVL_SDK/include/revolution/gx/GXEnum.h index f3a8d2dc..a65cc328 100644 --- a/libs/RVL_SDK/include/revolution/gx/GXEnum.h +++ b/libs/RVL_SDK/include/revolution/gx/GXEnum.h @@ -9,8 +9,8 @@ extern "C" { typedef u8 GXBool; -#define GX_TRUE ((GXBool)1) -#define GX_FALSE ((GXBool)0) +#define GX_TRUE ((GXBool)TRUE) +#define GX_FALSE ((GXBool)FALSE) #define _GX_TF_ZTF 0x10 /* Z Texture format */ #define _GX_TF_CTF 0x20 /* Copy texture format */ diff --git a/libs/RVL_SDK/src/base/PPCArch.c b/libs/RVL_SDK/src/base/PPCArch.c index a16bc291..8cc2dc1d 100644 --- a/libs/RVL_SDK/src/base/PPCArch.c +++ b/libs/RVL_SDK/src/base/PPCArch.c @@ -1,4 +1,4 @@ -/* +/** *** STUB *** */ void PPCHalt() { diff --git a/libs/RVL_SDK/src/os/OSAlarm.c b/libs/RVL_SDK/src/os/OSAlarm.c index 4a0fa934..b88f7c0a 100644 --- a/libs/RVL_SDK/src/os/OSAlarm.c +++ b/libs/RVL_SDK/src/os/OSAlarm.c @@ -1,6 +1,6 @@ #include -/* +/** * @note Address 0x8152C8E4 (4.3U) * @note Size 0x10 */ diff --git a/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp b/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp index 1c07e6d1..d82f6d21 100644 --- a/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp +++ b/libs/RVL_SDK/src/os/__ppc_eabi_init.cpp @@ -26,7 +26,7 @@ __declspec(section ".init") extern VoidPTR _dtors[]; #pragma section code_type ".init" -/* +/** * @note Address 0x813301D8 (4.3U) * @note Size 0x24 */ @@ -44,7 +44,7 @@ asm void __init_hardware() { blr } -/* +/** * @note Address 0x813301FC (4.3U) * @note Size 0x34 */ @@ -74,7 +74,7 @@ loop: #pragma section code_type ".text" -/* +/** * @note Address 0x81538608 (4.3U) * @note Size 0x20 */ @@ -88,7 +88,7 @@ asm void __init_user() { } -/* +/** * @note Address 0x81538628 (4.3U) * @note Size 0x48 */ @@ -112,7 +112,7 @@ static void _ExitProcess() { PPCHalt(); } -/* +/** * @note Address 0x81538670 (4.3U) * @note Size 0x4C */ diff --git a/libs/RVL_SDK/src/os/stubs.c b/libs/RVL_SDK/src/os/stubs.c index 6085c1f0..487f9c81 100644 --- a/libs/RVL_SDK/src/os/stubs.c +++ b/libs/RVL_SDK/src/os/stubs.c @@ -1,22 +1,22 @@ -/* +/** *** STUB *** */ void DBInit() { } -/* +/** *** STUB *** */ void __OSPSInit() { } -/* +/** *** STUB *** */ void __OSFPRInit() { } -/* +/** *** STUB *** */ void __OSCacheInit() { diff --git a/libs/RevoEX/src/net/NETDigest.c b/libs/RevoEX/src/net/NETDigest.c index 4b096ac3..aa2e2dfc 100644 --- a/libs/RevoEX/src/net/NETDigest.c +++ b/libs/RevoEX/src/net/NETDigest.c @@ -1,8 +1,5 @@ #include -/* - *** STUB *** -*/ u32 NETCalcCRC32(const void* data, s32 size) { return -1; } diff --git a/libs/Runtime/src/Gecko_ExceptionPPC.cpp b/libs/Runtime/src/Gecko_ExceptionPPC.cpp index d294938d..66ebc5e6 100644 --- a/libs/Runtime/src/Gecko_ExceptionPPC.cpp +++ b/libs/Runtime/src/Gecko_ExceptionPPC.cpp @@ -4,14 +4,14 @@ extern "C" { #endif -/* +/** *** STUB *** */ int __register_fragment(__eti_init_info* info, char* reg) { return -1; } -/* +/** *** STUB *** */ void __unregister_fragment(int id) { diff --git a/libs/Runtime/src/__init_cpp_exceptions.cpp b/libs/Runtime/src/__init_cpp_exceptions.cpp index b94fcaf7..fcbb7311 100644 --- a/libs/Runtime/src/__init_cpp_exceptions.cpp +++ b/libs/Runtime/src/__init_cpp_exceptions.cpp @@ -25,7 +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 */ @@ -39,7 +39,7 @@ extern void __init_cpp_exceptions() { } } -/* +/** * @note Address: 0x815F9D44 (4.3U) * @note Size: 0x34 */ diff --git a/libs/Runtime/src/__mem.c b/libs/Runtime/src/__mem.c index 93ed0479..e5b760c3 100644 --- a/libs/Runtime/src/__mem.c +++ b/libs/Runtime/src/__mem.c @@ -3,7 +3,7 @@ #pragma section code_type ".init" -/* +/** * @note Address 0x81330230 (4.3U) * @note Size 0x50 */ @@ -32,7 +32,7 @@ void* memcpy(void* pDest, const void* pSrc, size_t count) { } -/* +/** * @note Address 0x81330280 (4.3U) * @note Size 0xB4 */ @@ -99,7 +99,7 @@ void __fill_mem(void* pDest, int value, unsigned long length) { #undef lDest } -/* +/** * @note Address 0x81330334 (4.3U) * @note Size 0x30 */ @@ -110,7 +110,7 @@ void* memset(void* pDest, int ch, size_t count) { #pragma section code_type ".text" -/* +/** * @note Address 0x815F8EFC (4.3U) * @note Size 0x1C */ diff --git a/libs/Runtime/src/global_destructor_chain.c b/libs/Runtime/src/global_destructor_chain.c index 2f09c3de..1e109c41 100644 --- a/libs/Runtime/src/global_destructor_chain.c +++ b/libs/Runtime/src/global_destructor_chain.c @@ -3,7 +3,7 @@ DtorChain* __global_destructor_chain; -/* +/** * @note Address: 0x815F8FE0 (4.3U) * @note Size 0x18 */ @@ -15,7 +15,7 @@ void __register_global_object(void* object, void* dtor, DtorChain* chain) { __global_destructor_chain = chain; } -/* +/** * @note Address: 0x815F8FF8 (4.3U) * @note Size 0x48 */ diff --git a/libs/Runtime/src/runtime.c b/libs/Runtime/src/runtime.c index 927d6c49..38e3433a 100644 --- a/libs/Runtime/src/runtime.c +++ b/libs/Runtime/src/runtime.c @@ -94,6 +94,10 @@ const unsigned long long __constants[] = { 0x41E0000000000000, }; +/** + * @note Address 0x815F9398 + * @note Size 0x5C + */ asm unsigned long __cvt_fp2unsigned(register double d) { nofralloc @@ -129,7 +133,7 @@ L_815F93EC: blr } -/* +/** * @note Address 0x815F948C * @note Size 0x4C */ @@ -175,7 +179,7 @@ static asm void __save_fpr() { blr } -/* +/** * @note Address 0x815F9440 * @note Size 0x4C */ @@ -220,7 +224,7 @@ static asm void __restore_fpr() { blr } -/* +/** * @note Address 0x815F948C * @note Size 0x4C */ @@ -265,7 +269,7 @@ static asm void __save_gpr() { blr } -/* +/** * @note Address 0x815F94D8 * @note Size 0x4C */ @@ -310,7 +314,7 @@ static asm void __restore_gpr() { blr } -/* +/** * @note Address: 0x815F9524 (4.3U) * @note Size: 0xEC */ @@ -385,7 +389,7 @@ L_815F9604: /* 815F960C 002C7A0C 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9610 (4.3U) * @note Size: 0x138 */ @@ -483,7 +487,7 @@ L_815F9740: /* 815F9744 002C7B44 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9748 (4.3U) * @note Size: 0xE4 */ @@ -556,7 +560,7 @@ L_815F9828: /* 815F9828 002C7C28 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F982C (4.3U) * @note Size: 0x10C */ @@ -642,7 +646,7 @@ L_815F9934: /* 815F9934 002C7D34 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9938 (4.3U) * @note Size: 0x24 */ @@ -658,7 +662,7 @@ asm void __shl2i() { /* 815F9958 002C7D58 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F995C (4.3U) * @note Size: 0x24 */ @@ -674,7 +678,7 @@ asm void __shr2u() { /* 815F997C 002C7D7C 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9980 (4.3U) * @note Size: 0x28 */ @@ -692,7 +696,7 @@ L_815F99A0: /* 815F99A4 002C7DA4 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F99A8 (4.3U) * @note Size: 0xB0 */ @@ -747,7 +751,7 @@ L_815F9A44: /* 815F9A54 002C7E54 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9A58 (4.3U) * @note Size: 0x9C */ @@ -796,7 +800,7 @@ L_815F9AE0: /* 815F9AF0 002C7EF0 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9AF4 (4.3U) * @note Size: 0xA0 */ @@ -846,7 +850,7 @@ L_815F9B7C: /* 815F9B90 002C7F90 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9B94 (4.3U) * @note Size: 0xCC */ @@ -910,7 +914,7 @@ L_815F9C58: /* 815F9C5C 002C805C 4E 80 00 20 */ blr } -/* +/** * @note Address: 0x815F9C60 (4.3U) * @note Size: 0xAB */ diff --git a/src/BS2/BS2.c b/src/BS2/BS2.c index 1803a406..1b742647 100644 --- a/src/BS2/BS2.c +++ b/src/BS2/BS2.c @@ -1,4 +1,4 @@ -/* +/** *** STUB *** */ int main(int argc, char** argv) { diff --git a/src/BS2/BootStart.c b/src/BS2/BootStart.c index ade53a84..f8eb6456 100644 --- a/src/BS2/BootStart.c +++ b/src/BS2/BootStart.c @@ -24,7 +24,7 @@ extern void exit(); extern void __start(); -/* +/** * @note Address: 0x81330000 (4.3J/4.3U/4.3E) * @note Size: 0xA8 * @note THIS MUST BE THE FIRST FUNCTION LINKED AT 0x81330000 (UNLESS YOU CHANGE 'BS2_ENTRY' FROM 'BS1.inc') @@ -93,7 +93,7 @@ bi2_end_arg_parse: b exit } -/* +/** * @note Address: 0x813300A8 (4.3J/4.3U/4.3E) * @note Size: 0x90 */ @@ -156,7 +156,7 @@ static void init_bss_section(void* dest, unsigned int size) { } } -/* +/** * @note Address: 0x81330138 (4.3J/4.3U/4.3E) * @note Size: 0xA0 */ diff --git a/src/system/RIPL_BoardRecord.c b/src/system/RIPL_BoardRecord.c index 40ffc9da..ce912da0 100644 --- a/src/system/RIPL_BoardRecord.c +++ b/src/system/RIPL_BoardRecord.c @@ -11,7 +11,7 @@ const char* RBRFileType_Odh = "odh"; const char* RBRFileType_Dat = "dat"; const char* RBRFileType_Log = "log"; -/* +/** * @note Address 0x81332B48 (4.3U/4.3E) * @note Size 0x98 */ @@ -39,7 +39,7 @@ u8* RBRGetPicture(u32* pRbrData, s32* dataSize) { return pRetData; } -/* +/** * @note Address 0x81332BE0 (4.3U/4.3E) * @note Size 0x44 */ diff --git a/src/system/iplNandSDWorker.cpp b/src/system/iplNandSDWorker.cpp index 58012c3f..137c59ff 100644 --- a/src/system/iplNandSDWorker.cpp +++ b/src/system/iplNandSDWorker.cpp @@ -3,7 +3,7 @@ #include namespace ipl { - /* + /** * @note Address 0x81350EB4 * @note Size 0xAC */ diff --git a/src/system/iplNigaoe.cpp b/src/system/iplNigaoe.cpp index fd20fd9c..57e7e1af 100644 --- a/src/system/iplNigaoe.cpp +++ b/src/system/iplNigaoe.cpp @@ -10,7 +10,7 @@ namespace ipl { namespace nigaoe { - /* + /** * @note Address: 0x8133EE00 (4.3U) * @note Size: 0x48 */ @@ -19,7 +19,7 @@ namespace ipl { init(pHeap, width, height); } - /* + /** * @note Address: 0x8133EE48 (4.3U) * @note Size: 0x4C */ @@ -28,7 +28,7 @@ namespace ipl { init(pHeap, width, height); } - /* + /** * @note Address: 0x8133EE94 (4.3U) * @note Size: 0x7C */ @@ -49,7 +49,7 @@ namespace ipl { } } - /* + /** * @note Address: 0x8133EF10 (4.3U) * @note Size: 0x58 */ @@ -57,7 +57,7 @@ namespace ipl { delete[] mpIconTex; } - /* + /** * @note Address: 0x8133EF68 (4.3U) * @note Size: 0x100 */ diff --git a/src/system/iplPointer.cpp b/src/system/iplPointer.cpp index 06435c70..79e17928 100644 --- a/src/system/iplPointer.cpp +++ b/src/system/iplPointer.cpp @@ -13,7 +13,7 @@ namespace ipl { #define MINIMUM_LENGTH 32 #define MAXIMUM_LENGTH 128 - /* + /** * @note Address: 0x816354D4 (4.3U) * @note Size: 0x24 */ @@ -39,7 +39,7 @@ namespace ipl { "my_BScroll_a.brlyt" }; - /* + /** * @note Address: 0x81344188 (4.3U) * @note Size: 0xE8 */ @@ -53,7 +53,7 @@ namespace ipl { } } - /* + /** * @note Address: 0x81344270 (4.3U) * @note Size: 0x174 */ @@ -93,15 +93,15 @@ namespace ipl { } pArrowRoot->SetScale(math::VEC2(1.0, newYScale)); - pArrowRoot->SetVisible(mScrolling); pOriginPane->SetVisible(!mScrolling); + // Calculate the scrolling layout mLayoutObject[LYT_SCROLLER_ID]->calc(); } } - /* + /** * @note Address: 0x81344428 (4.3U) * @note Size: 0x50 */ @@ -114,7 +114,7 @@ namespace ipl { } } - /* + /** * @note Address: 0x81344478 (4.3U) * @note Size: 0x8 */ @@ -122,7 +122,7 @@ namespace ipl { mCore.setState(chan, state); } - /* + /** * @note Address: 0x81344480 (4.3U) * @note Size: 0x8 */ @@ -130,7 +130,7 @@ namespace ipl { mCore.changeType(chan, type); } - /* + /** * @note Address: 0x81344488 (4.3U) * @note Size: 0x3C */ diff --git a/src/system/iplPointerCore.cpp b/src/system/iplPointerCore.cpp index d27ae7a5..9475a7ab 100644 --- a/src/system/iplPointerCore.cpp +++ b/src/system/iplPointerCore.cpp @@ -11,14 +11,14 @@ #include "utility/iplGraphics.h" namespace ipl { - /* + /** * @note Address: 0x813444C4 (4.3U) * @note Size: 0x24 */ PointerCoreObject::PointerCoreObject() : mLayoutObject(NULL), mState(0), mLayoutType(POINTER_LYT_TYPE_UNK3), mChan(0), unk_0x10(0) {} - /* + /** * @note Address: 0x813444E8 (4.3U) * @note Size: 0x19C */ @@ -45,11 +45,12 @@ namespace ipl { pCursorRotate->SetRotate(cursorRotateVec); pCursorRotateShadow->SetRotate(cursorRotateVec); + // Update the layout mLayoutObject->calc(); } } - /* + /** * @note Address: 0x813446A0 (4.3U) * @note Size: 0x24 */ @@ -60,20 +61,20 @@ namespace ipl { mLayoutObject->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--) { - mCursors[chan].setLayoutType(POINTER_LYT_TYPE_POINT); + mCursors[chan].changeType(POINTER_LYT_TYPE_POINT); mCursors[chan].setChan(chan); chan++; } } - /* + /** * @note Address: 0x81344740 (4.3U) * @note Size: 0x10 */ @@ -81,13 +82,17 @@ namespace ipl { 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 */ @@ -99,12 +104,12 @@ namespace ipl { } } - /* + /** * @note Address: 0x81344808 (4.3U) * @note Size: 0x10 */ void PointerCore::changeType(int chan, int type) { - mCursors[chan].setLayoutType(type); + mCursors[chan].changeType(type); } } diff --git a/src/system/iplSystem.cpp b/src/system/iplSystem.cpp index 92e8f282..48f7000a 100644 --- a/src/system/iplSystem.cpp +++ b/src/system/iplSystem.cpp @@ -3,13 +3,13 @@ #include namespace ipl { - /* + /** * @note Address 0x81089008 * @note Size 0x2D8 */ System::ArgData System::smArg; - /* + /** * @note Address 0x81332C24 * @note Size 0x48 */ @@ -18,12 +18,12 @@ namespace ipl { OSCreateAlarm(&mUnkAlarm); } - /* + /** * @note Address 0x81334B10 * @note Size 0x18 */ bool System::isResetAcceptable() { - return !smArg.mCanReset; + return !smArg.mbResetDisabled; } } diff --git a/src/system/main.cpp b/src/system/main.cpp index a00fa857..e8c9df77 100644 --- a/src/system/main.cpp +++ b/src/system/main.cpp @@ -13,7 +13,7 @@ extern s32 NANDCheck(u32 fsBlock, u32 inode, u32 *pAnswer); } #endif // __cplusplus -/* +/** * @note Address: 0x81360764 (4.3U) * @note Size: 0x2C */ @@ -22,7 +22,7 @@ void mainmenu() { ipl::System::run(); } -/* +/** * @note Address: 0x81360790 (4.3U) * @note Size: 0x10 */ diff --git a/src/system/odh.cpp b/src/system/odh.cpp index b6502f57..8d052c43 100644 --- a/src/system/odh.cpp +++ b/src/system/odh.cpp @@ -1,6 +1,6 @@ #include "system/odh.h" -/* +/** * @note Address: 0x8135DDB0 (4.3U) * @note Size: 0x24 */ diff --git a/src/utility/iplCapture.cpp b/src/utility/iplCapture.cpp index c6c9114d..ba809e50 100644 --- a/src/utility/iplCapture.cpp +++ b/src/utility/iplCapture.cpp @@ -4,7 +4,7 @@ namespace ipl { namespace utility { - /* + /** * @note Address: 0x813632A8 (4.3U) * @note Size: 0x9C */ @@ -16,7 +16,7 @@ namespace ipl { GXInitTexObj(&mTexObj, mTextureBuffer, mTextureWidth, mTextureHeight, mTextureFormat, GX_CLAMP, GX_CLAMP, GX_FALSE); } - /* + /** * @note Address: 0x81363344 (4.3U) * @note Size: 0x58 */ @@ -24,14 +24,14 @@ namespace ipl { delete[] mTextureBuffer; } - /* + /** * @note Address: 0x8136339C (4.3U) * @note Size: 0xC0 */ - void Capture::capture(BOOL copyFilter) { + void Capture::capture(BOOL disableFilter) { DCInvalidateRange(mTextureBuffer, mTextureSize); - if (!copyFilter) { + if (!disableFilter) { GXRenderModeObj *pRmode = System::getRenderModeObj(); GXSetCopyFilter(GX_FALSE, pRmode->sample_pattern, GX_FALSE, pRmode->vfilter); } @@ -42,7 +42,7 @@ namespace ipl { GXCopyTex(mTextureBuffer, GX_FALSE); GXPixModeSync(); - if (!copyFilter) { + if (!disableFilter) { GXRenderModeObj *pRmode = System::getRenderModeObj(); GXSetCopyFilter(pRmode->aa, pRmode->sample_pattern, GX_TRUE, pRmode->vfilter); } diff --git a/src/utility/iplMessageBase.cpp b/src/utility/iplMessageBase.cpp index 00bc5c53..24bb9484 100644 --- a/src/utility/iplMessageBase.cpp +++ b/src/utility/iplMessageBase.cpp @@ -2,7 +2,7 @@ namespace ipl { namespace utility { - /* + /** * @note Address: 0x81364D78 (4.3U) * @note Size: 0x2C */ @@ -10,7 +10,7 @@ namespace ipl { return OSSendMessage(&mpMsgQueue, msg, flags) != FALSE; } - /* + /** * @note Address: 0x81364DA4 (4.3U) * @note Size: 0x2C */ @@ -18,7 +18,7 @@ namespace ipl { return OSJamMessage(&mpMsgQueue, msg, flags) != FALSE; } - /* + /** * @note Address: 0x81364DD0 (4.3U) * @note Size: 0x2C */ @@ -26,7 +26,7 @@ namespace ipl { return OSReceiveMessage(&mpMsgQueue, pMsg, flags) != FALSE; } - /* + /** * @note Address: 0x81364DFC (4.3U) * @note Size: 0x8 */