diff --git a/include/bannerSound/AudioWavePlayer.h b/include/bannerSound/AudioWavePlayer.h index 90d91560..5b0a8e87 100644 --- a/include/bannerSound/AudioWavePlayer.h +++ b/include/bannerSound/AudioWavePlayer.h @@ -38,7 +38,7 @@ private: private: SetupParam mSetupParam; // 0x9C - bool unk_0xB0; // 0xB0 + bool mReserved; // 0xB0 bool mIsSetData; // 0xB1 bool mIsPlaying; // 0xB2 bool mIsSetBuf; // 0xB3 diff --git a/include/bannerSound/AudioWaveUtility.h b/include/bannerSound/AudioWaveUtility.h index e3d731be..36508a93 100644 --- a/include/bannerSound/AudioWaveUtility.h +++ b/include/bannerSound/AudioWaveUtility.h @@ -24,7 +24,7 @@ public: virtual void setDataCur(u32 sampleOffset) = 0; private: - undefined4 unk_0x04; // 0x04 + undefined4 mReserved; // 0x04 }; class WaveFileAiff : public WaveFile { diff --git a/include/bannerSound/AxAdpcmPlayer.h b/include/bannerSound/AxAdpcmPlayer.h index d7d69374..64380a02 100644 --- a/include/bannerSound/AxAdpcmPlayer.h +++ b/include/bannerSound/AxAdpcmPlayer.h @@ -15,12 +15,12 @@ public: AXVPB* getAXVPB() { return mpVPB; } u32 getState() { return mState; } - u32 getUnk_0x08() { return unk_0x08; } + u32 getUnk_0x08() { return mStopResetState; } int getUpdateFlag() { return mUpdateFlag; } void setAXVPB(AXVPB* newVal) { mpVPB = newVal; } void setState(u32 newVal) { mState = newVal; } - void setUnk_0x08(u32 newVal) { unk_0x08 = newVal; } + void setUnk_0x08(u32 newVal) { mStopResetState = newVal; } void setUpdateFlag(u32 newVal) { mUpdateFlag = newVal; } AXPBMIX* getMix() { return &mMix; } @@ -30,7 +30,7 @@ public: private: AXVPB* mpVPB; // 0x00 u32 mState; // 0x04 - u32 unk_0x08; // 0x08 + u32 mStopResetState; // 0x08 int mUpdateFlag; // 0x0c AXPBMIX mMix; // 0x10 }; diff --git a/include/bannerSound/BannerSoundPlayer.h b/include/bannerSound/BannerSoundPlayer.h index f65a5df6..e11eacbb 100644 --- a/include/bannerSound/BannerSoundPlayer.h +++ b/include/bannerSound/BannerSoundPlayer.h @@ -64,7 +64,7 @@ private: SimpleWavePlayer mWavePlayer; // 0x18 AxAdpcmSimplePlayer mAdpcmPlayer; // 0x500 AxAdpcmHandle mAdpcmHandle; // 0x508 - u8 unk_0x510; // 0x510 + u8 mReserved; // 0x510 f32 mMasterVolume; // 0x514 }; diff --git a/include/channelScript/CHANSVm/VmTypes.h b/include/channelScript/CHANSVm/VmTypes.h index c484f728..e479ebf2 100644 --- a/include/channelScript/CHANSVm/VmTypes.h +++ b/include/channelScript/CHANSVm/VmTypes.h @@ -72,7 +72,7 @@ typedef struct CHANSVmObjHdr CHANSVmObjHdr; typedef struct CHANSVmNativeClass CHANSVmNativeClass; typedef struct { - vmU8 unk_0x00; // 0x00 + vmU8 reserved; // 0x00 vmS32 val; // 0x01 } vmInt32ObjVal; @@ -168,7 +168,7 @@ typedef struct CHANSVmNativeMethod { u8 hasStar; // 0x06 u8 pad_0x07; // 0x07 CHANSVmFunction func; // 0x08 - undefined unk_0x0C[0x14]; // 0x0C + undefined reserved[0x14]; // 0x0C } CHANSVmNativeMethod; typedef struct CHANSVmPropertyList { @@ -184,7 +184,7 @@ typedef struct CHANSVmNativeProperty { u8 pad_0x07; // 0x07 CHANSVmFunction getter; // 0x08 CHANSVmFunction setter; // 0x0C - undefined unk_0x10[0x10]; // 0x10 + undefined reserved[0x10]; // 0x10 } CHANSVmNativeProperty; struct CHANSVmNativeClass { @@ -200,7 +200,7 @@ struct CHANSVmNativeClass { vmSize nameLength; // 0x18 char sName[4]; // 0x1C - undefined unk_0x20[0x1C]; + undefined classNameStorage[0x1C]; }; #ifdef __cplusplus diff --git a/include/channelScript/CHANSVmPrivate/vmPrivate.h b/include/channelScript/CHANSVmPrivate/vmPrivate.h index 9f3e690c..7a963af6 100644 --- a/include/channelScript/CHANSVmPrivate/vmPrivate.h +++ b/include/channelScript/CHANSVmPrivate/vmPrivate.h @@ -131,7 +131,7 @@ typedef struct CHANSVmPrivate { vmU32 exeStart; // 0x08 vmU32 exeSize; // 0x0C vmS32 depth; // 0x10 - vmU8 unk_0x14[4]; // 0x14 + vmU8 reserved[4]; // 0x14 CHANSVmExecutionCtx* pContextListHead; // 0x18 vmU32 minFreeHeapSize; // 0x1C vmU8* pHeapStart; // 0x20 diff --git a/include/iplMemoryCardLib.h b/include/iplMemoryCardLib.h index fc110c92..d7ba0e14 100644 --- a/include/iplMemoryCardLib.h +++ b/include/iplMemoryCardLib.h @@ -15,11 +15,11 @@ namespace ipl { } FileInfo; // 0x0C typedef struct CardState { - vu8 unk_0x00; // 0x00 + vu8 reservedState; // 0x00 vu8 changed; // 0x01 vs16 state; // 0x02 - vu16 unk_0x04; // 0x04 - vu16 unk_0x06; // 0x06 + vu16 reservedSlot; // 0x04 + vu16 reservedCommand; // 0x06 vu32 key; // 0x08 vu16 unk_0x0C; // 0x0C vu16 unk_0x0E; // 0x0E diff --git a/include/iplwww/www_surface.h b/include/iplwww/www_surface.h index c30f1b4f..a9da7c5d 100644 --- a/include/iplwww/www_surface.h +++ b/include/iplwww/www_surface.h @@ -70,7 +70,7 @@ namespace ext_ead { u32 mWidth; // 0x04 u32 mHeight; // 0x08 - u32 unk_0x0C; // 0x0C + u32 mReserved; // 0x0C OSMutex mMutex; // 0x10 BrowserThread* mpBrowserThread; // 0x28 diff --git a/include/keyboard/MyTiInputForm.h b/include/keyboard/MyTiInputForm.h index 8fa32aa8..784e616a 100644 --- a/include/keyboard/MyTiInputForm.h +++ b/include/keyboard/MyTiInputForm.h @@ -38,7 +38,7 @@ namespace textinput { InputForm(textinput::Manager* manager, nw4r::lyt::MultiArcResourceAccessor* multiArc, const char* layoutName, EventObserver* event, const char* fontName) : textinput::InputForm(manager, multiArc, layoutName, event, fontName), - unk_0x308(NULL), unk_0x30C(NULL), unk_0x310(NULL), unk_0x314(NULL), + mpMemoPane(NULL), mpMemoRootPane(NULL), mpBoundPane(NULL), mpDrawPane(NULL), mfScroll(0.0f), mfScrollFrom(0.0f), mfScrollTo(0.0f), mnLine(0), mDrawRect(), mDefaultDrawSize(), mDefaultBoundSize(), mExScrollAnm(), mpNigaoeObserver(NULL), mpDefaultNigaoe(NULL), mpSendString(NULL), @@ -159,11 +159,11 @@ namespace textinput { nw4r::lyt::Pane* mpDrawPane; #else #ifdef MYTIMANAGER_IMPLEMENTATION - undefined4* unk_0x308; + undefined4* mpMemoPane; #endif - undefined4* unk_0x30C; - undefined4* unk_0x310; - undefined4* unk_0x314; + undefined4* mpMemoRootPane; + undefined4* mpBoundPane; + undefined4* mpDrawPane; #endif f32 mfScroll; // 0x318 f32 mfScrollFrom; // 0x31C diff --git a/include/keyboard/MyTiLetterForm.h b/include/keyboard/MyTiLetterForm.h index 40967240..a9b36b64 100644 --- a/include/keyboard/MyTiLetterForm.h +++ b/include/keyboard/MyTiLetterForm.h @@ -20,7 +20,7 @@ namespace textinput { InputForm(textinput::Manager* manager, nw4r::lyt::MultiArcResourceAccessor* multiArc, const char* layoutName, EventObserver* event, const char* fontName) : textinput::MemoInputForm(manager, multiArc, layoutName, event, fontName), - unk_0x400(0), mbPhotoDraw(false), meType(T_MailAddressSel) {} + mbPhotoScaledUp(0), mbPhotoDraw(false), meType(T_MailAddressSel) {} #endif #ifdef MYTILETTERFORM_IMPLEMENTATION @@ -50,7 +50,7 @@ namespace textinput { #ifdef MYTILETTERFORM_IMPLEMENTATION bool mbPhotoScaledUp; #else - u8 unk_0x400; + u8 mbPhotoScaledUp; #endif bool mbPhotoDraw; // 0x401 Type meType; // 0x404 diff --git a/include/keyboard/tiHKBManager.h b/include/keyboard/tiHKBManager.h index 34e67e14..2986f0d1 100644 --- a/include/keyboard/tiHKBManager.h +++ b/include/keyboard/tiHKBManager.h @@ -241,7 +241,7 @@ namespace textinput { #endif #endif private: - u8 unk_0x00[0xFC]; + u8 mKeyboardStateStorage[0xFC]; static HKBManager sInstance; }; diff --git a/include/keyboard/tiInputForm.h b/include/keyboard/tiInputForm.h index a63b8388..0959791f 100644 --- a/include/keyboard/tiInputForm.h +++ b/include/keyboard/tiInputForm.h @@ -414,9 +414,9 @@ namespace textinput { #else private: #ifdef MYTIMANAGER_IMPLEMENTATION - u8 unk_0x2C0[0x48]; + u8 mInputStateStorage[0x48]; #else - u8 unk_0x2C0[0x4C]; + u8 mInputStateStorage[0x4C]; #endif #endif }; diff --git a/include/keyboard/tiNw4rManager.h b/include/keyboard/tiNw4rManager.h index 7f583fc6..eff2ec44 100644 --- a/include/keyboard/tiNw4rManager.h +++ b/include/keyboard/tiNw4rManager.h @@ -24,10 +24,10 @@ namespace textinput { u8 remaining[8]; #else // todo - u32 field_0x00; // 0x00 + u32 controller; // 0x00 u8 dummy[8]; - u32 field_0x0C; // 0x0C - u32 field_0x10; // 0x10 + u32 trigger; // 0x0C + u32 hold; // 0x10 u8 dummy2[12]; #endif } Input; diff --git a/include/keyboard/tiString.h b/include/keyboard/tiString.h index 2b617051..ef8e2ba8 100644 --- a/include/keyboard/tiString.h +++ b/include/keyboard/tiString.h @@ -72,7 +72,7 @@ namespace textinput { wchar_t mOutput[5]; #else private: - u8 field_0x00[0x24]; + u8 mKanaStateStorage[0x24]; #endif }; @@ -81,7 +81,7 @@ namespace textinput { #if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION) || defined(TISTRING_IMPLEMENTATION) || defined(TIZISTRING_IMPLEMENTATION) Decolated(u16 maxLen) : StringBase(maxLen), mCursorStart(0), mCursorEnd(0), mbSustain(false), mTranslateMode(0) { initKanaConverter(); } #else - Decolated(u16 maxLen) : StringBase(maxLen), field_0x18(0), field_0x1C(0), field_0x20(0), field_0x24(0) { initKanaConverter(); } + Decolated(u16 maxLen) : StringBase(maxLen), mCursorStart(0), mCursorEnd(0), mbSustain(0), mTranslateMode(0) { initKanaConverter(); } #endif #if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION) || defined(TISTRING_IMPLEMENTATION) || defined(TIZISTRING_IMPLEMENTATION) @@ -181,10 +181,10 @@ namespace textinput { u32 mTranslateMode; #endif #else - u32 field_0x18; // 0x18 - u32 field_0x1C; // 0x1C - u8 field_0x20; // 0x20 - u32 field_0x24; // 0x24 + u32 mCursorStart; // 0x18 + u32 mCursorEnd; // 0x1C + u8 mbSustain; // 0x20 + u32 mTranslateMode; // 0x24 #endif KanaStream mKanaStream; // 0x28 }; diff --git a/include/keyboard/tiTextDrawer.h b/include/keyboard/tiTextDrawer.h index f6783fb4..71abc637 100644 --- a/include/keyboard/tiTextDrawer.h +++ b/include/keyboard/tiTextDrawer.h @@ -38,7 +38,7 @@ namespace textinput { nw4r::ut::Rect rect; wchar_t character; #else - u8 unk_0x00[32]; + u8 rectangleAndCharacterStorage[32]; #endif } DrawInfo; @@ -177,7 +177,7 @@ namespace textinput { u32 muDrawCacheStartPos; #else private: - u8 unk_0x50[0x78]; + u8 mDrawStateStorage[0x78]; #endif bool mbSecretMode; // 0xC8 #if defined(TIINPUTFORM_IMPLEMENTATION) || defined(TIMANAGER_IMPLEMENTATION) || defined(TITEXTDRAWER_IMPLEMENTATION) || defined(MYTILETTERFORM_IMPLEMENTATION) @@ -202,7 +202,7 @@ namespace textinput { f32 mfDrawScrollY; u8 mDrawCacheState[0x14]; #else - u8 unk_0xCC[0x3C]; + u8 mCacheStateStorage[0x3C]; #endif #endif }; diff --git a/include/layout/iplGuiManager.h b/include/layout/iplGuiManager.h index e1eb58a8..207e6f9f 100644 --- a/include/layout/iplGuiManager.h +++ b/include/layout/iplGuiManager.h @@ -41,7 +41,7 @@ namespace ipl { } private: - u32 unk_0x28; + u32 mReserved; EGG::Heap* mpHeap; bool mbDisableCon; // 0x30 diff --git a/include/scene/address/iplAddress.h b/include/scene/address/iplAddress.h index 05f31328..c0bb3888 100644 --- a/include/scene/address/iplAddress.h +++ b/include/scene/address/iplAddress.h @@ -159,7 +159,7 @@ namespace ipl { int mButton; // 0x10 int mNextCount; // 0x14 int mPrevCount; // 0x18 - int unk_0x1C; // 0x1C + int mResetState; // 0x1C bool mbDragging; // 0x20 }; @@ -234,7 +234,7 @@ namespace ipl { DragInfo mDrag; // 0x64 int mMode; // 0x88 layout::Object* mpLayout; // 0x8C - int unk_0x90; // 0x90 + int mReserved; // 0x90 AddressEvent* mpEvent; // 0x94 gui::PaneManager* mpGui; // 0x98 layout::Object* mpBackLayout; // 0x9C diff --git a/include/scene/board/iplBoard.h b/include/scene/board/iplBoard.h index 6f5f5c8c..857fd07e 100644 --- a/include/scene/board/iplBoard.h +++ b/include/scene/board/iplBoard.h @@ -369,8 +369,8 @@ namespace ipl { BoardSD mBoardSD; // 0xFAC bool mbExitRequest; // 0xFB4 - int unk_0xFB8; - u8 unk_0xFBC[4]; + int mNewMailAnimationPending; + u8 mReserved[4]; }; } // namespace scene } // namespace ipl diff --git a/include/scene/board/iplBoardObject.h b/include/scene/board/iplBoardObject.h index 1affa63d..4ee67977 100644 --- a/include/scene/board/iplBoardObject.h +++ b/include/scene/board/iplBoardObject.h @@ -139,7 +139,7 @@ namespace ipl { math::LinearIntp mMoveAnim; // 0x44 CDBId mCDBId; // 0x74 - u8 unk_0x7C[4]; + u8 mReservedBeforeRecordKey[4]; CDBRecordKey mCDBRecordKey; // 0x80 u32 mCDBGameCode; // 0xB0 @@ -179,7 +179,7 @@ namespace ipl { int mState; // 0x12C math::VEC2 mConPos; // 0x130 int mConChan; // 0x138 - u8 unk_0x13C[4]; + u8 mReserved[4]; static const char* mAnimNames[TYPE_MAX][1 + ANIM_MAX]; diff --git a/include/scene/calendar/iplCalendar.h b/include/scene/calendar/iplCalendar.h index f9d37213..9072325d 100644 --- a/include/scene/calendar/iplCalendar.h +++ b/include/scene/calendar/iplCalendar.h @@ -75,9 +75,9 @@ namespace ipl { void set_textbox_day(); void set_textbox_month(); void set_textbox_month(const char* paneName, const utility::Date& date); - void set_textbox_date(int unk, const utility::Date& date); + void set_textbox_date(int calendarIndex, const utility::Date& date); - void set_date_pos(int unk); + void set_date_pos(int calendarIndex); void exec_search_task(); diff --git a/include/scene/calendar/iplDate.h b/include/scene/calendar/iplDate.h index 7f1656ee..4cc873e4 100644 --- a/include/scene/calendar/iplDate.h +++ b/include/scene/calendar/iplDate.h @@ -35,7 +35,7 @@ namespace ipl { Date(EGG::Heap* heap, nand::LayoutFile* file, const char* layoutFolder, const char* layoutFileName); void calc(); - void draw(bool unk); + void draw(bool focusedPass); layout::PaneAnimator* doAnim(int animId); diff --git a/include/scene/channelEdit/iplNandSDCardManager.h b/include/scene/channelEdit/iplNandSDCardManager.h index 4558cc1b..ec4c2edd 100644 --- a/include/scene/channelEdit/iplNandSDCardManager.h +++ b/include/scene/channelEdit/iplNandSDCardManager.h @@ -225,7 +225,7 @@ namespace ipl { nw4r::ut::List mNandListingList; // 0x1C nw4r::ut::List mSDListingList; // 0x28 - undefined4 unk_0x34; // 0x34 + undefined4 mReserved; // 0x34 Thumbnail mThumbnails[15]; // 0x38 WiiBannerFileInfo mBanners[15]; // 0x5C90 @@ -243,7 +243,7 @@ namespace ipl { bool mbDisableThumbFetch; // 0xE8790 ESTitleId mTmpTitleId; // 0xE8798 - bool unk_0xE87A0; // 0xE87a0 + bool mbDeleteSDAppAfterRestore; // 0xE87a0 }; } // namespace scene } // namespace ipl diff --git a/include/scene/kitayamaTest/iplKitayamaTest.h b/include/scene/kitayamaTest/iplKitayamaTest.h index 15f7ba9d..df8ebe31 100644 --- a/include/scene/kitayamaTest/iplKitayamaTest.h +++ b/include/scene/kitayamaTest/iplKitayamaTest.h @@ -57,8 +57,8 @@ namespace ipl { kitayama::NandSDWorker_AutoTest* mpAutoTest; // 0x64 void* mpWorkerBuf; // 0x68 void* mpWorkerCacheBuf; // 0x6C - u32 unk_0x70; // 0x70 (unused) - u32 unk_0x74; // 0x74 (unused) + u32 mReservedWorkerState; // 0x70 (unused) + u32 mReservedCacheState; // 0x74 (unused) }; } // namespace scene } // namespace ipl diff --git a/include/scene/memoryCard/iplMemoryCard.h b/include/scene/memoryCard/iplMemoryCard.h index 8d75e493..19b1354c 100644 --- a/include/scene/memoryCard/iplMemoryCard.h +++ b/include/scene/memoryCard/iplMemoryCard.h @@ -74,13 +74,13 @@ namespace ipl { s32 mState; // 0x88 s32 mPrevState; // 0x8C u8 mSlot; // 0x90 - u8 unk_0x91[3]; // 0x91 + u8 mReservedSlot[3]; // 0x91 s32 mSlotState[2]; // 0x94 s16 mIconIndex; // 0x9C s16 mIconCount; // 0x9E u8 mShowArwR; // 0xA0 u8 mShowArwL; // 0xA1 - u8 unk_0xA2[2]; // 0xA2 + u8 mReservedArrows[2]; // 0xA2 MemoryCardManager* mpManager; // 0xA4 MemoryBaseEvent* mpEvent; // 0xA8 nw4r::ut::List mSaveDataList; // 0xAC diff --git a/include/scene/memoryCard/iplMemoryCardManager.h b/include/scene/memoryCard/iplMemoryCardManager.h index 5fb80d89..fc15db06 100644 --- a/include/scene/memoryCard/iplMemoryCardManager.h +++ b/include/scene/memoryCard/iplMemoryCardManager.h @@ -71,7 +71,7 @@ namespace ipl { typedef struct MCFile { u32 fileNo; // 0x00 - u32 unk_0x04; // 0x04 + u32 reserved; // 0x04 u32 unk_0x08; // 0x08 s32 sortKey; // 0x0C } MCFile; // 0x10 @@ -79,7 +79,7 @@ namespace ipl { typedef struct MCFileCell { wchar_t comment[2][0x40]; // 0x000 s16 iconAnmCounter; // 0x100 - u16 unk_0x102; // 0x102 + u16 reserved; // 0x102 GXTexObj icon; // 0x104 GXTexObj banner; // 0x124 GXTlutObj iconTlut; // 0x144 @@ -203,12 +203,12 @@ namespace ipl { return &mFileCell[slot][file].bannerTlut; } - u32 unk_0x04; // 0x00004 + u32 reserved; // 0x00004 MCFile mFile[2][0x7F]; // 0x00008 MCFileCell mFileCell[2][0x7F]; // 0x00FE8 s32 mLastResult; // 0x16930 s32 mLastCmd; // 0x16934 - u32 unk_0x16938; // 0x16938 + u32 mReservedResult; // 0x16938 MemCardEventListener* mpEventHandler; // 0x1693C }; } // namespace scene diff --git a/include/scene/nakamuraTest/iplNakamuraTest.h b/include/scene/nakamuraTest/iplNakamuraTest.h index 58e42237..363535cb 100644 --- a/include/scene/nakamuraTest/iplNakamuraTest.h +++ b/include/scene/nakamuraTest/iplNakamuraTest.h @@ -54,9 +54,9 @@ namespace ipl { u64 mAmtTotal; // 0x2B70 u16 mCurrVersion; // 0x2B78 void* mpNUPInstance; // 0x2B7C - u32 unk_0x2B80; // 0x2B80 - u32 unk_0x2B84; // 0x2B84 - u32 unk_0x2B88; // 0x2B88 + u32 mReserved0; // 0x2B80 + u32 mReserved1; // 0x2B84 + u32 mReserved2; // 0x2B88 static EGG::Heap* spHeap; static BOOL sNHTTPFinished; diff --git a/include/scene/nakamuraTest/iplNetSetup.h b/include/scene/nakamuraTest/iplNetSetup.h index b4d29445..7440f276 100644 --- a/include/scene/nakamuraTest/iplNetSetup.h +++ b/include/scene/nakamuraTest/iplNetSetup.h @@ -15,7 +15,7 @@ namespace ipl { NET_SETUP_REQUESTED_STARTUP, NET_SETUP_RUNNING, NET_SETUP_SUCCESS, - NET_SETUP_UNK_4, + NET_SETUP_ALTERNATE_ERROR, NET_SETUP_ERROR, }; diff --git a/include/scene/textBalloon/iplBalloon.h b/include/scene/textBalloon/iplBalloon.h index 794fb47c..dbe18150 100644 --- a/include/scene/textBalloon/iplBalloon.h +++ b/include/scene/textBalloon/iplBalloon.h @@ -48,8 +48,8 @@ namespace ipl { void set_size(const char* paneName, const nw4r::lyt::Size& size); const nw4r::lyt::Size* get_size(const char* paneName); - undefined4 unk_0x00; - undefined4 unk_0x04; + undefined4 mReserved; + undefined4 mReservedState; BOOL mbWaitingFadeIn; // 0x08 layout::Object* mpLayout; // 0x0C diff --git a/include/sound/iplSound.h b/include/sound/iplSound.h index f9c5a265..2cf0967d 100644 --- a/include/sound/iplSound.h +++ b/include/sound/iplSound.h @@ -39,13 +39,13 @@ namespace ipl { int holdSEwithPosDis(const char* sndName, f32 x, f32 y); #ifdef IPL_SOUND_MATCHING - void stopBGM(int unk = 0); + void stopBGM(int fadeFrames = 0); #else - int stopBGM(int unk = 0); + int stopBGM(int fadeFrames = 0); #endif - int stopBGM(nw4r::snd::SoundHandle* handle, int unk = 0); - void stopSE(nw4r::snd::SoundHandle* handle, int unk = 0); - void stopAllSound(int unk = 0); + int stopBGM(nw4r::snd::SoundHandle* handle, int fadeFrames = 0); + void stopSE(nw4r::snd::SoundHandle* handle, int fadeFrames = 0); + void stopAllSound(int fadeFrames = 0); int resetAllSound(); @@ -92,14 +92,14 @@ namespace ipl { tagSSeInfo* getFreeSEBlock(bool force); BOOL startBannerSound(void*, u32, bool ignoreSize = false); - void stopBannerSound(int unk = 0); + void stopBannerSound(int fadeFrames = 0); BOOL checkTmpSoundFile(void*, u32); long clipGELT_S32(long value, long lo, long hi); private: - u32 unk_0x620[3]; + u32 mSoundWork[3]; }; // use getSystem() and getBannerPlayer() instead diff --git a/include/system/MESGEntries.h b/include/system/MESGEntries.h index eea00cae..73e5009c 100644 --- a/include/system/MESGEntries.h +++ b/include/system/MESGEntries.h @@ -209,9 +209,9 @@ #define MESG_DATA_SD_CARD_LOCKED 62 #define MESG_DATA_SD_PROCESS_FAILED 151 #define MESG_DATA_FILE_CANT_BE_MOVED 205 -#define MESG_DATA_MOVE_UNK_ERROR 215 -#define MESG_DATA_COPY_UNK_ERROR 227 -#define MESG_DATA_DEL_UNK_ERROR 229 +#define MESG_DATA_MOVE_FAILED 215 +#define MESG_DATA_COPY_FAILED 227 +#define MESG_DATA_DELETE_FAILED 229 #define MESG_DATA_ERASE_DIALOG 247 #define MESG_DATA_ERASED 248 #define MESG_DATA_ERASING 251 diff --git a/include/system/RIPL_BoardRecord.h b/include/system/RIPL_BoardRecord.h index 72c925f8..b78324b5 100644 --- a/include/system/RIPL_BoardRecord.h +++ b/include/system/RIPL_BoardRecord.h @@ -63,7 +63,7 @@ typedef union RBRRecordFlags { u32 data; struct { u8 optOut; // 0x00 - u8 unk_0x01[2]; + u8 reserved[2]; u8 type; // 0x03 }; } RBRRecordFlags; diff --git a/include/system/iplCdbManager.h b/include/system/iplCdbManager.h index 4120d09a..4676f166 100644 --- a/include/system/iplCdbManager.h +++ b/include/system/iplCdbManager.h @@ -52,7 +52,7 @@ namespace ipl { BOOL isUnderFlow() const; BOOL findByKey(CDBRecord* record, CDBRecordKey* recordKey); - BOOL search(const CDBDate& begin, const CDBDate& end, CDBSearchDirection searchDirection, CDBRecordLocation recordLocation, int unk2, + BOOL search(const CDBDate& begin, const CDBDate& end, CDBSearchDirection searchDirection, CDBRecordLocation recordLocation, int openRecord, CDBSearchRecordCB searchRecordCB, void* searchRecordWork); BOOL getDataSize(CDBRecord* record, u32* recordDataSize); @@ -113,8 +113,8 @@ namespace ipl { u8* mpSDVFWork; // 0x1C OSMutex mMutex; // 0x20 - u8 unk_0x38; - u8 unk_0x39; + u8 mReserved0; + u8 mReserved1; }; class auto_closer { diff --git a/include/system/iplChannelManager.h b/include/system/iplChannelManager.h index 94a6baeb..fcae3c14 100644 --- a/include/system/iplChannelManager.h +++ b/include/system/iplChannelManager.h @@ -127,22 +127,22 @@ namespace ipl { u32 bannerRSOIdx : 4; // 0x00:00001111000000000000000000000000 u32 iconCSIdx : 4; // 0x01:00000000111100000000000000000000 u32 bannerCSIdx : 4; // 0x01:00000000000011110000000000000000 - u32 unk_15 : 1; // 0x02:00000000000000001000000000000000 + u32 reservedBit15 : 1; // 0x02:00000000000000001000000000000000 u32 useAltSound : 1; // 0x02:00000000000000000100000000000000 - u32 unk_13 : 1; // 0x02:00000000000000000010000000000000 - u32 unk_12 : 1; // 0x02:00000000000000000001000000000000 - u32 unk_11 : 1; // 0x02:00000000000000000000100000000000 - u32 unk_10 : 1; // 0x02:00000000000000000000010000000000 - u32 unk_09 : 1; // 0x02:00000000000000000000001000000000 + u32 reservedBit13 : 1; // 0x02:00000000000000000010000000000000 + u32 reservedBit12 : 1; // 0x02:00000000000000000001000000000000 + u32 reservedBit11 : 1; // 0x02:00000000000000000000100000000000 + u32 reservedBit10 : 1; // 0x02:00000000000000000000010000000000 + u32 reservedBit09 : 1; // 0x02:00000000000000000000001000000000 u32 netSetting : 1; // 0x02:00000000000000000000000100000000 - u32 unk_07 : 1; // 0x03:00000000000000000000000010000000 - u32 unk_06 : 1; // 0x03:00000000000000000000000001000000 - u32 unk_05 : 1; // 0x03:00000000000000000000000000100000 - u32 unk_04 : 1; // 0x03:00000000000000000000000000010000 - u32 unk_03 : 1; // 0x03:00000000000000000000000000001000 - u32 unk_02 : 1; // 0x03:00000000000000000000000000000100 - u32 unk_01 : 1; // 0x03:00000000000000000000000000000010 - u32 unk_00 : 1; // 0x03:00000000000000000000000000000001 + u32 reservedBit07 : 1; // 0x03:00000000000000000000000010000000 + u32 reservedBit06 : 1; // 0x03:00000000000000000000000001000000 + u32 reservedBit05 : 1; // 0x03:00000000000000000000000000100000 + u32 reservedBit04 : 1; // 0x03:00000000000000000000000000010000 + u32 reservedBit03 : 1; // 0x03:00000000000000000000000000001000 + u32 reservedBit02 : 1; // 0x03:00000000000000000000000000000100 + u32 reservedBit01 : 1; // 0x03:00000000000000000000000000000010 + u32 isDisk : 1; // 0x03:00000000000000000000000000000001 }; }; // 0x18 } SMetaBlockHeader; @@ -226,9 +226,9 @@ namespace ipl { BOOL setupUrlJump(const char* url); BOOL setupChannelJump(ESTitleId titleId, const char* data); - void* getDiskThumbnail(bool unk); - void* getDiskBanner(bool unk); - void* getDiskSound(bool unk); + void* getDiskThumbnail(bool invalidateReady); + void* getDiskBanner(bool invalidateReady); + void* getDiskSound(bool invalidateReady); nand::MetaFile* loadThumbnailAsync(EGG::Heap* heap, int page, int index); nand::MetaFile* loadBannerAsync(EGG::Heap* heap, int page, int index); @@ -322,7 +322,7 @@ namespace ipl { int updateWaitSCFlush(); void updateDiskState(); - void* getDiskBannerData(int index, bool unk); + void* getDiskBannerData(int index, bool invalidateReady); int searchMetaHeader(const u8* buffer); diff --git a/include/system/iplChannelScriptManager.h b/include/system/iplChannelScriptManager.h index 9aebbfef..c062bedd 100644 --- a/include/system/iplChannelScriptManager.h +++ b/include/system/iplChannelScriptManager.h @@ -64,19 +64,19 @@ namespace ipl { private: enum { - CHANS_VM_STATE_UNK0 = 0, - CHANS_VM_STATE_UNK1, - CHANS_VM_STATE_UNK2, - CHANS_VM_STATE_UNK3, - CHANS_VM_STATE_UNK4, + CHANS_VM_STATE_IDLE = 0, + CHANS_VM_STATE_STARTING, + CHANS_VM_STATE_WAIT_BEGIN_RENDER, + CHANS_VM_STATE_RUNNING, + CHANS_VM_STATE_EXITING, }; enum { - CHANS_VM_MSG_STATE_UNK0 = 0, - CHANS_VM_MSG_STATE_UNK1, - CHANS_VM_MSG_STATE_UNK2, - CHANS_VM_MSG_STATE_UNK3, - CHANS_VM_MSG_STATE_UNK4, + CHANS_VM_MSG_STATE_NONE = 0, + CHANS_VM_MSG_STATE_BEGIN_RENDER, + CHANS_VM_MSG_STATE_WAIT_RETRACE, + CHANS_VM_MSG_STATE_RESERVED, + CHANS_VM_MSG_STATE_EXIT, }; u8* mpChansWork; // 0x00 diff --git a/include/system/iplKeyboard.h b/include/system/iplKeyboard.h index 1499aee5..81966e2e 100644 --- a/include/system/iplKeyboard.h +++ b/include/system/iplKeyboard.h @@ -144,7 +144,7 @@ namespace ipl { u32 mCurrentConChan; // 0x20 Vec2 projCenter; // 0x24 bool mbActivated; // 0x2C - u8 unk_0x2D; + u8 mReserved; textinput::extend::savedata::MemoSetting mSaveData; // 0x2E nand::File* mpSaveFile; // 0x38 }; diff --git a/include/system/iplMessage.h b/include/system/iplMessage.h index cd4d0500..8e4d9474 100644 --- a/include/system/iplMessage.h +++ b/include/system/iplMessage.h @@ -45,7 +45,7 @@ namespace ipl { typedef struct MESGInfoBlock { u32 offset; // 0x00 u32 flags; // 0x04 - u32 unk_0x08; // 0x08 + u32 reserved; // 0x08 } MESGInfoBlock; typedef struct MESGDataHeader { diff --git a/include/system/iplNandSDWorker.h b/include/system/iplNandSDWorker.h index 653d3c40..d0d97ffa 100644 --- a/include/system/iplNandSDWorker.h +++ b/include/system/iplNandSDWorker.h @@ -47,13 +47,13 @@ namespace ipl { RESULT_BROKEN_MEDIA = -9, RESULT_ILLEGAL_MEDIA = -10, RESULT_WRITE_PROTECTED = -11, - RESULT_UNK_N12 = -12, + RESULT_FILENAME_CONFLICT = -12, RESULT_NOCOPY = -13, RESULT_ES_ERROR = -14, RESULT_NOT_TRANSFERRABLE = -15, RESULT_VERSION_ERR = -16, RESULT_SD_APP_LOC_NOT_FOUND = -17, - RESULT_UNK_18 = -18, + RESULT_CANCELLED = -18, }; typedef struct SDAppMetaEntry { @@ -211,8 +211,8 @@ namespace ipl { MEMHeapHandle mainHeap; // 0x1E690 MEMHeapHandle saveCacheHeap; // 0x1E694 MEMHeapHandle appCacheHeap; // 0x1E698 - MEMHeapHandle unkHeap; // 0x1E69C - MEMAllocator unkAllocator; // 0x1E6A0 + MEMHeapHandle scratchHeap; // 0x1E69C + MEMAllocator scratchAllocator; // 0x1E6A0 u8 threadStack[STACK_SIZE]; // 0x1E6B0 OSThread thread; // 0x3e6B0 OSMutex mutex; // 0x3e9C8 @@ -240,7 +240,7 @@ namespace ipl { nw4r::ut::Link link; // 0x10 u8 thumbnail[100 * 1024]; // 0x18 channel::SChanMgrMetaHeader metaHdr; // 0x19018 - u8 unk_0x19018[8]; // 0x19618 + u8 reserved[8]; // 0x19618 } AppCacheEntry; typedef struct SaveCacheEntry { @@ -248,7 +248,7 @@ namespace ipl { ESTitleId titleId; // 0xF0A0 s32 size; // 0xF0A8 nw4r::ut::Link link; // 0xF0AC - u8 unk_0xf0b4[12]; // 0xF0B4 + u8 reserved[12]; // 0xF0B4 } SaveCacheEntry; typedef struct SDSaveBanner { @@ -265,8 +265,8 @@ namespace ipl { u32 thumbSize; // 0x08 NETMD5Sum headerMD5; // 0x0C NETMD5Sum iconMD5; // 0x1C - u64 unk_0x30; - u64 unk_0x38; + u64 reservedBeforeMeta; + u64 reservedBeforeMetaEnd; channel::SChanMgrMetaHeader metaHdr; // 0x40 } SDAppBanner; @@ -332,7 +332,7 @@ namespace ipl { MESSAGE_CHECK_BACKUP_FITS, MESSAGE_COPY_SD_APP_TO_NAND, MESSAGE_DEL_NAND_APP_HIDDEN, - MESSAGE_UNK_49, + MESSAGE_CHECK_SD_APP_TITLES, MESSAGE_CHANGE_NAND_APP_COUNT, MESSAGE_CHECK_SD_TITLE_RESTORABLE } WorkMessage; diff --git a/include/system/iplNwc24Manager.h b/include/system/iplNwc24Manager.h index 117442a4..a3e4779c 100644 --- a/include/system/iplNwc24Manager.h +++ b/include/system/iplNwc24Manager.h @@ -133,7 +133,7 @@ namespace ipl { void addDlTask(); BOOL getNewTitleTbl(u32* titleTbl) const; - BOOL isNewMessageThere(u32 unk) const; + BOOL isNewMessageThere(u32 appId) const; int getErrCode(); diff --git a/include/system/iplPointer.h b/include/system/iplPointer.h index 9fb23535..18d65ffd 100644 --- a/include/system/iplPointer.h +++ b/include/system/iplPointer.h @@ -83,7 +83,7 @@ namespace ipl { enum { TYPE_POINT = 0, TYPE_GRAB, - TYPE_UNK2, + TYPE_RESERVED, TYPE_MAX, /* ??? */ }; diff --git a/include/system/iplPostmanManager.h b/include/system/iplPostmanManager.h index 6de28144..8b1b6c3d 100644 --- a/include/system/iplPostmanManager.h +++ b/include/system/iplPostmanManager.h @@ -12,7 +12,7 @@ namespace ipl { namespace postman { class Manager : public utility::ut_thread { public: - enum { STATE_NONE = 0, STATE_RUN_RECEIVE, STATE_STOP_RUN, STATE_USBETHER_MAC, STATE_DL_TASK, STATE_UNKNOWN }; + enum { STATE_NONE = 0, STATE_RUN_RECEIVE, STATE_STOP_RUN, STATE_USBETHER_MAC, STATE_DL_TASK, STATE_INITIALIZING }; Manager(EGG::Heap* heap); virtual ~Manager() {} @@ -28,7 +28,7 @@ namespace ipl { virtual void* Run(); int Get_CurrentState() const { return mState; } - BOOL IsUnknown() { return mState != STATE_UNKNOWN; } + BOOL IsUnknown() { return mState != STATE_INITIALIZING; } BOOL NotRunning() { return mState == STATE_STOP_RUN; } void Start_RegistTask(EGG::TaskThread* task) { task->request(register_nwc24, NULL, NULL); } diff --git a/include/system/iplSocketSetting.h b/include/system/iplSocketSetting.h index db59502e..acce4365 100644 --- a/include/system/iplSocketSetting.h +++ b/include/system/iplSocketSetting.h @@ -21,8 +21,8 @@ namespace ipl { static bool checkLANMacAddrAvailable(); private: - static void* allocfunc(u32 unk, s32 size); - static void freefunc(u32 unk, void* buffer, s32 size); + static void* allocfunc(u32 allocationName, s32 size); + static void freefunc(u32 allocationName, void* buffer, s32 size); static char mMac[64]; diff --git a/include/system/iplSystem.h b/include/system/iplSystem.h index 540c15c7..21f90d48 100644 --- a/include/system/iplSystem.h +++ b/include/system/iplSystem.h @@ -210,7 +210,7 @@ namespace ipl { u32 mBS2BootType; // 0x21C u32 mBS2LaunchCode; // 0x220 - u32 unk_0x224; + u32 mReservedSceneState; char* mspNetSettingArg; // 0x228 char* mspDataManageArg; // 0x22C char msBS2FirstArgv[128]; // 0x230 @@ -241,7 +241,7 @@ namespace ipl { vs32 mRegistState; // 0x2C0 vs32 mRegistErrCode; // 0x2C4 volatile bool mbGoingToDataManager; // 0x2C8 - u8 unk_0x2CC[0x2D0 - 0x2CC]; + u8 mReserved[0x2D0 - 0x2CC]; ESTitleId mBS2LaunchTitle; // 0x2B0 friend class System; diff --git a/include/titledb.h b/include/titledb.h index b3e58f04..28e8df0e 100644 --- a/include/titledb.h +++ b/include/titledb.h @@ -18,7 +18,7 @@ #define TITLE_TYPE_DISC_CHANNEL ((TITLE_HITYPE_USER << 16) | 0x0004) /* 0x00010004 */ #define TITLE_TYPE_SHARED ((TITLE_HITYPE_USER << 16) | 0x0005) /* 0x00010005 */ #define TITLE_TYPE_UNK6 ((TITLE_HITYPE_USER << 16) | 0x0006) /* 0x00010006 */ -#define TITLE_TYPE_UNK7 ((TITLE_HITYPE_USER << 16) | 0x0007) /* 0x00010007 */ +#define TITLE_TYPE_USER_APP7 ((TITLE_HITYPE_USER << 16) | 0x0007) /* 0x00010007 */ #define TITLE_TYPE_HIDDEN_CHANNEL ((TITLE_HITYPE_USER << 16) | 0x0008) /* 0x00010008 */ #define TITLE_REGION_ALL 'A' diff --git a/include/utility/iplCSFlags.h b/include/utility/iplCSFlags.h index c6df6788..3292c2c2 100644 --- a/include/utility/iplCSFlags.h +++ b/include/utility/iplCSFlags.h @@ -6,9 +6,9 @@ namespace ipl { namespace utility { typedef struct CSFlagsData { - u8 unk_0x00[0x04 - 0x00]; + u8 reservedHeader[0x04 - 0x00]; u32 flags; // 0x04 - u8 unk_0x08[0x20 - 0x08]; + u8 reserved[0x20 - 0x08]; enum { FLAG_SYSCONF_EULA = 0, diff --git a/include/utility/iplMessageBase.h b/include/utility/iplMessageBase.h index ce1b13ef..70516fc5 100644 --- a/include/utility/iplMessageBase.h +++ b/include/utility/iplMessageBase.h @@ -27,7 +27,7 @@ namespace ipl { private: OSMessage mMessages[count]; // 0x24 - u32 unk_0x00; // (sizeof(mMessages) * count) + 0x00 + u32 mReserved; // (sizeof(mMessages) * count) + 0x00 }; } // namespace utility } // namespace ipl diff --git a/libs/EGG/include/egg/core/eggAudioMgr.h b/libs/EGG/include/egg/core/eggAudioMgr.h index 62bc570b..76ee5c27 100644 --- a/libs/EGG/include/egg/core/eggAudioMgr.h +++ b/libs/EGG/include/egg/core/eggAudioMgr.h @@ -13,7 +13,7 @@ namespace EGG { public: struct Arg { Heap* pHeap; // 0x00 - undefined4 unk_0x04; + undefined4 reserved; s32 soundThreadPrio; // 0x08 s32 dvdThreadPrio; // 0x0C @@ -31,7 +31,7 @@ namespace EGG { static const u32 DEFAULT_SOUND_HEAP_SIZE = 0x8CA000; u32 soundHeapSize; // 0x10 - u32 unk_0x14; + u32 reservedSoundHeap; SimpleAudioMgrArg(); }; diff --git a/libs/EGG/include/egg/core/eggColorFader.h b/libs/EGG/include/egg/core/eggColorFader.h index 04072380..3addffb1 100644 --- a/libs/EGG/include/egg/core/eggColorFader.h +++ b/libs/EGG/include/egg/core/eggColorFader.h @@ -44,7 +44,7 @@ namespace EGG { u16 mFadeFrame; // 0x0A u16 mFrame; // 0x0C - u8 unk_0x0E[2]; + u8 mReserved[2]; nw4r::ut::Color mColor; // 0x10 nw4r::ut::Rect mSpace; // 0x14 diff --git a/libs/EGG/src/core/eggAudioMgr.cpp b/libs/EGG/src/core/eggAudioMgr.cpp index 9fb54bce..ef0ed1ff 100644 --- a/libs/EGG/src/core/eggAudioMgr.cpp +++ b/libs/EGG/src/core/eggAudioMgr.cpp @@ -13,7 +13,7 @@ namespace EGG { soundThreadPrio = nw4r::snd::SoundSystem::DEFAULT_SOUND_THREAD_PRIORITY; dvdThreadPrio = nw4r::snd::SoundSystem::DEFAULT_DVD_THREAD_PRIORITY; - unk_0x04 = 0; + reserved = 0; } SimpleAudioMgr::SimpleAudioMgrArg::SimpleAudioMgrArg() { diff --git a/libs/EGG/src/core/eggExpHeap.cpp b/libs/EGG/src/core/eggExpHeap.cpp index 6fbefb02..aa0e23c1 100644 --- a/libs/EGG/src/core/eggExpHeap.cpp +++ b/libs/EGG/src/core/eggExpHeap.cpp @@ -103,7 +103,7 @@ namespace EGG { } namespace { - void free_all_visitor(void* ptr, MEMiHeapHead* heapHandle, u32 unk) { + void free_all_visitor(void* ptr, MEMiHeapHead* heapHandle, u32 userData) { MEMFreeToExpHeap(heapHandle, ptr); } } // namespace diff --git a/libs/MSL/include/signal.h b/libs/MSL/include/signal.h index 1dddb2bd..9cc92dd7 100644 --- a/libs/MSL/include/signal.h +++ b/libs/MSL/include/signal.h @@ -9,12 +9,12 @@ extern "C" { #define SIGNAL_ACTION_IGNORE ((__signal_func_ptr)1) #define SIGNAL_ABORT 1 -#define SIGNAL_UNK2 2 -#define SIGNAL_UNK3 3 -#define SIGNAL_UNK4 4 -#define SIGNAL_UNK5 5 -#define SIGNAL_UNK6 6 -#define SIGNAL_UNK7 7 +#define SIGNAL_HANDLER_2 2 +#define SIGNAL_HANDLER_3 3 +#define SIGNAL_HANDLER_4 4 +#define SIGNAL_HANDLER_5 5 +#define SIGNAL_HANDLER_6 6 +#define SIGNAL_HANDLER_7 7 typedef void (*__signal_func_ptr)(int); diff --git a/libs/MSL/src/MSL_Common/signal.c b/libs/MSL/src/MSL_Common/signal.c index 652c8fc5..995d83d3 100644 --- a/libs/MSL/src/MSL_Common/signal.c +++ b/libs/MSL/src/MSL_Common/signal.c @@ -7,7 +7,7 @@ __signal_func_ptr signal_funcs[8]; int raise(int sig) { __signal_func_ptr signal_func; - if (sig < SIGNAL_ABORT || sig > SIGNAL_UNK7) { + if (sig < SIGNAL_ABORT || sig > SIGNAL_HANDLER_7) { return -1; } diff --git a/libs/MSL/src/MSL_Common_Embedded/ansi_fp.c b/libs/MSL/src/MSL_Common_Embedded/ansi_fp.c index aebc6288..18f00b72 100644 --- a/libs/MSL/src/MSL_Common_Embedded/ansi_fp.c +++ b/libs/MSL/src/MSL_Common_Embedded/ansi_fp.c @@ -68,10 +68,10 @@ static void __dorounddecup(decimal* d, int digits) { static void __rounddec(decimal* d, int digits) { if (digits > 0 && digits < d->sig.length) { - int unkBool = __must_round(d, digits); + int roundDirection = __must_round(d, digits); d->sig.length = digits; - if (unkBool >= 0) { + if (roundDirection >= 0) { __dorounddecup(d, digits); } } diff --git a/libs/NW4R/include/nw4r/ut/ArchiveFontBase.h b/libs/NW4R/include/nw4r/ut/ArchiveFontBase.h index f617c572..cc08cf68 100644 --- a/libs/NW4R/include/nw4r/ut/ArchiveFontBase.h +++ b/libs/NW4R/include/nw4r/ut/ArchiveFontBase.h @@ -100,7 +100,7 @@ namespace nw4r { u8* pCachedBase; // 0x0C u8* pCachedStart; // 0x10 u8* pCachedEnd; // 0x14 - u32 unk_0x18; // 0x18 + u32 cacheWorkspaceOffset; // 0x18 }; class ConstructContext { diff --git a/libs/NW4R/src/ut/ut_ArchiveFontBase.cpp b/libs/NW4R/src/ut/ut_ArchiveFontBase.cpp index 58b93d8f..2676df75 100644 --- a/libs/NW4R/src/ut/ut_ArchiveFontBase.cpp +++ b/libs/NW4R/src/ut/ut_ArchiveFontBase.cpp @@ -632,7 +632,7 @@ namespace nw4r { pCachedStart = NULL; pCachedEnd = NULL; - unk_0x18 = 0; + cacheWorkspaceOffset = 0; } void ArchiveFontBase::CachedStreamReader::Attach(const void* data, u32 dataLen) { @@ -653,7 +653,7 @@ namespace nw4r { pCachedBase = NULL; pCachedStart = NULL; pCachedEnd = NULL; - unk_0x18 = 0; + cacheWorkspaceOffset = 0; } else { if (ctx->remWorkSpace() < (offset << 1)) { return false; @@ -675,7 +675,7 @@ namespace nw4r { pCachedBase = dst; pCachedStart = dst; pCachedEnd = dst + available; - unk_0x18 = offset; + cacheWorkspaceOffset = offset; } return true; } diff --git a/libs/OperaWWW/include/revolution/www_api.h b/libs/OperaWWW/include/revolution/www_api.h index f3aeb844..d3f6dcc2 100644 --- a/libs/OperaWWW/include/revolution/www_api.h +++ b/libs/OperaWWW/include/revolution/www_api.h @@ -31,11 +31,11 @@ typedef int (*WWWSurfaceInitFn)(int w, int h, u32 rowSize, int, void* rasterBuf) typedef int (*WWWSurfaceSetFlushCallbackFn)(void (*FlushCallback)(WWWRect*, int), int); typedef void (*WWWSurfaceAddFontFn)(const char*); typedef void (*WWWSurfaceUpdateScreenFn)(u32); -typedef void (*WWWSurfaceKeyboardEvtFn)(WWWKeyBtnCmd cmd, WWWKeySym sym, u32 unk); -typedef void (*WWWSurfaceMouseEvtFn)(WWWMouseCmd cmd, int x, int y, WWWMouseAttrib attrib, u32 unkA, u32 unkB); +typedef void (*WWWSurfaceKeyboardEvtFn)(WWWKeyBtnCmd cmd, WWWKeySym sym, u32 keyboardOptions); +typedef void (*WWWSurfaceMouseEvtFn)(WWWMouseCmd cmd, int x, int y, WWWMouseAttrib attrib, u32 button, u32 mouseOptions); typedef void (*WWWCommitImeFn)(int imeID, const char* str); -typedef void (*WWWUpdateImeFn)(int imeID, const char* str, u32 unk); +typedef void (*WWWUpdateImeFn)(int imeID, const char* str, u32 updateOptions); typedef BOOL (*WWWNotifyCallbackFn)(WWWHandle* wwwBrowser, WWWHandlewindow* wwwWindow, WWWEvent event, WWWHandleEventData* eventData); typedef void (*WWWCreateBrowserFn)(WWWHandle** browser, WWWNotifyCallbackFn notifyCallback, const char** fonts, const char* arc); diff --git a/libs/RVL_SDK/include/private/es.h b/libs/RVL_SDK/include/private/es.h index 51da855c..bdf35780 100644 --- a/libs/RVL_SDK/include/private/es.h +++ b/libs/RVL_SDK/include/private/es.h @@ -10,7 +10,7 @@ extern "C" { ESError ES_InitLib(); -ESError ES_ImportTicket(ESTicket* ticket, void* certs, u32 certSize, void* crls, u32 crlSize, int unknown); +ESError ES_ImportTicket(ESTicket* ticket, void* certs, u32 certSize, void* crls, u32 crlSize, int transferMode); ESError ES_ImportBoot(ESTicket* ticket, void* certs, u32 certSize, void* tmd, u32 tmdSize, void* tmdCerts, u32 tmdCertSize, void* crls, u32 crlSize, void* app, u32 appSize); @@ -20,7 +20,7 @@ ESError ES_GetTmdSizeFromView(ESTmdView* tmd, u32* tmdSize); ESError ES_GetDeviceId(ESDeviceId* deviceId); -ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, void* crls, u32 crlSize, int unknown0, int unknown1); +ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, void* crls, u32 crlSize, int importMode, int importOptions); ESFd ES_ImportContentBegin(ESTitleId titleId, ESContentId contentId); ESError ES_ImportContentData(ESFd fd, void* data, u32 dataSize); ESError ES_ImportContentEnd(ESFd fd); @@ -60,7 +60,7 @@ ESError ES_GetDeviceCert(void* deviceCert); ESError ES_DiGetTmdView(ESTitleMeta* tmd, u32 tmdSize, ESTmdView* tmdView, u32* tmdViewSize); ESError ES_ExportTitleInit(ESTitleId titleId, ESDeviceId deviceId, ESTicketId ticketId, void* certs, u32 certSize, void* crls, u32 crlSize, - int unknown, void* ticket, void* tmd, u32 tmdSize); + int transferMode, void* ticket, void* tmd, u32 tmdSize); ESError ES_ExportContentBegin(ESTitleId titleId, ESContentId contentId); ESError ES_ExportContentData(ESFd fd, void* data, u32 dataSize); ESError ES_ExportContentEnd(ESFd fd); diff --git a/libs/RVL_SDK/include/private/es/types.h b/libs/RVL_SDK/include/private/es/types.h index 31e94792..b57747b0 100644 --- a/libs/RVL_SDK/include/private/es/types.h +++ b/libs/RVL_SDK/include/private/es/types.h @@ -142,7 +142,7 @@ typedef struct ESTicketView { u8 license; // 0x24 ESTicketReserved reserved; // 0x25 - u8 unk_0x55; + u8 reservedBeforeContentMask; ESContentMask cidxMask; // 0x56 ESLpEntryLimits limits; // 0x98 } ESTicketView; @@ -173,7 +173,7 @@ typedef struct ESTicket { ESTicketReserved reserved; // 0x1F1 - u8 unk_0x221; // 0x221 + u8 reservedBeforeContentMask; // 0x221 ESContentMask cidxMask; // 0x222 ESLpEntry limits[ES_LIMIT_MAX]; // 0x264 } ESTicket; diff --git a/libs/RVL_SDK/include/private/os/OSBootInfo2.h b/libs/RVL_SDK/include/private/os/OSBootInfo2.h index c6eb65a2..736fae88 100644 --- a/libs/RVL_SDK/include/private/os/OSBootInfo2.h +++ b/libs/RVL_SDK/include/private/os/OSBootInfo2.h @@ -16,8 +16,8 @@ typedef struct OSBootInfo2 { u32 trackLocation; // 0x10 u32 trackSize; // 0x14 u32 countryCode; // 0x18 - u32 unk_0x1C; - u32 unk_0x20; + u32 reservedCountryWord; + u32 reservedPadWord; u32 padSpec; // 0x24 u32 codeLimit; // 0x28 u32 simulatedMem2Size; // 0x2C diff --git a/libs/RVL_SDK/include/private/os/OSBootInfo3.h b/libs/RVL_SDK/include/private/os/OSBootInfo3.h index 47b9b114..a52b00c9 100644 --- a/libs/RVL_SDK/include/private/os/OSBootInfo3.h +++ b/libs/RVL_SDK/include/private/os/OSBootInfo3.h @@ -9,9 +9,9 @@ extern "C" { typedef struct OSBootInfo3 { u32 countryCode; // 0x00 - u8 unk_0x04[0x0C]; + u8 reservedCountryData[0x0C]; u8 parentalControlFlags[16]; // 0x10 - u8 unk_0x14[0x1FDC]; + u8 reservedConfiguration[0x1FDC]; u32 magic; // 0x1FFC } OSBootInfo3; diff --git a/libs/RVL_SDK/include/private/sc.h b/libs/RVL_SDK/include/private/sc.h index 1220266e..46af9d4c 100644 --- a/libs/RVL_SDK/include/private/sc.h +++ b/libs/RVL_SDK/include/private/sc.h @@ -109,7 +109,7 @@ typedef struct SCControl { } SCControl; typedef struct SCItem { - char unk_0x00[0x8]; + char reserved[0x8]; u8 primType; // 0x08 u8 arrayType; // 0x09 diff --git a/libs/RVL_SDK/include/private/wpad/WPADInternal.h b/libs/RVL_SDK/include/private/wpad/WPADInternal.h index 810ebfaf..c043a6d0 100644 --- a/libs/RVL_SDK/include/private/wpad/WPADInternal.h +++ b/libs/RVL_SDK/include/private/wpad/WPADInternal.h @@ -200,9 +200,9 @@ typedef struct WPADCB { u8 devType; // 0x8C1 u8 devMode; // 0x8C2 s8 devHandle; // 0x8C3 - s32 unk_0x8C4; + s32 reservedConnection; u8 rxBufIndex; // 0x8C8 - s8 unk_0x8C9; + s8 reservedReceive; u8 defaultDpdSize; // 0x8CA u8 currentDpdCommand; // 0x8CB u8 pendingDpdCommand; // 0x8CC @@ -234,7 +234,7 @@ typedef struct WPADCB { u32 wmReadAddress; // 0x978 int wmReadHadError; // 0x97C u16 wmReadLength; // 0x980 - s8 unk_0x982; + s8 reservedRead; u8 radioSensitivity; // 0x983 u16 copyOutCount; // 0x984 u8 sleeping; // 0x986 @@ -244,12 +244,12 @@ typedef struct WPADCB { u8 encStatus; // 0x98D u8 continuous; // 0x98E - u8 unk_0x98F[0x9A0 - 0x990]; + u8 reserved[0x9A0 - 0x990]; } WPADCB; typedef struct WPADStorage { WPADCB controllers[WPAD_MAX_CONTROLLERS]; - u8 unk_0x26C0[0x48]; + u8 reserved[0x48]; } WPADStorage; extern WPADStorage _wpd; diff --git a/libs/RVL_SDK/include/private/wpad/WPADMem.h b/libs/RVL_SDK/include/private/wpad/WPADMem.h index 7e73acad..a83c402c 100644 --- a/libs/RVL_SDK/include/private/wpad/WPADMem.h +++ b/libs/RVL_SDK/include/private/wpad/WPADMem.h @@ -20,10 +20,10 @@ typedef enum { } WPADExtRegType; typedef struct WPADMemBlock { - int unk_0x00; // 0x00 - int unk_0x04; // 0x04 - s16 unk_0x08; // 0x08 - int unk_0x0C; // 0x0C + int reserved0; // 0x00 + int reserved1; // 0x04 + s16 reserved2; // 0x08 + int reserved3; // 0x0C WPADCallback callback; // 0x10 } WPADMemBlock; @@ -33,7 +33,7 @@ typedef struct WPADGameInfo { char gameID[4]; // 0x2A u8 gameType; // 0x2E u8 checksum; // 0x2F - u8 UNK_0x30[8]; + u8 reserved[8]; } WPADGameInfo; extern WPADMemBlock _wmb[WPAD_MAX_CONTROLLERS]; diff --git a/libs/RVL_SDK/include/private/wud/WUDInternal.h b/libs/RVL_SDK/include/private/wud/WUDInternal.h index d32226a4..3350554c 100644 --- a/libs/RVL_SDK/include/private/wud/WUDInternal.h +++ b/libs/RVL_SDK/include/private/wud/WUDInternal.h @@ -99,7 +99,7 @@ typedef enum { WUD_STATE_INIT_GET_DEV_INFO = 2, WUD_STATE_INIT_DONE = 3, WUD_STATE_INIT_INITIALIZED = 4, - WUD_STATE_INIT_UNK5 = 5, + WUD_STATE_INIT_BLUETOOTH_ENABLED = 5, WUD_STATE_INIT_ERROR = 255, } WUDInitState; @@ -128,9 +128,9 @@ struct WUDDevInfoList { typedef struct WUDDiscResp { BD_ADDR devAddr; // 0x00 char devName[64]; // 0x06 - u8 UNK_0x46[0xBA]; + u8 reservedBeforeServices[0xBA]; tBTA_SERVICE_MASK services; // 0x100 - u8 UNK_0x104[0x4]; + u8 reserved[0x4]; } WUDDiscResp; typedef struct WUDPatchCmd { diff --git a/libs/RVL_SDK/include/private/wud/WUDTypes.h b/libs/RVL_SDK/include/private/wud/WUDTypes.h index b5b65f0e..296f8ea9 100644 --- a/libs/RVL_SDK/include/private/wud/WUDTypes.h +++ b/libs/RVL_SDK/include/private/wud/WUDTypes.h @@ -69,9 +69,9 @@ struct WUDDevInfo { UINT8 appID; // 0x58 u8 status; // 0x59 - s8 UNK_0x5A; // 0x5A - u8 UNK_0x5B; // 0x5B - u8 UNK_0x5C; // 0x5C + s8 pinReplied; // 0x5A + u8 syncMode; // 0x5B + u8 linkKeyState; // 0x5C tBTA_HH_ATTR_MASK hhAttrMask; // 0x5E }; diff --git a/libs/RVL_SDK/include/revolution/fa.h b/libs/RVL_SDK/include/revolution/fa.h index a50f0976..77e4a364 100644 --- a/libs/RVL_SDK/include/revolution/fa.h +++ b/libs/RVL_SDK/include/revolution/fa.h @@ -24,11 +24,11 @@ FAError FAUnmount(s8 drive, u32 force); FAError FAGetdev(s8 drive, FADevInf* data); -FAError FAFormat(s8 drive, u32 unk); +FAError FAFormat(s8 drive, u32 mode); FAError FAErrnum(); -FAFILE* FACreate(const char* fileName, int unk); +FAFILE* FACreate(const char* fileName, int mode); FAFILE* FAFopen(const char* fileName, const char* mode); size_t FAFread(void* buffer, size_t size, size_t count, FAFILE* stream); @@ -45,7 +45,7 @@ FAError FAFclose(FAFILE* stream); FAError FARemove(const char* fileName); -FAError FACreatedir(const char* dirName, s32 unk, FADta* dta); +FAError FACreatedir(const char* dirName, s32 mode, FADta* dta); #ifdef __cplusplus } diff --git a/libs/RVL_SDK/include/revolution/fa/types.h b/libs/RVL_SDK/include/revolution/fa/types.h index 423762f9..813dbea3 100644 --- a/libs/RVL_SDK/include/revolution/fa/types.h +++ b/libs/RVL_SDK/include/revolution/fa/types.h @@ -199,7 +199,7 @@ enum { #define FA_INSERTED(driveTable) (driveTable.stat & FA_DRV_TBL_STAT_INSERTED) typedef struct FAFileInfo { - u8 unknown[32]; + u8 fileInfoData[32]; } FAFileInfo; /* Unsure; This were copied from VF */ @@ -244,7 +244,7 @@ typedef struct FAFileStat { } FAFileStat; enum { - FA_FILE_UNK_1 = (1 << 1), + FA_FILE_STAT_HIDDEN = (1 << 1), FA_FILE_STAT_DIR = (1 << 4) }; diff --git a/libs/RVL_SDK/include/revolution/kbd.h b/libs/RVL_SDK/include/revolution/kbd.h index 047b045c..baa4892e 100644 --- a/libs/RVL_SDK/include/revolution/kbd.h +++ b/libs/RVL_SDK/include/revolution/kbd.h @@ -35,7 +35,7 @@ typedef struct _KBDKeyEvent { u8 key; u32 flags; #else - u8 unk_0x00[32]; + u8 eventData[32]; #endif } KBDKeyEvent; @@ -43,7 +43,7 @@ typedef struct _KBDDevEvent { #ifdef TIHKBMANAGER_IMPLEMENTATION u8 device; #else - u8 unk_0x00[32]; + u8 eventData[32]; #endif } KBDDevEvent; diff --git a/libs/RVL_SDK/include/revolution/os.h b/libs/RVL_SDK/include/revolution/os.h index cba0d0b8..3d5e25e4 100644 --- a/libs/RVL_SDK/include/revolution/os.h +++ b/libs/RVL_SDK/include/revolution/os.h @@ -23,7 +23,7 @@ extern "C" { #define OS_CONSOLE_RETAIL (OS_CONSOLE_MASK_RVL + 0x0021) #define OS_CONSOLE_RETAIL_RVA (OS_CONSOLE_MASK_RVL + 0x0100) -#define OS_CONSOLE_UNK (OS_CONSOLE_MASK_DEV + 0x0002) +#define OS_CONSOLE_DEFAULT_DEV (OS_CONSOLE_MASK_DEV + 0x0002) #define OS_CONSOLE_RVL_EMU (OS_CONSOLE_MASK_DEV + 0x0008) #define OS_CONSOLE_NDEV_1_0 (OS_CONSOLE_MASK_DEV + 0x0010) #define OS_CONSOLE_NDEV_1_1 (OS_CONSOLE_MASK_DEV + 0x0011) diff --git a/libs/RVL_SDK/include/revolution/wpad.h b/libs/RVL_SDK/include/revolution/wpad.h index b0d34c82..3db2c4bb 100644 --- a/libs/RVL_SDK/include/revolution/wpad.h +++ b/libs/RVL_SDK/include/revolution/wpad.h @@ -140,7 +140,7 @@ enum { WPAD_SPEAKER_MUTE, WPAD_SPEAKER_UNMUTE, WPAD_SPEAKER_PLAY, - WPAD_SPEAKER_UNK5 + WPAD_SPEAKER_ON_ALTERNATE }; enum { diff --git a/libs/RVL_SDK/src/card/CARDUnlock.c b/libs/RVL_SDK/src/card/CARDUnlock.c index baacea89..2f4a1a54 100644 --- a/libs/RVL_SDK/src/card/CARDUnlock.c +++ b/libs/RVL_SDK/src/card/CARDUnlock.c @@ -334,7 +334,7 @@ static void DoneCallback(void* _task) { s32 rlen; u32 rshift; - u8 unk; + u8 cardStatus; u32 wk, wk1; u32 Ans2; @@ -383,14 +383,14 @@ static void DoneCallback(void* _task) { return; } - result = __CARDReadStatus(chan, &unk); + result = __CARDReadStatus(chan, &cardStatus); if (!EXIProbe(chan)) { EXIUnlock(chan); __CARDMountCallback(chan, CARD_RESULT_NOCARD); return; } - if (result == CARD_RESULT_READY && !(unk & 0x40)) { + if (result == CARD_RESULT_READY && !(cardStatus & 0x40)) { EXIUnlock(chan); result = CARD_RESULT_IOERROR; } diff --git a/libs/RVL_SDK/src/es/es.c b/libs/RVL_SDK/src/es/es.c index 9034e712..aa50301f 100644 --- a/libs/RVL_SDK/src/es/es.c +++ b/libs/RVL_SDK/src/es/es.c @@ -93,7 +93,7 @@ out: return ret; } -ESError ES_ImportTicket(ESTicket* ticket, void* certs, u32 certSize, void* crls, u32 crlSize, int unknown) { +ESError ES_ImportTicket(ESTicket* ticket, void* certs, u32 certSize, void* crls, u32 crlSize, int transferMode) { DECLARE_ES_WORK; IOSIoVector* vec = (IOSIoVector*)AT_ES_WORK(0xD0); @@ -124,7 +124,7 @@ ESError ES_ImportTicket(ESTicket* ticket, void* certs, u32 certSize, void* crls, vec[2].base = (u8*)crls; vec[2].length = crlSize; - if (unknown == 0) { + if (transferMode == 0) { ret = IOS_Ioctlv(__esFd, ES_IOCTLV_IMPORT_TICKET, 3, 0, vec); goto out; } @@ -232,11 +232,11 @@ ESError ES_GetDeviceId(ESDeviceId* deviceId) { return ret; } -ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, void* crls, u32 crlSize, int unknown0, int unknown1) { +ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, void* crls, u32 crlSize, int importMode, int importOptions) { DECLARE_ES_WORK; IOSIoVector* vec = (IOSIoVector*)AT_ES_WORK(0xD0); - int* pUnknown = (int*)AT_ES_WORK(0x00); + int* pImportOptions = (int*)AT_ES_WORK(0x00); ESError ret; @@ -248,12 +248,12 @@ ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, vo return ES_ERR_INVALID; } - switch (unknown0) { + switch (importMode) { case 0: { if (tmd == NULL || tmdSize == 0 || certs == NULL || certSize == 0) { return ES_ERR_INVALID; } - *pUnknown = unknown1; + *pImportOptions = importOptions; vec[0].base = (u8*)tmd; vec[0].length = tmdSize; @@ -264,8 +264,8 @@ ESError ES_ImportTitleInit(void* tmd, u32 tmdSize, void* certs, u32 certSize, vo vec[2].base = (u8*)crls; vec[2].length = crlSize; - vec[3].base = (u8*)pUnknown; - vec[3].length = sizeof(*pUnknown); + vec[3].base = (u8*)pImportOptions; + vec[3].length = sizeof(*pImportOptions); ret = IOS_Ioctlv(__esFd, ES_IOCTLV_IMPORT_TITLE_0, 4, 0, vec); return ret; @@ -1120,7 +1120,7 @@ ESError ES_DiGetTmdView(ESTitleMeta* tmd, u32 tmdSize, ESTmdView* tmdView, u32* } ESError ES_ExportTitleInit(ESTitleId titleId, ESDeviceId deviceId, ESTicketId ticketId, void* certs, u32 certSize, void* crls, u32 crlSize, - int unknown, void* ticket, void* tmd, u32 tmdSize) { + int transferMode, void* ticket, void* tmd, u32 tmdSize) { DECLARE_ES_WORK; IOSIoVector* vec = (IOSIoVector*)AT_ES_WORK(0xD0); @@ -1136,7 +1136,7 @@ ESError ES_ExportTitleInit(ESTitleId titleId, ESDeviceId deviceId, ESTicketId ti return ES_ERR_INVALID; } - switch (unknown) { + switch (transferMode) { case 2: { // @bug: Value is not returned. if (tmd == NULL || tmdSize == 0) { diff --git a/libs/RVL_SDK/src/os/OS.c b/libs/RVL_SDK/src/os/OS.c index 3cb467e8..97ec84dc 100644 --- a/libs/RVL_SDK/src/os/OS.c +++ b/libs/RVL_SDK/src/os/OS.c @@ -201,7 +201,7 @@ u32 OSGetConsoleType() { OSBootInfo* bootInfo = (OSBootInfo*)BootInfo; if (bootInfo == NULL || bootInfo->consoleType == 0) { - return OS_CONSOLE_UNK; + return OS_CONSOLE_DEFAULT_DEV; } hwRev = __OSGetHollywoodRev(); diff --git a/libs/RVL_SDK/src/rso/RSOLink.c b/libs/RVL_SDK/src/rso/RSOLink.c index 0f5597ae..c4e6bf68 100644 --- a/libs/RVL_SDK/src/rso/RSOLink.c +++ b/libs/RVL_SDK/src/rso/RSOLink.c @@ -31,11 +31,11 @@ extern char _f_sbss2[]; #define S_PPC_BSS 7 #define S_PPC_SDATA 8 #define S_PPC_SDATA2 9 -#define S_PPC_SDATA_UNK 10 +#define S_PPC_SDATA_ZERO_BASE 10 #define S_PPC_SBSS 11 #define S_PPC_SBSS2 12 -#define S_PPC_SBSS_UNK 13 -#define S_PPC_241_UNK 241 +#define S_PPC_SBSS_ZERO_BASE 13 +#define S_PPC_INVALID_SDA21 241 /* Relocation types */ @@ -349,11 +349,11 @@ BOOL RSOStaticLocateObject(void* newModule) { si->offset = (u32)_f_sbss2; break; } - case S_PPC_SDATA_UNK: { + case S_PPC_SDATA_ZERO_BASE: { si->offset = 0; break; } - case S_PPC_SBSS_UNK: { + case S_PPC_SBSS_ZERO_BASE: { si->offset = 0; break; } @@ -834,13 +834,13 @@ static void RSORelocateSmallDataSection(RSOObjectHeader* rsoImp, int impIndex, R } break; } - case S_PPC_SDATA_UNK: - case S_PPC_SBSS_UNK: { + case S_PPC_SDATA_ZERO_BASE: + case S_PPC_SBSS_ZERO_BASE: { *p = (u8)(*p & ~31); base = 0; break; } - case S_PPC_241_UNK: { + case S_PPC_INVALID_SDA21: { OSReport("ERROR: incorrect R_PPC_EMB_SDA21 data.\n"); break; } diff --git a/libs/RVL_SDK/src/usb/usb.c b/libs/RVL_SDK/src/usb/usb.c index 849adb21..aa610bf6 100644 --- a/libs/RVL_SDK/src/usb/usb.c +++ b/libs/RVL_SDK/src/usb/usb.c @@ -354,7 +354,7 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 IOSIoVector* vectors; u8* requestTypeWork; u8* requestWork; - u8* unkWork; + u8* controlOptionsWork; u16* valueWork; u16* indexWork; u16* lengthWork; @@ -369,12 +369,12 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 vectors = (IOSIoVector*)IOSAlloc(0xE0); requestTypeWork = (u8*)IOSAlloc(DEFAULT_ALIGN); requestWork = (u8*)IOSAlloc(DEFAULT_ALIGN); - unkWork = (u8*)IOSAlloc(DEFAULT_ALIGN); + controlOptionsWork = (u8*)IOSAlloc(DEFAULT_ALIGN); valueWork = (u16*)IOSAlloc(DEFAULT_ALIGN); indexWork = (u16*)IOSAlloc(DEFAULT_ALIGN); lengthWork = (u16*)IOSAlloc(DEFAULT_ALIGN); - if (requestTypeWork == NULL || requestWork == NULL || unkWork == NULL || valueWork == NULL || indexWork == NULL || lengthWork == NULL || + if (requestTypeWork == NULL || requestWork == NULL || controlOptionsWork == NULL || valueWork == NULL || indexWork == NULL || lengthWork == NULL || vectors == NULL) { USB_ERR("Ctrl Msg: Not enough memory\n"); result = IPC_RESULT_ALLOC_FAILED; @@ -386,7 +386,7 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 *valueWork = (value & 0xFF) << 8 | value >> 8 & 0xFF; *indexWork = (index & 0xFF) << 8 | index >> 8 & 0xFF; *lengthWork = (length & 0xFF) << 8 | length >> 8 & 0xFF; - *unkWork = 0; + *controlOptionsWork = 0; // Input vector 1: bmRequestType vectors[0].base = requestTypeWork; @@ -409,7 +409,7 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 vectors[4].length = sizeof(u16); // Input vector 6: Unknown data - vectors[5].base = unkWork; + vectors[5].base = controlOptionsWork; vectors[5].length = sizeof(u8); // Output vector 1: Transfer buffer @@ -418,7 +418,7 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 DCFlushRange(requestTypeWork, DEFAULT_ALIGN); DCFlushRange(requestWork, DEFAULT_ALIGN); - DCFlushRange(unkWork, DEFAULT_ALIGN); + DCFlushRange(controlOptionsWork, DEFAULT_ALIGN); DCFlushRange(valueWork, DEFAULT_ALIGN); DCFlushRange(indexWork, DEFAULT_ALIGN); DCFlushRange(lengthWork, DEFAULT_ALIGN); @@ -449,7 +449,7 @@ static IOSError __CtrlMsgInt(s32 fd, u8 requestType, u8 request, u16 value, u16 block->clean[2] = valueWork; block->clean[3] = indexWork; block->clean[4] = lengthWork; - block->clean[5] = unkWork; + block->clean[5] = controlOptionsWork; block->clean[6] = vectors; block->msg.buffer = buffer; @@ -471,7 +471,7 @@ end: IOSFree(valueWork); IOSFree(indexWork); IOSFree(lengthWork); - IOSFree(unkWork); + IOSFree(controlOptionsWork); IOSFree(vectors); // Async callback automatically freed the memory marked in block->clean diff --git a/libs/RVL_SDK/src/wpad/WPAD.c b/libs/RVL_SDK/src/wpad/WPAD.c index 55d0bcd0..99be592c 100644 --- a/libs/RVL_SDK/src/wpad/WPAD.c +++ b/libs/RVL_SDK/src/wpad/WPAD.c @@ -730,8 +730,8 @@ static void __ClearControlBlock(s32 chan) { p->lastControllerDataUpdate = __OSGetSystemTime(); p->lastReportSendTime = __OSGetSystemTime(); p->suppressDisconnect = 0; - p->unk_0x8C9 = 0; - p->unk_0x8C4 = 0; + p->reservedReceive = 0; + p->reservedConnection = 0; p->wmReadDataPtr = NULL; p->wmReadAddress = 0; p->wmReadLength = 0; @@ -743,7 +743,7 @@ static void __ClearControlBlock(s32 chan) { p->radioQuality = WPAD_RADIO_QUALITY_BAD; p->radioQualityOkMs = 0; p->audioFrames = 0; - p->unk_0x982 = 0; + p->reservedRead = 0; p->radioSensitivity = 0; p->copyOutCount = 0; p->sleeping = TRUE; @@ -777,10 +777,10 @@ static void __ClearControlBlock(s32 chan) { _extCnt[chan] = 0; - _wmb[chan].unk_0x00 = 0; - _wmb[chan].unk_0x04 = 0; - _wmb[chan].unk_0x08 = 0; - _wmb[chan].unk_0x0C = 0; + _wmb[chan].reserved0 = 0; + _wmb[chan].reserved1 = 0; + _wmb[chan].reserved2 = 0; + _wmb[chan].reserved3 = 0; _wmb[chan].callback = NULL; _rumbleCnt[chan] = 0; @@ -1774,7 +1774,7 @@ s32 WPADControlSpeaker(s32 chan, u32 command, WPADCallback pCallback) { } else { switch (command) { case WPAD_SPEAKER_ON: - case WPAD_SPEAKER_UNK5: { + case WPAD_SPEAKER_ON_ALTERNATE: { enabled = OSDisableInterrupts(); if (__CanPushCmdQueue(&p->stdCmdQueue, 7)) { diff --git a/libs/RVL_SDK/src/wud/WUD.c b/libs/RVL_SDK/src/wud/WUD.c index 6ea203ea..fa97023a 100644 --- a/libs/RVL_SDK/src/wud/WUD.c +++ b/libs/RVL_SDK/src/wud/WUD.c @@ -388,7 +388,7 @@ static u8 WUDiExistedDevice() { pWork->status = 1; - switch (pWork->UNK_0x5B) { + switch (pWork->syncMode) { case 0: case 2: case 4: @@ -398,7 +398,7 @@ static u8 WUDiExistedDevice() { WUDiRemoveDevice(pWork->devAddr); return WUD_STATE_SYNC_PREPARE_FOR_UNKNOWN_DEVICE; } else { - pWork->UNK_0x5B = 4; + pWork->syncMode = 4; } break; @@ -418,7 +418,7 @@ static u8 WUDiUnknownDevice() { WUDDevInfo* pWork = &_work; pWork->status = 1; - pWork->UNK_0x5B = _wcb.syncType == WUD_SYNC_TYPE_STANDARD ? 0 : 1; + pWork->syncMode = _wcb.syncType == WUD_SYNC_TYPE_STANDARD ? 0 : 1; WUD_BDCPY(pWork->devAddr, _discResp.devAddr); memcpy(pWork->conf.devName, _discResp.devName, sizeof(_discResp.devName)); @@ -445,12 +445,12 @@ static int WUDiSetPinCode(BD_ADDR addr) { pAddr = _wcb.syncType == WUD_SYNC_TYPE_STANDARD ? _wcb.hostAddr : addr; - if (_work.UNK_0x5B == 4) { + if (_work.syncMode == 4) { WUDiRemoveDevice(_work.devAddr); btm_remove_acl(_work.devAddr); } - _work.UNK_0x5A = 1; + _work.pinReplied = 1; ReverseAddr(pin, pAddr); BTA_DmPinReply(addr, TRUE, BD_ADDR_LEN, pin); @@ -572,7 +572,7 @@ static u8 WUDiChangeSimpleToStandard() { static u8 WUDiRegisterSyncDevice() { WUDSyncState nextState; - switch (_work.UNK_0x5B) { + switch (_work.syncMode) { case 1: { nextState = WUD_STATE_SYNC_VIRGIN_SIMPLE; break; @@ -973,15 +973,15 @@ static WUDStackState WUDiClearUnregisteredDevice() { continue; } - if (pInfo->UNK_0x5C == 1) { + if (pInfo->linkKeyState == 1) { p->linkKeyState = WUD_STATE_LINK_KEY_DELETING; BTM_DeleteStoredLinkKey(pInfo->devAddr, WUDStoredLinkKeyCallback); - pInfo->UNK_0x5C = 0; + pInfo->linkKeyState = 0; return WUD_STATE_STACK_CHECK_DEVICE_INFO; } - if (pInfo->UNK_0x5C != 3) { + if (pInfo->linkKeyState != 3) { WUDiRemoveDevInfo(pInfo->devAddr); } } @@ -1106,8 +1106,8 @@ static WUDInitState WUDiGetRegisteredDevice() { memcpy(&pInfo->conf, &_scArray.devices[i].info, sizeof(SC_BT_DEV_INFO)); pInfo->status = 1; - pInfo->UNK_0x5B = 0; - pInfo->UNK_0x5C = 2; + pInfo->syncMode = 0; + pInfo->linkKeyState = 2; pInfo->subclass = 2; pInfo->hhAttrMask = 0x8074; pInfo->appID = 3; @@ -1149,8 +1149,8 @@ static WUDInitState WUDiGetRegisteredDevice() { memcpy(&pInfo->linkKey, &_spArray.devices[i].linkKey, sizeof(LINK_KEY)); pInfo->status = 1; - pInfo->UNK_0x5B = 1; - pInfo->UNK_0x5C = 3; + pInfo->syncMode = 1; + pInfo->linkKeyState = 3; if (WUD_DEV_NAME_IS_CNT_01(pInfo->conf.devName)) { pInfo->subclass = 2; @@ -1186,7 +1186,7 @@ static WUDInitState WUDiInitComplete() { p->libStatus = WUD_LIB_STATUS_1; BTA_EnableBluetooth(WUDSecurityCallback); - return WUD_STATE_INIT_UNK5; + return WUD_STATE_INIT_BLUETOOTH_ENABLED; } static void InitHandler() { @@ -2025,7 +2025,7 @@ void WUDiRegisterDevice(BD_ADDR addr) { BTA_HhAddDev(pInfo->devAddr, pInfo->hhAttrMask, pInfo->subclass, pInfo->appID, desc); } - if (pInfo->UNK_0x5B == 0 || pInfo->UNK_0x5B == 4 || pInfo->UNK_0x5B == 2 || pInfo->UNK_0x5B == 5) { + if (pInfo->syncMode == 0 || pInfo->syncMode == 4 || pInfo->syncMode == 2 || pInfo->syncMode == 5) { p->devNums++; } else { p->devSmpNums++; @@ -2059,7 +2059,7 @@ void WUDiRemoveDevice(BD_ADDR addr) { status = BTA_DmRemoveDevice(pInfo->devAddr); DEBUGPrint("BTA_DmRemoveDevice(): %d\n", status); - if (pInfo->UNK_0x5B == 0 || pInfo->UNK_0x5B == 2 || pInfo->UNK_0x5B == 4 || pInfo->UNK_0x5B == 5) { + if (pInfo->syncMode == 0 || pInfo->syncMode == 2 || pInfo->syncMode == 4 || pInfo->syncMode == 5) { p->devNums--; } else { p->devSmpNums--; @@ -2483,7 +2483,7 @@ BOOL WUDIsBusy() { enabled = OSDisableInterrupts(); if (p->syncState == WUD_STATE_SYNC_START && p->deleteState == WUD_STATE_DELETE_START && p->stackState == WUD_STATE_STACK_INITIALIZED && - p->initState == WUD_STATE_INIT_UNK5) { + p->initState == WUD_STATE_INIT_BLUETOOTH_ENABLED) { OSRestoreInterrupts(enabled); return FALSE; } @@ -2805,7 +2805,7 @@ void WUDStoredLinkKeyCallback(void* p1) { } if (pInfo) { - pInfo->UNK_0x5C = 1; + pInfo->linkKeyState = 1; pInfo->status = 1; WUD_BDCPY(pInfo->devAddr, pPair->bd_addr); @@ -2815,8 +2815,8 @@ void WUDStoredLinkKeyCallback(void* p1) { WUD_BDCPY(pInfo->devAddr, pPair->bd_addr); memcpy(pInfo->linkKey, pPair->link_key, LINK_KEY_LEN); - if (pInfo->UNK_0x5C == 2) { - pInfo->UNK_0x5C = 3; + if (pInfo->linkKeyState == 2) { + pInfo->linkKeyState = 3; } WUD_BDCPY(p->pairAddr, pPair->bd_addr); diff --git a/libs/RVL_SDK/src/wud/WUDHidHost.c b/libs/RVL_SDK/src/wud/WUDHidHost.c index 43bbff12..267e8e34 100644 --- a/libs/RVL_SDK/src/wud/WUDHidHost.c +++ b/libs/RVL_SDK/src/wud/WUDHidHost.c @@ -60,7 +60,7 @@ void WUDHidHostCallback(tBTA_HH_EVT event, tBTA_HH* pData) { _dev_handle_queue_size[pConn->handle] = 0; _dev_handle_notack_num[pConn->handle] = 0; - if (pInfo->UNK_0x5B == 3 || pInfo->UNK_0x5B == 1) { + if (pInfo->syncMode == 3 || pInfo->syncMode == 1) { WUDiMoveTopSmpDevInfoPtr(pInfo); } else { WUDiMoveTopStdDevInfoPtr(pInfo); @@ -88,7 +88,7 @@ void WUDHidHostCallback(tBTA_HH_EVT event, tBTA_HH* pData) { if (WUDiGetDevInfo(pConn->bda) && pConn->status == BTA_HH_ERR_AUTH_FAILED) { pInfo = WUDiGetDevInfo(pConn->bda); if (pInfo) { - if (pInfo->UNK_0x5B == 3 || pInfo->UNK_0x5B == 1) { + if (pInfo->syncMode == 3 || pInfo->syncMode == 1) { WUDiMoveBottomSmpDevInfoPtr(pInfo); } else { WUDiMoveBottomStdDevInfoPtr(pInfo); @@ -114,7 +114,7 @@ void WUDHidHostCallback(tBTA_HH_EVT event, tBTA_HH* pData) { pInfo = WUDiGetDevInfo(_dev_handle_to_bda[pCbData->handle]); if (pInfo != NULL) { - if (pInfo->UNK_0x5B == 3 || pInfo->UNK_0x5B == 1) { + if (pInfo->syncMode == 3 || pInfo->syncMode == 1) { WUDiMoveTopOfDisconnectedSmpDevice(pInfo); } else { WUDiMoveTopOfDisconnectedStdDevice(pInfo); diff --git a/libs/RevoEX/include/private/cdb/CDBAttr.h b/libs/RevoEX/include/private/cdb/CDBAttr.h index 0fbb3249..b304c68f 100644 --- a/libs/RevoEX/include/private/cdb/CDBAttr.h +++ b/libs/RevoEX/include/private/cdb/CDBAttr.h @@ -12,7 +12,7 @@ extern "C" { typedef struct _CDBAttrSignature { u8 sha1Hmac[20]; // 0x00 - u8 unk_0x14[0x1BC - 0x14]; + u8 reserved[0x1BC - 0x14]; } CDBAttrSignature; #define CDB_ATTR_BUF_MAGIC_LEN 7 diff --git a/libs/RevoEX/include/private/cdb/CDBCrypt.h b/libs/RevoEX/include/private/cdb/CDBCrypt.h index 8cad3f03..b3475b07 100644 --- a/libs/RevoEX/include/private/cdb/CDBCrypt.h +++ b/libs/RevoEX/include/private/cdb/CDBCrypt.h @@ -16,7 +16,7 @@ typedef struct _CDBCryptBuf { u32 size; // 0x3EC00 u32 offset; // 0x3EC04 BOOL allocated; // 0x3EC08 - u8 unk_0x3EC0C[0x34]; + u8 reserved[0x34]; } CDBCryptBuf; void CDBCryptBufSysInit(CDBCryptBuf* cryptBuf); diff --git a/libs/RevoEX/include/private/cdb/CDBDatabase.h b/libs/RevoEX/include/private/cdb/CDBDatabase.h index d8f8c06a..903bd5f2 100644 --- a/libs/RevoEX/include/private/cdb/CDBDatabase.h +++ b/libs/RevoEX/include/private/cdb/CDBDatabase.h @@ -10,11 +10,11 @@ extern "C" { #endif // __cplusplus typedef struct _CDBDatabasePool { - u8 unk_0x00[0x14000]; + u8 storage[0x14000]; } CDBDatabasePool; typedef struct _CDBDatabaseInstance { - u8 unk_0x00[0x3600]; + u8 storage[0x3600]; } _CDBDatabaseInstance; void CDBDatabaseInstancePoolInit(void* work); diff --git a/libs/RevoEX/include/private/cdb/CDBRecord.h b/libs/RevoEX/include/private/cdb/CDBRecord.h index d72f90db..97d7a1d3 100644 --- a/libs/RevoEX/include/private/cdb/CDBRecord.h +++ b/libs/RevoEX/include/private/cdb/CDBRecord.h @@ -17,18 +17,18 @@ typedef struct _CDBRecordFile { OSMutex mutex; BOOL used; #else - u8 unk_0x00[0x1C - 0x00]; + u8 mutexAndUseState[0x1C - 0x00]; #endif int allocFlag; // 0x1C CDBAttr attr; // 0x20 CDBBridgeFile bridgeFile; // 0x42C - u8 unk_0x434[0x438 - 0x434]; + u8 reservedBeforeKey[0x438 - 0x434]; CDBRecordKey key; // 0x438 #if defined(CDB_RECORD_IMPLEMENTATION) || defined(CDB_SYSTEM_IMPLEMENTATION) u32 database; u8 reserved[0x480 - 0x46C]; #else - u8 unk_0x468[0x480 - 0x468]; + u8 databaseStateStorage[0x480 - 0x468]; #endif } CDBRecordFile; @@ -53,7 +53,7 @@ BOOL CDBRecordKeyIsValid(CDBRecordKey* recordKey); void CDBRecordKeyInitByOnlyDate(CDBRecordKey* recordKey, CDBDate epoch); void CDBRecordKeyInitFromFileName2(CDBRecordKey* recordKey, char* keyString, char* gameCode, char* fileType); -void CDBRecordKeyInit(CDBRecordKey* recordKey, CDBDate epoch, int gameCode, u16 makerCode, int serialNumber, char* fileType, int unk); +void CDBRecordKeyInit(CDBRecordKey* recordKey, CDBDate epoch, int gameCode, u16 makerCode, int serialNumber, char* fileType, int recordLocation); void CDBRecordKeyGetKeyStr(CDBRecordKey* recordKey, char* keyString); diff --git a/libs/RevoEX/include/private/nwc24/NWC24Config.h b/libs/RevoEX/include/private/nwc24/NWC24Config.h index 34892321..ff89282f 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24Config.h +++ b/libs/RevoEX/include/private/nwc24/NWC24Config.h @@ -41,7 +41,7 @@ typedef struct NWC24ConfigData { char mailDelServerURL[128]; // 0x21C char mailTrsServerURL[128]; // 0x29C - char unk_0x31C[0x3F8 - 0x31C]; + char reserved[0x3F8 - 0x31C]; BOOL allowBootWC24Title; // 0x3F8 diff --git a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h index 0a4cf3f7..cf407c5b 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24FriendList.h +++ b/libs/RevoEX/include/private/nwc24/NWC24FriendList.h @@ -35,8 +35,8 @@ typedef struct NWC24SecretFLHeader { u32 magic; // 0x00 u32 version; // 0x04 u32 infoCount; // 0x08 - u32 unk_0x0C; - u8 unk_0x10[0x7F0]; + u32 registeredCount; + u8 reserved[0x7F0]; } NWC24SecretFLHeader; NWC24Err NWC24iInitSecretFriendList(BOOL force); diff --git a/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h b/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h index 65ed6407..ecac9533 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h +++ b/libs/RevoEX/include/private/nwc24/NWC24MsgObj.h @@ -26,12 +26,12 @@ typedef struct NWC24MsgObjPrivate { #elif defined(NWC24_MBOX_CTRL) || defined(NWC24_MSG_COMMIT) u32 headerSize; // 0x10 #else - u8 unk_0x10[0x4]; + u8 headerSizeStorage[0x4]; #endif u32 tag; // 0x14 u32 ledPattern; // 0x18 #if defined(NWC24_MBOX_CTRL) || defined(NWC24_MSG_COMMIT) - u32 unk_0x1C; + u32 crc; #endif #if defined(NWC24_MBOX_CTRL) || defined(NWC24_MSG_COMMIT) union { @@ -50,8 +50,8 @@ typedef struct NWC24MsgObjPrivate { NWC24Data toData; // 0x38 NWC24Data subject; // 0x40 NWC24Data text; // 0x48 - NWC24Data unk_0x50; - NWC24Data unk_0x58; + NWC24Data charsetData; + NWC24Data encodingData; NWC24Charset charset; // 0x60 NWC24Encoding encoding; // 0x64 NWC24Data attached[NWC24_MSG_ATTACHMENT_MAX]; // 0x68 @@ -67,7 +67,7 @@ typedef struct NWC24MsgObjPrivate { union { struct { u32 noreply : 1; - u32 unknown : 7; + u32 reservedFlags : 7; u32 delay : 8; u32 regdate : 16; }; diff --git a/libs/RevoEX/include/private/nwc24/NWC24Private.h b/libs/RevoEX/include/private/nwc24/NWC24Private.h index 89351f83..bf51b3f1 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24Private.h +++ b/libs/RevoEX/include/private/nwc24/NWC24Private.h @@ -30,7 +30,7 @@ extern struct NWC24Work { u8 recvMbcHeader[128]; // 0x1780 u8 mbcEntry[256]; // 0x1800 u8 base64Work[256]; // 0x1900 - u8 unk_0x1A00[4096]; // 0x1A00 + u8 messageWork[4096]; // 0x1A00 u8 flHead[1024]; // 0x2A00 u8 secretFlHead[2048]; // 0x2E00 diff --git a/libs/RevoEX/include/private/nwc24/NWC24Utils.h b/libs/RevoEX/include/private/nwc24/NWC24Utils.h index 5daf15d6..612eeed3 100644 --- a/libs/RevoEX/include/private/nwc24/NWC24Utils.h +++ b/libs/RevoEX/include/private/nwc24/NWC24Utils.h @@ -19,7 +19,7 @@ typedef struct NWC24Date { u8 hour; // 0x04 u8 sec; // 0x05 u8 min; // 0x06 - u8 unk_0x07; + u8 reserved; } NWC24Date; void NWC24Date_Init(NWC24Date* date); diff --git a/libs/RevoEX/include/revolution/cdb/CDBDatabase.h b/libs/RevoEX/include/revolution/cdb/CDBDatabase.h index 91808dfc..a4aede7b 100644 --- a/libs/RevoEX/include/revolution/cdb/CDBDatabase.h +++ b/libs/RevoEX/include/revolution/cdb/CDBDatabase.h @@ -42,7 +42,7 @@ CDBErr CDBDatabaseCreateRecordAtOnceEx(CDBDatabase* database, CDBRecord* record, CDBErr CDBDatabaseFindByKey(CDBDatabase* database, CDBRecord* record, CDBRecordKey* recordKey); CDBErr CDBDatabaseSearch(CDBDatabase* database, CDBDate beginDate, CDBDate endDate, CDBSearchDirection searchDirection, char* makerCode, - char* gameCode, int unk7, CDBRecordLocation recordLocation, int unk9, CDBSearchRecordCB searchRecordCB, + char* gameCode, int recordType, CDBRecordLocation recordLocation, int openRecord, CDBSearchRecordCB searchRecordCB, void* searchRecordArg); CDBErr CDBDatabaseCleanUpEmptyDirectories(CDBDatabase* database, CDBRecordLocation recordLocation); diff --git a/libs/RevoEX/include/revolution/cdb/CDBRecord.h b/libs/RevoEX/include/revolution/cdb/CDBRecord.h index 9ad06240..c3f20a2f 100644 --- a/libs/RevoEX/include/revolution/cdb/CDBRecord.h +++ b/libs/RevoEX/include/revolution/cdb/CDBRecord.h @@ -66,7 +66,7 @@ typedef struct _CDBRecord { void* cryptBuf; // 0x04 CDBRecordKey key; // 0x08 void* file; // 0x38 - u32 unk_0x3C; + u32 reserved; } CDBRecord; #define CDBKeyStrEpoch(keyString) ((char*)&keyString[offsetof(CDBRecordKey, keyStrStruct.epoch)]) diff --git a/libs/RevoEX/include/revolution/ncd/NCDTypes.h b/libs/RevoEX/include/revolution/ncd/NCDTypes.h index f06efa7d..d72e946e 100644 --- a/libs/RevoEX/include/revolution/ncd/NCDTypes.h +++ b/libs/RevoEX/include/revolution/ncd/NCDTypes.h @@ -139,7 +139,7 @@ typedef struct NCDApConfig { typedef struct NCDRakuApConfig { NCDApConfig cfg; - u32 unk_0x6c; + u32 reserved; } NCDRakuApConfig; typedef struct NCDUsbapConfig { diff --git a/libs/RevoEX/include/revolution/net/NETDigest.h b/libs/RevoEX/include/revolution/net/NETDigest.h index 84e9996e..1b50a38a 100644 --- a/libs/RevoEX/include/revolution/net/NETDigest.h +++ b/libs/RevoEX/include/revolution/net/NETDigest.h @@ -48,7 +48,7 @@ static void NETCalcMD5(void* digest, const void* input, u32 length) { /* == SHA1 == */ typedef struct NETSHA1Context { - u8 unk_0x00[0x60]; // 0x00 + u8 state[0x60]; // 0x00 } NETSHA1Context; #define NET_SHA1_DIGEST_SIZE 20 diff --git a/libs/RevoEX/include/revolution/nwc24/NWC24Dl.h b/libs/RevoEX/include/revolution/nwc24/NWC24Dl.h index 0c773f06..b3a576ab 100644 --- a/libs/RevoEX/include/revolution/nwc24/NWC24Dl.h +++ b/libs/RevoEX/include/revolution/nwc24/NWC24Dl.h @@ -78,12 +78,12 @@ typedef struct NWC24DlTask { } NWC24DlTask; typedef struct NWC24DlIterateWork { - int unk_0x00; - int unk_0x04; - int unk_0x08; - int unk_0x0C; - int unk_0x10; - int unk_0x14; + int sortMode; + int comparisonValue; + int selectedValue; + int comparisonId; + int initialized; + int valid; } NWC24DlIterateWork; NWC24Err NWC24InitDlTask(NWC24DlTask* dlTask, NWC24DLType dlType); diff --git a/libs/RevoEX/include/revolution/nwc24/NWC24Friend.h b/libs/RevoEX/include/revolution/nwc24/NWC24Friend.h index 2aec0abd..d9d4188b 100644 --- a/libs/RevoEX/include/revolution/nwc24/NWC24Friend.h +++ b/libs/RevoEX/include/revolution/nwc24/NWC24Friend.h @@ -47,7 +47,7 @@ typedef struct NWC24FriendInfo { // ??? typedef struct NWC24SecretFriendInfo { - u8 unk_0x00[0x20]; + u8 recordData[0x20]; } NWC24SecretFriendInfo; NWC24Err NWC24ReadFriendInfo(NWC24FriendInfo* info, u32 index); diff --git a/libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h b/libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h index ec77d9e4..9af710ca 100644 --- a/libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h +++ b/libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h @@ -112,13 +112,13 @@ NWC24Err NWC24ReadMsgTextEx(const NWC24MsgObj* msg, char* text, u32 textLen, con #endif NWC24Err NWC24ReadMsgAttached(const NWC24MsgObj* msg, u32 attachIndex, u8* attachData, u32 attachSize); -NWC24Err NWC24ReadMsgSubjectPublic(const NWC24MsgObj* msg, u16* subject, u32* subjectLen, NWC24EncodingRegion encRegion, u16 unk, u8* work, +NWC24Err NWC24ReadMsgSubjectPublic(const NWC24MsgObj* msg, u16* subject, u32* subjectLen, NWC24EncodingRegion encRegion, u16 alternative, u8* work, u32 workSize); -NWC24Err NWC24ReadMsgTextPublic(const NWC24MsgObj* msg, u16* text, u32* textLen, NWC24EncodingRegion encRegion, u16 unk, u8* work, u32 workSize); -NWC24Err NWC24SetMsgSubjectPublic(NWC24MsgObj* msg, const u16* subject, u32 subjectLen, NWC24EncodingRegion encRegion, u16 unk, u8* work, +NWC24Err NWC24ReadMsgTextPublic(const NWC24MsgObj* msg, u16* text, u32* textLen, NWC24EncodingRegion encRegion, u16 alternative, u8* work, u32 workSize); +NWC24Err NWC24SetMsgSubjectPublic(NWC24MsgObj* msg, const u16* subject, u32 subjectLen, NWC24EncodingRegion encRegion, u16 alternative, u8* work, u32 workSize); NWC24Err NWC24SetMsgSubjectAndTextPublic(NWC24MsgObj* msg, const u16* subject, u32 subjectLen, const u16* text, u32 textLen, - NWC24EncodingRegion encRegion, u16 unk, u8* work, u32 workSize); + NWC24EncodingRegion encRegion, u16 alternative, u8* work, u32 workSize); NWC24Err NWC24CommitMsg(NWC24MsgObj* msg); diff --git a/libs/RevoEX/include/revolution/so/SOOption.h b/libs/RevoEX/include/revolution/so/SOOption.h index df35c735..b8f2132d 100644 --- a/libs/RevoEX/include/revolution/so/SOOption.h +++ b/libs/RevoEX/include/revolution/so/SOOption.h @@ -13,7 +13,7 @@ typedef struct IPAddrEntry { u8 bcastAddr[4]; // 0x08 } IPAddrEntry; -int SOGetInterfaceOpt(void* unk, int level, int optname, void* optval, int* optlen); +int SOGetInterfaceOpt(void* interface, int level, int optname, void* optval, int* optlen); int SOSetSockOpt(int s, int level, int optname, const void* optval, int optlen); #ifdef __cplusplus diff --git a/libs/RevoEX/include/revolution/wd.h b/libs/RevoEX/include/revolution/wd.h index b2e1977e..7f46fb9b 100644 --- a/libs/RevoEX/include/revolution/wd.h +++ b/libs/RevoEX/include/revolution/wd.h @@ -84,7 +84,7 @@ typedef struct WD_Info_ { u8 channel; // 0x0E u8 initialized; // 0x0F u8 version[80]; // 0x10 - u8 unk_0x60[0x30]; // 0x60 (is it padding???) + u8 extendedInfo[0x30]; // 0x60 (is it padding???) } PACKED WD_Info; #ifdef __cplusplus diff --git a/libs/RevoEX/src/cdb/CDBDatabase.c b/libs/RevoEX/src/cdb/CDBDatabase.c index 8b418342..5d5c795a 100644 --- a/libs/RevoEX/src/cdb/CDBDatabase.c +++ b/libs/RevoEX/src/cdb/CDBDatabase.c @@ -1069,10 +1069,10 @@ CDBErr CDBDatabaseSearchYearLayer(CDBDatabase* database, CDBSearchConditions* co } -CDBErr CDBDatabaseSearch(CDBDatabase* database, CDBDate beginDate, CDBDate endDate, CDBSearchDirection searchDirection, char* makerCode, char* gameCode, int unk7, CDBRecordLocation recordLocation, int unk9, CDBSearchRecordCB searchRecordCB, void* searchRecordArg) { +CDBErr CDBDatabaseSearch(CDBDatabase* database, CDBDate beginDate, CDBDate endDate, CDBSearchDirection searchDirection, char* makerCode, char* gameCode, int recordType, CDBRecordLocation recordLocation, int openRecord, CDBSearchRecordCB searchRecordCB, void* searchRecordArg) { CDBErr result; CDBLock(); - result = CDBDatabaseSearch_(database, beginDate, endDate, searchDirection, makerCode, gameCode, (char*)unk7, recordLocation, unk9, searchRecordCB, searchRecordArg, NULL); + result = CDBDatabaseSearch_(database, beginDate, endDate, searchDirection, makerCode, gameCode, (char*)recordType, recordLocation, openRecord, searchRecordCB, searchRecordArg, NULL); CDBUnlock(); return result; } diff --git a/libs/RevoEX/src/cdb/CDBFileSystemSD.c b/libs/RevoEX/src/cdb/CDBFileSystemSD.c index 42287e60..681a0af2 100644 --- a/libs/RevoEX/src/cdb/CDBFileSystemSD.c +++ b/libs/RevoEX/src/cdb/CDBFileSystemSD.c @@ -119,7 +119,7 @@ BOOL CDBFindDataIsEndSD(CDBFindDataSD* findData) { BOOL CDBFSIsDirNameSD(char* path) { u32 i; - u32 unk; + u32 pathWork; char* driveRoots[] = { CDB_CFG_SD_VF_DRIVE_ROOT, }; diff --git a/libs/RevoEX/src/cdb/CDBRecordFile.c b/libs/RevoEX/src/cdb/CDBRecordFile.c index fa50cdeb..6222debb 100644 --- a/libs/RevoEX/src/cdb/CDBRecordFile.c +++ b/libs/RevoEX/src/cdb/CDBRecordFile.c @@ -264,22 +264,22 @@ CDBErr CDBRecordFileReadData(CDBRecord* record, void* buffer, u32 size, u32* rea CDBCryptBuf* cryptBuf = record->cryptBuf; if (cryptBuf != NULL) { - u32 unk = cryptBuf->size - cryptBuf->offset; - if (cryptBuf->size < unk) { - unk = 0; + u32 bytesToRead = cryptBuf->size - cryptBuf->offset; + if (cryptBuf->size < bytesToRead) { + bytesToRead = 0; } - if (size < unk) { - unk = size; + if (size < bytesToRead) { + bytesToRead = size; } - if (unk != 0) { - memcpy(buffer, (u8*)&cryptBuf->buffer[cryptBuf->offset], unk); - cryptBuf->offset += unk; + if (bytesToRead != 0) { + memcpy(buffer, (u8*)&cryptBuf->buffer[cryptBuf->offset], bytesToRead); + cryptBuf->offset += bytesToRead; } if (readSize != NULL) { - *readSize = unk; + *readSize = bytesToRead; } return CDB_ERROR_OK; diff --git a/libs/RevoEX/src/cdb/CDBRecordKey.c b/libs/RevoEX/src/cdb/CDBRecordKey.c index 6b65c5f5..0c763d3f 100644 --- a/libs/RevoEX/src/cdb/CDBRecordKey.c +++ b/libs/RevoEX/src/cdb/CDBRecordKey.c @@ -28,7 +28,7 @@ BOOL CDBRecordKeyIsValid(CDBRecordKey* recordKey) { return FALSE; } -void CDBRecordKeyInit(CDBRecordKey* recordKey, CDBDate epoch, int gameCode, u16 makerCode, int serialNumber, char* fileType, int unk) { +void CDBRecordKeyInit(CDBRecordKey* recordKey, CDBDate epoch, int gameCode, u16 makerCode, int serialNumber, char* fileType, int recordLocation) { struct { char mcStr[4]; char typeStr[8]; @@ -41,7 +41,7 @@ void CDBRecordKeyInit(CDBRecordKey* recordKey, CDBDate epoch, int gameCode, u16 CDBConvGCValueToGCStr(gameCode, strings.gcStr); recordKey->wiiId = CDBGetWiiId(); - recordKey->location = unk; + recordKey->location = recordLocation; typeLength = strlen(fileType); strcpy(strings.typeStr, fileType); diff --git a/libs/RevoEX/src/nhttp/NHTTP_bgnend.c b/libs/RevoEX/src/nhttp/NHTTP_bgnend.c index 85588e15..5a844031 100644 --- a/libs/RevoEX/src/nhttp/NHTTP_bgnend.c +++ b/libs/RevoEX/src/nhttp/NHTTP_bgnend.c @@ -16,9 +16,9 @@ typedef struct NHTTPBgnEndInfo s32 socket; s32 sslError; NHTTPErr error; - u32 _unk7DC; + u32 stopping; void* threadStack; - u32 _unk7E4; + u32 reserved; } NHTTPBgnEndInfo; NHTTPBgnEndInfo* NHTTPi_GetSystemInfoP(void); @@ -47,9 +47,9 @@ void NHTTPi_InitBgnEndInfo(NHTTPBgnEndInfo* info) info->free = NULL; info->started = FALSE; info->socket = -1; - info->_unk7DC = 0; + info->stopping = 0; info->threadStack = NULL; - info->_unk7E4 = 0; + info->reserved = 0; } void* NHTTPi_alloc(u32 size, int align) @@ -103,7 +103,7 @@ BOOL NHTTPi_Startup(void* systemInfo, NHTTPAlloc alloc, NHTTPFree free, bgnEndInfo->free = free; bgnEndInfo->error = NHTTP_ERROR_NONE; bgnEndInfo->sslError = 0; - bgnEndInfo->_unk7DC = 0; + bgnEndInfo->stopping = 0; NHTTPi_InitListInfo(listInfo); NHTTPi_InitRequestInfo(reqInfo); diff --git a/libs/RevoEX/src/nhttp/NHTTP_os_RVL.c b/libs/RevoEX/src/nhttp/NHTTP_os_RVL.c index 69c96274..f9e515c3 100644 --- a/libs/RevoEX/src/nhttp/NHTTP_os_RVL.c +++ b/libs/RevoEX/src/nhttp/NHTTP_os_RVL.c @@ -18,9 +18,9 @@ typedef struct NHTTPBgnEndInfo s32 socket; s32 sslError; NHTTPErr error; - u32 _unk7DC; + u32 stopping; void* threadStack; - u32 _unk7E4; + u32 reserved; } NHTTPBgnEndInfo; typedef struct NHTTPThreadInfo @@ -29,7 +29,7 @@ typedef struct NHTTPThreadInfo OSMessage messages[3]; OSThread thread; BOOL isCreateCommThreadMessageQueue; - u8 _unk34C[0x14]; + u8 reserved[0x14]; char commBuf[0x100]; } NHTTPThreadInfo; @@ -82,7 +82,7 @@ BOOL NHTTPi_createCommThread(NHTTPThreadInfo* info, s32 priority, void* stack) void NHTTPi_destroyCommThread(NHTTPThreadInfo* info, NHTTPBgnEndInfo* bgnEndInfo) { - bgnEndInfo->_unk7DC = 1; + bgnEndInfo->stopping = 1; OSSendMessage(&info->messageQueue, NULL, 0); OSJoinThread(&info->thread, NULL); } diff --git a/libs/RevoEX/src/nhttp/d_nhttp_common.c b/libs/RevoEX/src/nhttp/d_nhttp_common.c index 20b28380..e43f77e6 100644 --- a/libs/RevoEX/src/nhttp/d_nhttp_common.c +++ b/libs/RevoEX/src/nhttp/d_nhttp_common.c @@ -16,8 +16,8 @@ typedef struct NHTTPStaticResource BOOL initialized; OSMutex mutex; OSCond cond; - u32 _unk24; - u8 _unk28[0x18]; + u32 reservedWord; + u8 reserved[0x18]; } NHTTPStaticResource; static NHTTPSysInfo sysInfo; diff --git a/libs/RevoEX/src/nwc24/NWC24Download.c b/libs/RevoEX/src/nwc24/NWC24Download.c index a300dfd0..a3208c1c 100644 --- a/libs/RevoEX/src/nwc24/NWC24Download.c +++ b/libs/RevoEX/src/nwc24/NWC24Download.c @@ -15,21 +15,21 @@ typedef struct { u32 nwc24IdHigh; u32 nwc24IdLow; u16 groupId; - u8 unknown_0x16[2]; + u8 reservedGroupData[2]; u16 subTaskCount; - u16 unknown_0x1a; + u16 errorCount; u16 interval; u16 intervalWait; - u32 unknown_0x20; + u32 lastError; u8 retryCount; u8 retryEnabled; - u8 unknown_0x26[2]; + u8 subTaskFlagStorage[2]; u32 retryMask; - u8 unknown_0x2c[0x88]; + u8 updateTimeStorage[0x88]; char url[0xec]; char fileName[0x5c]; u8 optOutFlags; - u8 unknown_0x1fd[3]; + u8 rootCaStorage[3]; } DlTaskData; typedef struct { @@ -43,13 +43,13 @@ typedef struct { typedef struct { u32 magic; u32 version; - u32 unknown_0x08; - u16 unknown_0x0c; - u16 unknown_0x0e; + u32 reserved; + u16 reservedHeaderWord0; + u16 reservedHeaderWord1; u16 legacyTaskCount; u16 taskCount; u16 maxTaskCount; - u8 unknown_0x16[0x6a]; + u8 reservedTaskData[0x6a]; DlTaskEntry entries[NWC24_DL_TASK_MAX]; } DlTaskListHeader; @@ -792,8 +792,8 @@ static inline NWC24Err ClearDlTaskError(NWC24DlTask* dlTask) { if (result != NWC24_OK) { return result; } - task->unknown_0x20 = 0; - task->unknown_0x1a = 0; + task->lastError = 0; + task->errorCount = 0; return NWC24_OK; } @@ -1118,8 +1118,8 @@ NWC24Err NWC24iCreateDlTaskList() { memset(header, 0, 0x800); header->magic = 0x5763446c; header->version = 1; - header->unknown_0x0c = 0; - header->unknown_0x0e = 0; + header->reservedHeaderWord0 = 0; + header->reservedHeaderWord1 = 0; header->maxTaskCount = NWC24_DL_TASK_MAX; header->legacyTaskCount = 0x20; header->taskCount = 8; diff --git a/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c b/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c index c5e11205..78bfbad2 100644 --- a/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c +++ b/libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c @@ -782,7 +782,7 @@ static NWC24Err DuplicationCheck(MBCHeader* header, const NWC24MsgObjPrivate* ms duplicateOffset = offset; continue; } - if (msg->unk_0x1C != 0 && entry->crc == msg->unk_0x1C && entry->type == msg->type && entry->length == msg->length && + if (msg->crc != 0 && entry->crc == msg->crc && entry->type == msg->type && entry->length == msg->length && entry->flags == msg->headerSize && (s32)entry->date == (s32)msg->date) { duplicateId = entry->msgId; duplicateOffset = offset; @@ -950,8 +950,8 @@ static NWC24Err CopyMsgObjToMBCFmt(const NWC24MsgObjPrivate* msg, MBCEntry* entr u32 field1 = ((u32)msg->fromData.ptr & 0xFFFFF) | (msg->fromData.size << 20); u32 field2 = ((u32)msg->toData.ptr & 0xFFFFF) | (msg->toData.size << 20); u32 field3 = ((u32)msg->subject.ptr & 0xFFFFF) | (msg->subject.size << 20); - u32 field4 = ((u32)msg->unk_0x50.ptr & 0xFFFFF) | (msg->unk_0x50.size << 20); - u32 field5 = ((u32)msg->unk_0x58.ptr & 0xFFFFF) | (msg->unk_0x58.size << 20); + u32 field4 = ((u32)msg->charsetData.ptr & 0xFFFFF) | (msg->charsetData.size << 20); + u32 field5 = ((u32)msg->encodingData.ptr & 0xFFFFF) | (msg->encodingData.size << 20); entry->msgId = msg->msgId; entry->type = msg->type; entry->length = msg->length; @@ -959,7 +959,7 @@ static NWC24Err CopyMsgObjToMBCFmt(const NWC24MsgObjPrivate* msg, MBCEntry* entr entry->flags = msg->headerSize; entry->tag = msg->tag; entry->ledPattern = msg->ledPattern; - entry->crc = msg->unk_0x1C; + entry->crc = msg->crc; entry->fromIdHigh = msg->fromIdHigh; entry->fromIdLow = msg->fromIdLow; entry->date = msg->date; @@ -1006,7 +1006,7 @@ static NWC24Err CopyMsgObjToPrvFmt(const MBCEntry* entry, NWC24MsgObjPrivate* ms msg->headerSize = entry->flags; msg->tag = entry->tag; msg->ledPattern = entry->ledPattern; - msg->unk_0x1C = entry->crc; + msg->crc = entry->crc; msg->fromIdHigh = entry->fromIdHigh; msg->fromIdLow = entry->fromIdLow; msg->date = entry->date; @@ -1025,10 +1025,10 @@ static NWC24Err CopyMsgObjToPrvFmt(const MBCEntry* entry, NWC24MsgObjPrivate* ms msg->toData.size = size2; msg->subject.ptr = (void*)offset3; msg->subject.size = size3; - msg->unk_0x50.ptr = (void*)offset4; - msg->unk_0x50.size = size4; - msg->unk_0x58.ptr = (void*)offset5; - msg->unk_0x58.size = size5; + msg->charsetData.ptr = (void*)offset4; + msg->charsetData.size = size4; + msg->encodingData.ptr = (void*)offset5; + msg->encodingData.size = size5; msg->attached[0].ptr = entry->attached[0].ptr; msg->attached[0].size = entry->attached[0].size; msg->attachedSize[0] = entry->attachedSize[0]; diff --git a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c index 54418d51..688b1179 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgCommit.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgCommit.c @@ -811,16 +811,16 @@ static NWC24Err WriteContentTypeField(NWC24MsgObjPrivate* msg) { name = NWC24GetCharsetStr(msg->charset); if (name != NULL) { Mail_sprintf(buffer, (char*)ContentTypeTP, name); - msg->unk_0x50.ptr = (const void*)(msg->length + 34); - msg->unk_0x50.size = Mail_strlen(name) + 1; + msg->charsetData.ptr = (const void*)(msg->length + 34); + msg->charsetData.size = Mail_strlen(name) + 1; total = Mail_strlen(buffer); buffer += total; } encoding = NWC24GetEncodingStr(msg->encoding); if (encoding != NULL) { Mail_sprintf(buffer, (char*)ContentTxEncT, encoding); - msg->unk_0x58.ptr = (const void*)(total + msg->length + 27); - msg->unk_0x58.size = Mail_strlen(encoding) + 1; + msg->encodingData.ptr = (const void*)(total + msg->length + 27); + msg->encodingData.size = Mail_strlen(encoding) + 1; total += Mail_strlen(buffer); } if (total == 0) diff --git a/libs/RevoEX/src/nwc24/NWC24MsgObj.c b/libs/RevoEX/src/nwc24/NWC24MsgObj.c index 5a3666c6..68659911 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgObj.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgObj.c @@ -75,8 +75,8 @@ NWC24Err NWC24InitMsgObj(NWC24MsgObj* msg, NWC24MsgType type) { NWC24Data_Init(&msgObj->fromData); NWC24Data_Init(&msgObj->toData); - NWC24Data_Init(&msgObj->unk_0x50); - NWC24Data_Init(&msgObj->unk_0x58); + NWC24Data_Init(&msgObj->charsetData); + NWC24Data_Init(&msgObj->encodingData); NWC24Data_Init(&msgObj->extraData); NWC24Data_Init(&msgObj->faceData); NWC24Data_Init(&msgObj->altName); diff --git a/libs/RevoEX/src/nwc24/NWC24MsgRead.c b/libs/RevoEX/src/nwc24/NWC24MsgRead.c index 02be917a..d568c4bf 100644 --- a/libs/RevoEX/src/nwc24/NWC24MsgRead.c +++ b/libs/RevoEX/src/nwc24/NWC24MsgRead.c @@ -426,19 +426,19 @@ static NWC24Err ReadMsgTextInternal(const NWC24MsgObj* msg, char* text, u32 capa return result; } Mail_memset(charset, 0, charsetCapacity); - if (privateMsg->unk_0x50.size >= charsetCapacity) + if (privateMsg->charsetData.size >= charsetCapacity) result = NWC24_ERR_FORMAT; else { - if (privateMsg->unk_0x50.size != 0) { - NWC24FSeek(&file, (u32)privateMsg->unk_0x50.ptr, NWC24_SEEK_BEG); - result = NWC24FRead(charset, privateMsg->unk_0x50.size, &file); + if (privateMsg->charsetData.size != 0) { + NWC24FSeek(&file, (u32)privateMsg->charsetData.ptr, NWC24_SEEK_BEG); + result = NWC24FRead(charset, privateMsg->charsetData.size, &file); if (result != NWC24_OK) goto close; } - if (privateMsg->unk_0x58.size != 0 && privateMsg->unk_0x58.size < 32) { + if (privateMsg->encodingData.size != 0 && privateMsg->encodingData.size < 32) { Mail_memset(buffer, 0, 32); - NWC24FSeek(&file, (u32)privateMsg->unk_0x58.ptr, NWC24_SEEK_BEG); - result = NWC24FRead(buffer, privateMsg->unk_0x58.size, &file); + NWC24FSeek(&file, (u32)privateMsg->encodingData.ptr, NWC24_SEEK_BEG); + result = NWC24FRead(buffer, privateMsg->encodingData.size, &file); if (result != NWC24_OK) goto close; result = NWC24ParseEncodingStr(encoding, buffer); diff --git a/libs/RevoEX/src/nwc24/NWC24SecretFList.c b/libs/RevoEX/src/nwc24/NWC24SecretFList.c index c6ea6715..20c2e280 100644 --- a/libs/RevoEX/src/nwc24/NWC24SecretFList.c +++ b/libs/RevoEX/src/nwc24/NWC24SecretFList.c @@ -55,7 +55,7 @@ NWC24Err NWC24iCreateSecretFriendList() { header->magic = SECRET_FRIEND_LIST_MAGIC; header->version = SECRET_FRIEND_LIST_VERSION; header->infoCount = 336; - header->unk_0x0C = 0; + header->registeredCount = 0; result = NWC24FOpen(&file, FLFilePath, NWC24_OPEN_WRITE); if (result != NWC24_OK) { diff --git a/libs/RevoEX/src/nwc24/NWC24Utils.c b/libs/RevoEX/src/nwc24/NWC24Utils.c index 7c0de473..c62f183c 100644 --- a/libs/RevoEX/src/nwc24/NWC24Utils.c +++ b/libs/RevoEX/src/nwc24/NWC24Utils.c @@ -18,7 +18,7 @@ void NWC24Date_Init(NWC24Date* date) { date->hour = 12; date->min = 0; date->sec = 0; - date->unk_0x07 = 0; + date->reserved = 0; } void NWC24iConvIdToStr(NWC24UserId addr, char* out) { diff --git a/libs/RevoEX/src/vf/fatfs/pf_fat12.c b/libs/RevoEX/src/vf/fatfs/pf_fat12.c index 21846a0f..b9626889 100644 --- a/libs/RevoEX/src/vf/fatfs/pf_fat12.c +++ b/libs/RevoEX/src/vf/fatfs/pf_fat12.c @@ -78,16 +78,16 @@ pf_s32 VFiPFFAT12_ReadFATEntryPage(PF_VOLUME* p_vol /* r31 */, pf_u16 cluster /* pf_s32 result; // r1+0x8 // ehhhh -#define FAT_MACRO(b_UNK) \ - if ((*pp_page)->sector > (sector + b_UNK) || (*pp_page)->sector + p_vol->cache.fat_buff_size <= (sector + b_UNK)) { \ +#define FAT_MACRO(sectorOffset) \ + if ((*pp_page)->sector > (sector + sectorOffset) || (*pp_page)->sector + p_vol->cache.fat_buff_size <= (sector + sectorOffset)) { \ if ((*pp_page)->option == 1) { \ err = VFiPFFAT_UpdateFATEntry(p_vol, *pp_page); \ if (err != 0) { \ return err; \ } \ } \ - err = VFiPFCACHE_ReadFATPage(p_vol, sector + b_UNK, pp_page); \ - if (b_UNK) { \ + err = VFiPFCACHE_ReadFATPage(p_vol, sector + sectorOffset, pp_page); \ + if (sectorOffset) { \ if (err != 0) { \ return err; \ } \ @@ -97,8 +97,8 @@ pf_s32 VFiPFFAT12_ReadFATEntryPage(PF_VOLUME* p_vol /* r31 */, pf_u16 cluster /* } \ } \ } else { \ - if ((sector + b_UNK) != ((*pp_page)->sector + (((*pp_page)->p_buf - (*pp_page)->buffer) >> p_vol->bpb.log2_bytes_per_sector))) { \ - (*pp_page)->p_buf = &(*pp_page)->buffer[((sector + b_UNK) - (*pp_page)->sector) << p_vol->bpb.log2_bytes_per_sector]; \ + if ((sector + sectorOffset) != ((*pp_page)->sector + (((*pp_page)->p_buf - (*pp_page)->buffer) >> p_vol->bpb.log2_bytes_per_sector))) { \ + (*pp_page)->p_buf = &(*pp_page)->buffer[((sector + sectorOffset) - (*pp_page)->sector) << p_vol->bpb.log2_bytes_per_sector]; \ } \ } @@ -212,11 +212,11 @@ pf_s32 VFiPFFAT12_WriteFATEntryPage(PF_VOLUME* p_vol, pf_u16 cluster, pf_u16 val pf_u32 current_fat; pf_s32 result; -#define __PF_CONCAT(b_UNK, y) b_UNK##y -#define PF_CONCAT(b_UNK, y) __PF_CONCAT(b_UNK, y) +#define __PF_CONCAT(prefix, y) prefix##y +#define PF_CONCAT(prefix, y) __PF_CONCAT(prefix, y) -#define FAT_MACRO(b_UNK) \ - if ((*pp_page)->sector > (fat_sector + b_UNK) || ((*pp_page)->sector + p_vol->cache.fat_buff_size) <= (fat_sector + b_UNK)) { \ +#define FAT_MACRO(sectorOffset) \ + if ((*pp_page)->sector > (fat_sector + sectorOffset) || ((*pp_page)->sector + p_vol->cache.fat_buff_size) <= (fat_sector + sectorOffset)) { \ err = VFiPFFAT_UpdateFATEntry(p_vol, *pp_page); \ if (err != 0) { \ return err; \ @@ -227,7 +227,7 @@ pf_s32 VFiPFFAT12_WriteFATEntryPage(PF_VOLUME* p_vol, pf_u16 cluster, pf_u16 val current_fat = 1; \ } \ do { \ - err = VFiPFCACHE_ReadFATPage(p_vol, fat_sector + b_UNK, pp_page); \ + err = VFiPFCACHE_ReadFATPage(p_vol, fat_sector + sectorOffset, pp_page); \ if (err != 0x1000 || p_vol->p_callback == PF_NULL) { \ goto PF_CONCAT(chk_, __LINE__); \ } \ @@ -245,13 +245,13 @@ pf_s32 VFiPFFAT12_WriteFATEntryPage(PF_VOLUME* p_vol, pf_u16 cluster, pf_u16 val return err; \ } \ } while (err != 0); \ - if (b_UNK) { \ + if (sectorOffset) { \ VFiPFCACHE_UpdateModifiedSector(p_vol, *pp_page, 1); \ } \ } else { \ - if ((fat_sector + b_UNK) != (*pp_page)->sector + (((*pp_page)->p_buf - (*pp_page)->buffer) >> p_vol->bpb.log2_bytes_per_sector)) { \ - (*pp_page)->p_buf = &(*pp_page)->buffer[((fat_sector + b_UNK) - (*pp_page)->sector) << p_vol->bpb.log2_bytes_per_sector]; \ - if (b_UNK) { \ + if ((fat_sector + sectorOffset) != (*pp_page)->sector + (((*pp_page)->p_buf - (*pp_page)->buffer) >> p_vol->bpb.log2_bytes_per_sector)) { \ + (*pp_page)->p_buf = &(*pp_page)->buffer[((fat_sector + sectorOffset) - (*pp_page)->sector) << p_vol->bpb.log2_bytes_per_sector]; \ + if (sectorOffset) { \ VFiPFCACHE_UpdateModifiedSector(p_vol, *pp_page, 1); \ } \ } \ diff --git a/src/BS2/BS2.c b/src/BS2/BS2.c index 1d9a2f55..56e33e9e 100644 --- a/src/BS2/BS2.c +++ b/src/BS2/BS2.c @@ -104,8 +104,8 @@ static u8 SRAMtoSCLang[OS_LANG_MAX]; // Get some device from EXI. static void GetSomeDevFromExi() { u32 cmd; - u32 unk0 = 0; - u32 unk1; + u32 commandData = 0; + u32 registerSelect; u32 i; @@ -119,16 +119,16 @@ static void GetSomeDevFromExi() { } if (i == 0) { - unk1 = 0; + registerSelect = 0; } else { - unk1 = 0x100; + registerSelect = 0x100; } - cmd = unk1 | 0xA1000000; + cmd = registerSelect | 0xA1000000; EXIImm(EXI_CHAN_0, &cmd, sizeof(cmd), EXI_WRITE, NULL); EXISync(EXI_CHAN_0); - EXIImm(EXI_CHAN_0, &unk0, sizeof(unk0), EXI_WRITE, NULL); + EXIImm(EXI_CHAN_0, &commandData, sizeof(commandData), EXI_WRITE, NULL); EXISync(EXI_CHAN_0); EXIDeselect(EXI_CHAN_0); diff --git a/src/BS2/BS2Fatal.c b/src/BS2/BS2Fatal.c index 6f03d075..7022a53e 100644 --- a/src/BS2/BS2Fatal.c +++ b/src/BS2/BS2Fatal.c @@ -24,7 +24,7 @@ typedef struct BS2FatalParam { GXColor fg; // 0x00 GXColor bg; // 0x04 const char* msg; // 0x08 - u8 unk_0x0C[0x0C]; + u8 reserved[0x0C]; } BS2FatalParam; static BS2FatalParam FatalParam; diff --git a/src/bannerSound/AudioWavePlayer.cpp b/src/bannerSound/AudioWavePlayer.cpp index a23c3f96..87c14df2 100644 --- a/src/bannerSound/AudioWavePlayer.cpp +++ b/src/bannerSound/AudioWavePlayer.cpp @@ -71,7 +71,7 @@ void SimpleWavePlayer::wavePacketCallback(WavePacketCallbackStatus status, WaveP SimpleWavePlayer::SimpleWavePlayer() : mSetupParam(1, nw4r::snd::SAMPLE_FORMAT_PCM_S16, 32000, 1.0f, 1) { mbFillInCallback = true; - unk_0xB0 = false; + mReserved = false; mIsSetData = false; mIsPlaying = false; mIsSetBuf = false; diff --git a/src/bannerSound/BannerSoundPlayer.cpp b/src/bannerSound/BannerSoundPlayer.cpp index f3f5bc8b..7ba6b31c 100644 --- a/src/bannerSound/BannerSoundPlayer.cpp +++ b/src/bannerSound/BannerSoundPlayer.cpp @@ -3,7 +3,7 @@ static u8 s_player_thread_stack[0x4000]; s16* pBSWaveBuffer = NULL; -BannerSoundPlayer::BannerSoundPlayer() : mSndMoveValue(), mWavePlayer(), mAdpcmPlayer(), mAdpcmHandle(), unk_0x510(0) { +BannerSoundPlayer::BannerSoundPlayer() : mSndMoveValue(), mWavePlayer(), mAdpcmPlayer(), mAdpcmHandle(), mReserved(0) { mIsInitialized = false; mMasterVolume = 1.0f; } diff --git a/src/channelScript/systemmenu/iplCSColor.cpp b/src/channelScript/systemmenu/iplCSColor.cpp index 97094e4a..807b2a9c 100644 --- a/src/channelScript/systemmenu/iplCSColor.cpp +++ b/src/channelScript/systemmenu/iplCSColor.cpp @@ -19,9 +19,9 @@ namespace ipl { } CS_Color; typedef struct _CS_Struct { - CS_Color unk_0x00; - CS_Color unk_0x04; - CS_Color unk_0x08; + CS_Color color; + CS_Color argumentColor; + CS_Color reserved; } CS_Struct; CHANSVmDefineMethod(ctor) { @@ -33,7 +33,7 @@ namespace ipl { if (CHANSVmGetArgc(VmInst) == 1) { CHANSVmObjHdr* arg = CHANSVmGetArgInteger(VmInst, 0); if (arg != NULL) { - *data = reinterpret_cast(&arg->value.ptr_v)->unk_0x04.gxColor; + *data = reinterpret_cast(&arg->value.ptr_v)->argumentColor.gxColor; } } // new Color(u8 r, u8 g, u8 b, u8 a) @@ -87,9 +87,9 @@ namespace ipl { CS_Struct* data = static_cast(*VmParentObj->value.ptr_v); if (data != NULL) { result = TRUE; - CS_Color newVal = data->unk_0x00; + CS_Color newVal = data->color; newVal.arr[I] = arg->value.int_v; - data->unk_0x00 = newVal; + data->color = newVal; } } return result; @@ -101,7 +101,7 @@ namespace ipl { if (util::is_valid_datap(VmParentObj)) { CS_Struct* data = static_cast(*VmParentObj->value.ptr_v); if (data != NULL) { - CS_Color val = data->unk_0x00; + CS_Color val = data->color; result = CHANSVmSetInteger(VmInst, VmReturnObj, val.arr[I]) == CHANS_VM_OK; } } diff --git a/src/channelScript/systemmenu/iplCSPane.cpp b/src/channelScript/systemmenu/iplCSPane.cpp index c47ea524..9e6e1807 100644 --- a/src/channelScript/systemmenu/iplCSPane.cpp +++ b/src/channelScript/systemmenu/iplCSPane.cpp @@ -558,11 +558,11 @@ namespace ipl { return out; } - BOOL _ctor(CHANSVm* VmInst, CHANSVmObjHdr* VmObj, u32 unk) { + BOOL _ctor(CHANSVm* VmInst, CHANSVmObjHdr* VmObj, u32 paneAddress) { BOOL result = FALSE; u32* data = static_cast(CHANSVmNewObjData(VmInst, VmObj, sizeof(u32))); if (data != NULL) { - *data = unk; + *data = paneAddress; VmObj->type = CHANS_VM_TYPE_OBJECT; CHANSVmNativeClass* ncls = CHANSVmFindNativeClass(VmInst, "Pane"); VmObj->parentCls = ncls; diff --git a/src/channelScript/systemmenu/iplCSUtil.cpp b/src/channelScript/systemmenu/iplCSUtil.cpp index a49f6a3d..531c53e7 100644 --- a/src/channelScript/systemmenu/iplCSUtil.cpp +++ b/src/channelScript/systemmenu/iplCSUtil.cpp @@ -10,8 +10,8 @@ namespace ipl { bool result = false; if (object != NULL) { - u32* unk = (u32*)object->value.ptr_v; - if (unk != NULL && unk[0] != 0) { + u32* objectData = (u32*)object->value.ptr_v; + if (objectData != NULL && objectData[0] != 0) { result = true; } } diff --git a/src/iplwww/www_surface.cpp b/src/iplwww/www_surface.cpp index c4f49189..58db1d0f 100644 --- a/src/iplwww/www_surface.cpp +++ b/src/iplwww/www_surface.cpp @@ -20,7 +20,7 @@ namespace ext_ead { typedef struct FontFileData { const char* name; // 0x00 - u32 unk_0x04; // 0x04 + u32 reserved; // 0x04 void* start; // 0x08 void* end; // 0x0C } FontFileData; @@ -173,7 +173,7 @@ namespace ext_ead { } SurfaceManager::SurfaceManager() - : mWidth(VI_MAX_WIDTH_FRAMEBUFFER), mHeight(VI_MAX_HEIGHT_FRAMEBUFFER), unk_0x0C(0), mpBrowserThread(NULL), mpOperaThreadStack(NULL), + : mWidth(VI_MAX_WIDTH_FRAMEBUFFER), mHeight(VI_MAX_HEIGHT_FRAMEBUFFER), mReserved(0), mpBrowserThread(NULL), mpOperaThreadStack(NULL), mpRSOBss(NULL), mpLibBuffer(NULL), mpArcPath(NULL) { OSInitMutex(&mMutex); } diff --git a/src/keyboard/MyTiInputForm.cpp b/src/keyboard/MyTiInputForm.cpp index 67e5fffa..371b7d0a 100644 --- a/src/keyboard/MyTiInputForm.cpp +++ b/src/keyboard/MyTiInputForm.cpp @@ -765,7 +765,7 @@ void EventHandler::onTiEvent(gui::PaneComponent* component, u32 event, Input* in inputform::EventHandler::onTiEvent(component, event, input); const char* name = component->getPane()->GetName(); if (name[0] == 'B') { - if (event == 4 && (input->field_0x0C & 0x800)) { + if (event == 4 && (input->trigger & 0x800)) { if (util::strcmp("B_Nigaoe", name)) mpMemoForm->onNigaoeButtonTrig(); if (util::strcmp("B_ArwR", name)) mpMemoForm->onArrowRTrig(); if (util::strcmp("B_ArwL", name)) mpMemoForm->onArrowLTrig(); diff --git a/src/keyboard/tiCandidateBox.cpp b/src/keyboard/tiCandidateBox.cpp index da711181..b0b01f61 100644 --- a/src/keyboard/tiCandidateBox.cpp +++ b/src/keyboard/tiCandidateBox.cpp @@ -320,12 +320,12 @@ namespace textinput { mbOn = on; // TODO - ??? struct { - int arg1; - bool arg2; - } unknown; - sendCommand(31, &unknown); - unknown.arg2 = on; - sendCommand(29, &unknown); + int mode; + bool enabled; + } predictionState; + sendCommand(31, &predictionState); + predictionState.enabled = on; + sendCommand(29, &predictionState); } void Base::updateFromReceiver(u32 cmd, void* data) { @@ -1509,7 +1509,7 @@ namespace textinput { if (!mgr()->isInvalid()) { switch (event) { case 4: - if (input->field_0x0C == 0x800) { + if (input->trigger == 0x800) { s32 idx = GetSelectedPaneIdx(); if (mnFocusedIdx >= 0 && idx >= 0) { mpTextBoxPane[idx]->init(); @@ -1661,7 +1661,7 @@ namespace textinput { if (!mgr()->isInvalid()) { switch (event) { case 4: - if (input->field_0x0C == 0x800) { + if (input->trigger == 0x800) { mpButtonAnmPane->onAnmEvent(nw4rmanager::AnmPane::PE_0); if (getID() == 1) { mgr()->onLeftPageScroll(); @@ -1671,8 +1671,8 @@ namespace textinput { } break; case 2: - if (input->field_0x10 == 0x800 && !(input->field_0x0C & 0x800) && - component.getFlightDuration(input->field_0x00) % 20 != 0) { + if (input->hold == 0x800 && !(input->trigger & 0x800) && + component.getFlightDuration(input->controller) % 20 != 0) { mpButtonAnmPane->onAnmEvent(nw4rmanager::AnmPane::PE_0); if (getID() == 1) { mgr()->onLeftPageScroll(); @@ -1777,7 +1777,7 @@ namespace textinput { } switch (event) { case 4: - if (input->field_0x0C & 0x800) { + if (input->trigger & 0x800) { mgr()->onOnOffButton(true); } break; diff --git a/src/keyboard/tiCellPhone.cpp b/src/keyboard/tiCellPhone.cpp index 162b2484..fecbd39b 100644 --- a/src/keyboard/tiCellPhone.cpp +++ b/src/keyboard/tiCellPhone.cpp @@ -1339,8 +1339,8 @@ namespace textinput { if (animation) { switch (static_cast(event)) { case gui::EventHandler::ON_TRIG: - if ((input->field_0x0C & 0x800) || - ((input->field_0x0C & 0x400) && isNormalCellPhoneKey(paneName))) { + if ((input->trigger & 0x800) || + ((input->trigger & 0x400) && isNormalCellPhoneKey(paneName))) { if (animation->getKeyType() == KT_ControlButton) { nw4r::ut::List& panes = mpLayoutByNW4R->getAnmPaneList(); CellPhoneAnmPane* other = static_cast(nw4r::ut::List_GetNext(&panes, NULL)); @@ -1373,23 +1373,23 @@ namespace textinput { u8 repeat; } keyEvent = {paneName, 0, 0}; if (event == gui::EventHandler::ON_TRIG) { - if (input->field_0x0C & 0x800) { + if (input->trigger & 0x800) { keyEvent.state = 0; mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent); - } else if ((input->field_0x0C & 0x400) && isNormalCellPhoneKey(paneName)) { + } else if ((input->trigger & 0x400) && isNormalCellPhoneKey(paneName)) { keyEvent.state = 1; mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent); - paneComponent->setFlightDuration(input->field_0x00, 0); + paneComponent->setFlightDuration(input->controller, 0); } } if (event == gui::EventHandler::ON_LEFT) { mpLayoutByNW4R->onKey(gui::EventHandler::ON_LEFT, &keyEvent); } - if (event == gui::EventHandler::ON_MOVE && (input->field_0x10 & 0x800) && - !(input->field_0x0C & 0x800) && + if (event == gui::EventHandler::ON_MOVE && (input->hold & 0x800) && + !(input->trigger & 0x800) && (util::strcmp(csPaneNameNormalKey[13], paneName) || util::strcmp(csPaneNameNormalKey[16], paneName)) && - paneComponent->isDragging(input->field_0x00)) { - u32 duration = mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName); + paneComponent->isDragging(input->controller)) { + u32 duration = mpLayoutByNW4R->getFlightDuration(input->controller, paneName); if (duration >= 30 && duration % 9 == 0) { char animationName[17]; util::replaceChar(animationName, sizeof(animationName), paneName, 0, 'W'); @@ -1398,7 +1398,7 @@ namespace textinput { mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent); } } - if (event == gui::EventHandler::ON_MOVE && mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName) == 90) { + if (event == gui::EventHandler::ON_MOVE && mpLayoutByNW4R->getFlightDuration(input->controller, paneName) == 90) { keyEvent.repeat = 1; mpLayoutByNW4R->onKey(gui::EventHandler::ON_LEFT, &keyEvent); } diff --git a/src/keyboard/tiPcKeyboard.cpp b/src/keyboard/tiPcKeyboard.cpp index a9f752c7..6bcb7a31 100644 --- a/src/keyboard/tiPcKeyboard.cpp +++ b/src/keyboard/tiPcKeyboard.cpp @@ -2741,7 +2741,7 @@ namespace textinput { nw4rmanager::AnmPane* animation = mpKeyboard->searchAnmPane(animationName); switch (static_cast(event)) { case 4: - if (input->field_0x0C & 0x800) { + if (input->trigger & 0x800) { if (animation != NULL) animation->onAnmEvent(nw4rmanager::AnmPane::PE_0); mpKeyboard->onKey(4, animationName); @@ -2760,11 +2760,11 @@ namespace textinput { } break; } - if (event == 2 && (input->field_0x10 & 0x800) && !(input->field_0x0C & 0x800) && + if (event == 2 && (input->hold & 0x800) && !(input->trigger & 0x800) && (util::strcmp("P_key_DELETE", animationName) || util::strcmp("P_Gkey_DELETE", animationName) || util::strcmp("P_key_SPACE", animationName) || util::strcmp("P_Gkey_SPACE", animationName)) && - component->isDragging(input->field_0x00)) { - u32 frames = mpKeyboard->getFlightDuration(input->field_0x00, name); + component->isDragging(input->controller)) { + u32 frames = mpKeyboard->getFlightDuration(input->controller, name); if (frames >= 30 && frames % 9 == 0) { animation->onAnmEvent(nw4rmanager::AnmPane::PE_0); mpKeyboard->onKey(4, animationName); @@ -3144,7 +3144,7 @@ namespace textinput { name = "P_key_SHIFT"; switch (static_cast(event)) { case 4: - if (input->field_0x0C & 0x800) + if (input->trigger & 0x800) mpLayout->onKey(4, const_cast(name)); break; diff --git a/src/keyboard/tiPredictLang.cpp b/src/keyboard/tiPredictLang.cpp index d879efe3..88ccabc5 100644 --- a/src/keyboard/tiPredictLang.cpp +++ b/src/keyboard/tiPredictLang.cpp @@ -374,7 +374,7 @@ namespace textinput { if (pane != NULL) { switch (event) { case ON_TRIG: { - if ((input->field_0x0C & 0x800)) { + if ((input->trigger & 0x800)) { pane->onAnmEvent(nw4rmanager::AnmPane::PE_0); } break; @@ -391,7 +391,7 @@ namespace textinput { } } - if (event == ON_TRIG && (input->field_0x0C & 0x800)) { + if (event == ON_TRIG && (input->trigger & 0x800)) { char tmp[17]; // open-coded util::replaceChar memset(tmp, 0, 17); diff --git a/src/keyboard/tiToolBar.cpp b/src/keyboard/tiToolBar.cpp index 38db6e65..3bd38dc9 100644 --- a/src/keyboard/tiToolBar.cpp +++ b/src/keyboard/tiToolBar.cpp @@ -383,7 +383,7 @@ namespace textinput { if (pane != NULL) { switch (event) { case ON_TRIG: { - if ((input->field_0x0C & 0x800)) { + if ((input->trigger & 0x800)) { pane->onAnmEvent(nw4rmanager::AnmPane::PE_0); } break; @@ -400,7 +400,7 @@ namespace textinput { } } } - if (event == ON_TRIG && (input->field_0x0C & 0x800)) { + if (event == ON_TRIG && (input->trigger & 0x800)) { if (util::strcmp(tmp, "P_BT_confirm")) { mpLayoutByNW4R->onOK(); } else if (util::strcmp(tmp, "P_BT_cancel")) { diff --git a/src/scene/address/iplAddress.cpp b/src/scene/address/iplAddress.cpp index b721bf1c..812c66aa 100644 --- a/src/scene/address/iplAddress.cpp +++ b/src/scene/address/iplAddress.cpp @@ -45,7 +45,7 @@ namespace ipl { } Address::Address(EGG::Heap* heap, int mode) - : FaderSceneBase(heap), mMode(mode), mpLayout(NULL), unk_0x90(0), mpEvent(NULL), mpGui(NULL), mpBackLayout(NULL), + : FaderSceneBase(heap), mMode(mode), mpLayout(NULL), mReserved(0), mpEvent(NULL), mpGui(NULL), mpBackLayout(NULL), mFadeinState(FADEIN_STATE_FADEIN), mWaitOpenCount(0), mState(STATE_COVER_NORMAL), mPage(0), mNextPageNum(PAGE_MAX), mPrevPageNum(0), mSelectedButton(0), mChosenFriend(0), mbParentalOK(false) { setSceneParentFlags(SCN_PARENTFLAG_CALC | SCN_PARENTFLAG_DRAW); @@ -1209,7 +1209,7 @@ namespace ipl { mDrag.mButton = buttonNo; mDrag.mNextCount = -1; mDrag.mPrevCount = -1; - mDrag.unk_0x1C = 0; + mDrag.mResetState = 0; System::getPointer()->changeType(con->getChannel(), 1); static_cast(System::getScene(SCENE_BUTTON))->disableBtn(); diff --git a/src/scene/board/iplBoard.cpp b/src/scene/board/iplBoard.cpp index 689caf27..a807135a 100644 --- a/src/scene/board/iplBoard.cpp +++ b/src/scene/board/iplBoard.cpp @@ -64,12 +64,12 @@ namespace ipl { FOCUS_ANIM_OUT, }; - Board::Board(EGG::Heap* heap, int unk) + Board::Board(EGG::Heap* heap, int newMailAnimationPending) : Base(heap), ButtonEventHandlerBase(), mState(STATE_WAIT_CDB_INIT), mObjList(), mbDoReadTask(false), mbReading(false), mbDoTaskDelete(false), mbDoCountTask(false), mbNewMsgAnimCount(false), mCurrentDate(System::getCurrentTime()), mPreviousDate(System::getCurrentTime()), mpLayoutFile(NULL), mpLayoutBg(NULL), mpLayoutFocusBg(NULL), mbRIconEnable(false), mbLIconEnable(false), mbFocusMode(false), mbPlayDispSound(false), mpCurrentFocus(NULL), mMsgCount(-1), mPrevMsgCount(-1), mBoardSD(), - mbExitRequest(false), unk_0xFB8(unk) { + mbExitRequest(false), mNewMailAnimationPending(newMailAnimationPending) { setSceneParentFlags(SCN_PARENTFLAG_CALC | SCN_PARENTFLAG_DRAW); for (int i = 0; i < WPAD_MAX_CONTROLLERS; i++) { @@ -753,8 +753,8 @@ namespace ipl { return; } - if (unk_0xFB8) { - unk_0xFB8 = 0; + if (mNewMailAnimationPending) { + mNewMailAnimationPending = 0; button->startNewMailAnm(); return; @@ -796,8 +796,8 @@ namespace ipl { } void Board::stt_normal() { - if (unk_0xFB8) { - unk_0xFB8 = 0; + if (mNewMailAnimationPending) { + mNewMailAnimationPending = 0; } Button* button = get_button(); diff --git a/src/scene/board/iplUrlProcessor.cpp b/src/scene/board/iplUrlProcessor.cpp index 56be8327..6b6637c0 100644 --- a/src/scene/board/iplUrlProcessor.cpp +++ b/src/scene/board/iplUrlProcessor.cpp @@ -166,20 +166,20 @@ namespace ipl { nw4r::math::VEC2 pos(mConData[chan].pos); - f32 var_f31, var_f30, var_f29, var_f28; - var_f28 = 6.0f; - var_f29 = 25.0f; - var_f30 = 50.0f; - var_f31 = pos.x; + f32 pointerX, lineBottomOffset, lineTopOffset, hitMargin; + hitMargin = 6.0f; + lineTopOffset = 25.0f; + lineBottomOffset = 50.0f; + pointerX = pos.x; while (url_col = (url_collision*)nw4r::ut::List_GetNext(&mUrlCollisions, url_col), url_col != NULL) { while (line_col = (line_collision*)nw4r::ut::List_GetNext(&url_col->mLineCollisions, line_col), line_col != NULL) { - f32 left = line_col->mLeft - var_f28; - f32 right = var_f28 + line_col->mRight; - f32 temp_f0 = ((mMemoTranslateY + mHitYOffset) - line_col->mY); - f32 top = (var_f29 + temp_f0) - var_f28; - f32 bottom = var_f28 + (var_f30 + temp_f0); - if (left <= var_f31 && var_f31 <= right && top <= -pos.y && -pos.y <= bottom) { + f32 left = line_col->mLeft - hitMargin; + f32 right = hitMargin + line_col->mRight; + f32 lineY = ((mMemoTranslateY + mHitYOffset) - line_col->mY); + f32 top = (lineTopOffset + lineY) - hitMargin; + f32 bottom = hitMargin + (lineBottomOffset + lineY); + if (left <= pointerX && pointerX <= right && top <= -pos.y && -pos.y <= bottom) { return url_col->mTagNo; } } diff --git a/src/scene/calendar/iplCalendar.cpp b/src/scene/calendar/iplCalendar.cpp index a12a9cf6..67a6e343 100644 --- a/src/scene/calendar/iplCalendar.cpp +++ b/src/scene/calendar/iplCalendar.cpp @@ -704,7 +704,7 @@ namespace ipl { pane->SetString(fullStr); } - void Calendar::set_textbox_date(int unk, const utility::Date& date) { + void Calendar::set_textbox_date(int calendarIndex, const utility::Date& date) { s32 lang = System::getLanguage(); int val; int maxDays; @@ -736,7 +736,7 @@ namespace ipl { } } - dateIndex = unk == 1 ? 0 : DATE_COUNT; + dateIndex = calendarIndex == 1 ? 0 : DATE_COUNT; utility::Date cellDate; @@ -797,11 +797,11 @@ namespace ipl { } } - void Calendar::set_date_pos(int unk) { - nw4r::lyt::Pane* pane1 = mpLayout->FindPaneByName(scPaneName_N_Cal[unk]); - nw4r::lyt::Pane* pane2 = mpLayout->FindPaneByName(scPaneName_N_CalPos[unk]); + void Calendar::set_date_pos(int calendarIndex) { + nw4r::lyt::Pane* pane1 = mpLayout->FindPaneByName(scPaneName_N_Cal[calendarIndex]); + nw4r::lyt::Pane* pane2 = mpLayout->FindPaneByName(scPaneName_N_CalPos[calendarIndex]); - int dateIndex = unk == 1 ? 0 : DATE_COUNT; + int dateIndex = calendarIndex == 1 ? 0 : DATE_COUNT; for (int i = 0; (u32)i < DATE_COUNT; i++) { Date* dateScn = ((Date*)nw4r::ut::List_GetNth(&mDateList, dateIndex)); diff --git a/src/scene/calendar/iplDate.cpp b/src/scene/calendar/iplDate.cpp index 8cd7137c..929d0fa7 100644 --- a/src/scene/calendar/iplDate.cpp +++ b/src/scene/calendar/iplDate.cpp @@ -106,8 +106,8 @@ namespace ipl { onCmdRecv(mPendingFocusCmd); } - void Date::draw(bool unk) { - if (unk) { + void Date::draw(bool focusedPass) { + if (focusedPass) { if (mPointCount != 0) { mpLayout->draw(); } diff --git a/src/scene/channelEdit/iplChannelEdit.cpp b/src/scene/channelEdit/iplChannelEdit.cpp index 6c97806e..68a83839 100644 --- a/src/scene/channelEdit/iplChannelEdit.cpp +++ b/src/scene/channelEdit/iplChannelEdit.cpp @@ -404,7 +404,7 @@ namespace ipl { int blockOpenOffset = 0; const wchar_t* blockOpenMsg = System::getMessage(MESG_CHAN_EDIT_BLOCKS_OPEN); - const wchar_t* unkMsg = System::getMessage(MESG_CHAN_EDIT_BLANK); + const wchar_t* blankMessage = System::getMessage(MESG_CHAN_EDIT_BLANK); while (true) { wchar_t chr = *blockOpenMsg++; @@ -416,7 +416,7 @@ namespace ipl { blocksFreeMsg[--blockOpenOffset] = L' '; wcscpy(blocksFreeMsg + blockOpenOffset, digits + zeroOffset); - wcscat(blocksFreeMsg, unkMsg); + wcscat(blocksFreeMsg, blankMessage); mpChanAppBase->set_visible("T_Capa_00", true); mpChanAppBase->set_visible("N_Capa_00", true); @@ -458,7 +458,7 @@ namespace ipl { int blockOpenOffset = 0; const wchar_t* blockOpenMsg = System::getMessage(MESG_CHAN_EDIT_BLOCKS_OPEN); - const wchar_t* unkMsg = System::getMessage(MESG_CHAN_EDIT_BLANK); + const wchar_t* blankMessage = System::getMessage(MESG_CHAN_EDIT_BLANK); while (true) { wchar_t chr = *blockOpenMsg++; @@ -470,7 +470,7 @@ namespace ipl { blocksFreeMsg[--blockOpenOffset] = L' '; wcscpy(blocksFreeMsg + blockOpenOffset, digits + zeroOffset); - wcscat(blocksFreeMsg, unkMsg); + wcscat(blocksFreeMsg, blankMessage); mpChanAppBase->set_visible("T_Capa_00", true); mpChanAppBase->set_visible("N_Capa_00", true); @@ -1267,7 +1267,7 @@ namespace ipl { mpChanAppEdit->anmTextFadein(mPage == PAGE_WII ? MESG_DATA_ALREADY_EXISTS_SD : MESG_DATA_ALREADY_EXISTS_WII); } else if (result == NandSDWorker::RESULT_OUT_OF_SPACE) { mpChanAppEdit->anmTextFadein(mPage == PAGE_WII ? MESG_DATA_NOT_ENOUGH_FREE_SD : MESG_DATA_TOO_FEW_RESOURCES); - } else if (result == NandSDWorker::RESULT_UNK_N12) { + } else if (result == NandSDWorker::RESULT_FILENAME_CONFLICT) { mpChanAppEdit->anmTextFadein(MESG_DATA_FILENAME_CONFLICT); } else if (result == NandSDWorker::RESULT_NOT_TRANSFERRABLE) { mpChanAppEdit->anmTextFadein(mProcessType == PROC_MOV ? MESG_DATA_CANT_MOVE_TO_DEVICE : MESG_DATA_CANT_COPY_TO_DEVICE); @@ -1277,11 +1277,11 @@ namespace ipl { OSReport("fail: async result = %d\n", result); switch (mProcessType) { case PROC_CPY: { - mpChanAppEdit->anmTextFadein(MESG_DATA_COPY_UNK_ERROR); + mpChanAppEdit->anmTextFadein(MESG_DATA_COPY_FAILED); break; } case PROC_DEL: { - mpChanAppEdit->anmTextFadein(MESG_DATA_DEL_UNK_ERROR); + mpChanAppEdit->anmTextFadein(MESG_DATA_DELETE_FAILED); break; } case PROC_FMT: { @@ -1289,7 +1289,7 @@ namespace ipl { break; } case PROC_MOV: { - mpChanAppEdit->anmTextFadein(MESG_DATA_MOVE_UNK_ERROR); + mpChanAppEdit->anmTextFadein(MESG_DATA_MOVE_FAILED); break; } } diff --git a/src/scene/channelEdit/iplNandSDCardManager.cpp b/src/scene/channelEdit/iplNandSDCardManager.cpp index 696a27d7..9347f7f9 100644 --- a/src/scene/channelEdit/iplNandSDCardManager.cpp +++ b/src/scene/channelEdit/iplNandSDCardManager.cpp @@ -29,7 +29,7 @@ namespace ipl { NandSDCardManager::NandSDCardManager(Mode mode) : mState(STATE_INIT), mMode(mode), mpWorker(NULL), mpWorkerWorkBuf(NULL), mpWorkerDataBuf(NULL), mpNandTitleIds(NULL), mpSDTitleIds(NULL), mThumbnails(), mBanners(), mpActiveChanAppBox(NULL), mpActiveThumbnail(NULL), mpActiveSavedataBox(NULL), mpActiveBanner(NULL), - mNandBlocksFree(-1), mSDBlocksFree(-1), mbDisableThumbFetch(false), mTmpTitleId(0), unk_0xE87A0(false) { + mNandBlocksFree(-1), mSDBlocksFree(-1), mbDisableThumbFetch(false), mTmpTitleId(0), mbDeleteSDAppAfterRestore(false) { mpWorker = new (System::getMem2App()) NandSDWorker(); mpWorkerWorkBuf = System::getMem2App()->alloc(0x3ea60, 0x40); @@ -357,7 +357,7 @@ namespace ipl { } case CMD_COPY_SDAPP_TO_NAND: { if (cmd.sdTitleId == (ESTitleId32)mTmpTitleId) { - unk_0xE87A0 = false; + mbDeleteSDAppAfterRestore = false; mpWorker->check_sd_title_restorable_async(cmd.sdTitleId); mState = STATE_CHECK_SD_TITLE_RESTORABLE; } else { @@ -457,7 +457,7 @@ namespace ipl { case CMD_MOVE_SDAPP_TO_NAND: { if (cmd.sdTitleId == (ESTitleId32)mTmpTitleId) { mpActiveChanAppBox = cmd.chanAppBox; - unk_0xE87A0 = true; + mbDeleteSDAppAfterRestore = true; mpWorker->check_sd_title_restorable_async(cmd.sdTitleId); mState = STATE_CHECK_SD_TITLE_RESTORABLE; } else { @@ -644,7 +644,7 @@ namespace ipl { GATED_STATE(NandSDCardManager::on_sc_flush, SCCheckStatus() != SC_STATUS_BUSY, { mTmpTitleId = 0; System::getChannelManager()->reserveRefresh(); - if (unk_0xE87A0) { + if (mbDeleteSDAppAfterRestore) { mpWorker->delete_sd_app_async(mpActiveChanAppBox->getThumbnail()->getSDTitleId()); mState = STATE_DEL_SDAPP; } else { diff --git a/src/scene/faceSelect/iplFaceSelect.cpp b/src/scene/faceSelect/iplFaceSelect.cpp index ebd2e7e7..33a807f8 100644 --- a/src/scene/faceSelect/iplFaceSelect.cpp +++ b/src/scene/faceSelect/iplFaceSelect.cpp @@ -198,11 +198,11 @@ namespace ipl { mbPreparing = true; // Setup text balloons - f32 unk4 = 30.0f; - f32 unk3 = 120.0f; + f32 balloonMargin4x3 = 30.0f; + f32 balloonMargin16x9 = 120.0f; for (int i = 0; i < MAX_BALLOONS; i++) { mpBalloons[i] = - new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt", math::VEC3(0.0f, 0.0f, 0.0f), unk3, unk4); + new TextBalloon(getSceneHeap(), mpBalloonFile, "arc", "my_IplTopBalloon_a.brlyt", math::VEC3(0.0f, 0.0f, 0.0f), balloonMargin16x9, balloonMargin4x3); } } @@ -317,8 +317,8 @@ namespace ipl { // ughhhh f32 val = 0.5f; - f32 unk0 = projRect.GetWidth() * val; - f32 unk1 = rMode.fbWidth / projRect.GetWidth(); + f32 halfProjectionWidth = projRect.GetWidth() * val; + f32 framebufferScaleX = rMode.fbWidth / projRect.GetWidth(); nw4r::lyt::Pane* cutPane = mpLayout->FindPaneByName("N_Cut_00"); nw4r::ut::Rect paneRect = cutPane->GetPaneRect(*mpLayout->getDrawInfo()); @@ -333,7 +333,7 @@ namespace ipl { mpLayout->FindPaneByName("Mask_00")->SetVisible(true); mpLayout->draw("Mask_00"); - GXSetScissor((unk1 * (vec0.x + unk0)) + 0.5f, scTop, (unk1 * (vec1.x - vec0.x)) - 0.5f, scHeight); + GXSetScissor((framebufferScaleX * (vec0.x + halfProjectionWidth)) + 0.5f, scTop, (framebufferScaleX * (vec1.x - vec0.x)) - 0.5f, scHeight); mpLayout->FindPaneByName("Mask_00")->SetVisible(false); mpLayout->FindPaneByName("N_TopBtn")->SetVisible(false); diff --git a/src/scene/letterWriter/iplLetterWriter.cpp b/src/scene/letterWriter/iplLetterWriter.cpp index b2222c3f..500614d4 100644 --- a/src/scene/letterWriter/iplLetterWriter.cpp +++ b/src/scene/letterWriter/iplLetterWriter.cpp @@ -196,9 +196,9 @@ namespace ipl { mpCaptionString->clear(); mpCaptionString->set(System::getMessage(MESG_LETTERWRITER_LETTER_HEADER)); - wchar_t* unk = wcsstr(mpCaptionString->getWCString(), L"xxxxxxxxxx"); + wchar_t* namePlaceholder = wcsstr(mpCaptionString->getWCString(), L"xxxxxxxxxx"); - mpCaptionString->replace((unk - mpCaptionString->getWCString()), RFL_NAME_LENGTH, headerCaption); + mpCaptionString->replace((namePlaceholder - mpCaptionString->getWCString()), RFL_NAME_LENGTH, headerCaption); return mpCaptionString->getWCString(); } diff --git a/src/scene/memory/iplMemory.cpp b/src/scene/memory/iplMemory.cpp index b516729c..d2da5762 100644 --- a/src/scene/memory/iplMemory.cpp +++ b/src/scene/memory/iplMemory.cpp @@ -398,7 +398,7 @@ namespace ipl { int blockOpenOffset = 0; const wchar_t* blockOpenMsg = System::getMessage(MESG_CHAN_EDIT_BLOCKS_OPEN); - const wchar_t* unkMsg = System::getMessage(MESG_CHAN_EDIT_BLANK); + const wchar_t* blankMessage = System::getMessage(MESG_CHAN_EDIT_BLANK); while (true) { wchar_t chr = *blockOpenMsg++; @@ -410,7 +410,7 @@ namespace ipl { blocksFreeMsg[--blockOpenOffset] = L' '; wcscpy(blocksFreeMsg + blockOpenOffset, digits + zeroOffset); - wcscat(blocksFreeMsg, unkMsg); + wcscat(blocksFreeMsg, blankMessage); mpSavedataBase->set_visible("T_Capa_00", true); mpSavedataBase->set_visible("N_Capa_00", true); @@ -452,7 +452,7 @@ namespace ipl { int blockOpenOffset = 0; const wchar_t* blockOpenMsg = System::getMessage(MESG_CHAN_EDIT_BLOCKS_OPEN); - const wchar_t* unkMsg = System::getMessage(MESG_CHAN_EDIT_BLANK); + const wchar_t* blankMessage = System::getMessage(MESG_CHAN_EDIT_BLANK); while (true) { wchar_t chr = *blockOpenMsg++; @@ -464,7 +464,7 @@ namespace ipl { blocksFreeMsg[--blockOpenOffset] = L' '; wcscpy(blocksFreeMsg + blockOpenOffset, digits + zeroOffset); - wcscat(blocksFreeMsg, unkMsg); + wcscat(blocksFreeMsg, blankMessage); mpSavedataBase->set_visible("T_Capa_00", true); mpSavedataBase->set_visible("N_Capa_00", true); @@ -1268,11 +1268,11 @@ namespace ipl { OSReport("fail: async result = %d\n", result); switch (mProcessType) { case PROC_CPY: { - mpSavedataEdit->anmTextFadein(MESG_DATA_COPY_UNK_ERROR); + mpSavedataEdit->anmTextFadein(MESG_DATA_COPY_FAILED); break; } case PROC_DEL: { - mpSavedataEdit->anmTextFadein(MESG_DATA_DEL_UNK_ERROR); + mpSavedataEdit->anmTextFadein(MESG_DATA_DELETE_FAILED); break; } case PROC_FMT: { @@ -1280,7 +1280,7 @@ namespace ipl { break; } case PROC_MOV: { - mpSavedataEdit->anmTextFadein(MESG_DATA_MOVE_UNK_ERROR); + mpSavedataEdit->anmTextFadein(MESG_DATA_MOVE_FAILED); break; } } diff --git a/src/scene/nakamuraTest/iplNakamuraTest.cpp b/src/scene/nakamuraTest/iplNakamuraTest.cpp index 70e92968..e5711c41 100644 --- a/src/scene/nakamuraTest/iplNakamuraTest.cpp +++ b/src/scene/nakamuraTest/iplNakamuraTest.cpp @@ -23,7 +23,7 @@ namespace ipl { NakamuraTest::NakamuraTest(EGG::Heap* heap) : scene::FaderSceneBase(heap), mNetSetup() { mpNetSetupHeapBuf = NULL; mpNUPHeapBuf = 0; - unk_0x2B88 = 0; + mReserved2 = 0; mState = 0; mpAppHeapBuf = System::getMem2App()->alloc(0x299999, 4); @@ -99,7 +99,7 @@ namespace ipl { OSReport("Starting Connecting Test\n"); break; } - case NetSetup::NET_SETUP_UNK_4: { + case NetSetup::NET_SETUP_ALTERNATE_ERROR: { mState = 17; mNetSetup.cleanup(); mNetSetupLastErr = mNetSetup.getlasterror(); diff --git a/src/scene/nakamuraTest/iplNetSetup.cpp b/src/scene/nakamuraTest/iplNetSetup.cpp index 8246be7d..878edcc5 100644 --- a/src/scene/nakamuraTest/iplNetSetup.cpp +++ b/src/scene/nakamuraTest/iplNetSetup.cpp @@ -187,7 +187,7 @@ namespace ipl { break; } case NET_SETUP_NOT_STARTED: - case NET_SETUP_UNK_4: + case NET_SETUP_ALTERNATE_ERROR: case NET_SETUP_ERROR: default: { break; diff --git a/src/sound/iplSound.cpp b/src/sound/iplSound.cpp index 09936cac..45cf3169 100644 --- a/src/sound/iplSound.cpp +++ b/src/sound/iplSound.cpp @@ -89,8 +89,8 @@ namespace ipl { } void System::initOnMemory(const void* data, EGG::Heap* heap, u32 soundSize) { - unk_0x620[0] = 0; - unk_0x620[1] = 0; + mSoundWork[0] = 0; + mSoundWork[1] = 0; _mainBGMHandle = NULL; EGG::SimpleAudioMgrWithFx::ArgWithFx arg; int i; @@ -101,7 +101,7 @@ namespace ipl { arg.fxArg.heapSize[1] = 0; arg.fxArg.heapSize[2] = 0; initialize(&arg); - unk_0x620[2] = reinterpret_cast(setupMemoryArchive(data, &getSoundHeap())); + mSoundWork[2] = reinterpret_cast(setupMemoryArchive(data, &getSoundHeap())); initFx(); sBannerSoundPlayer.init(5); for (i = 0; i < 16; i++) { @@ -315,24 +315,24 @@ namespace ipl { } } - void System::stopAllSound(int unk) { + void System::stopAllSound(int fadeFrames) { int frame; tagSSeInfo* block; int i = 0; for (; i < 16; i++) { block = &_seBlk[i]; - block->handle.Stop(unk); + block->handle.Stop(fadeFrames); block->name = NULL; block->id = 0xffff; } if (_mainBGMHandle != NULL) { - _mainBGMHandle->Stop(unk); + _mainBGMHandle->Stop(fadeFrames); } - sBannerSoundPlayer.stop(unk); - frame = unk * 1000 / 60; + sBannerSoundPlayer.stop(fadeFrames); + frame = fadeFrames * 1000 / 60; nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_A, frame); nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_B, frame); nw4r::snd::detail::AxManager::GetInstance().ClearEffect(nw4r::snd::AUX_C, frame); @@ -469,20 +469,20 @@ namespace snd { } tagSSeInfo* System::getFreeSEBlock(bool force) { - int index = clipGELT_S32(unk_0x620[0] + 1, 0, 16); - unk_0x620[0] = index; + int index = clipGELT_S32(mSoundWork[0] + 1, 0, 16); + mSoundWork[0] = index; int i = 0; for (; i < 16; i++) { - index = clipGELT_S32(unk_0x620[0] + i, 0, 16); + index = clipGELT_S32(mSoundWork[0] + i, 0, 16); if (_seBlk[index].handle.IsAttachedSound()) { continue; } - unk_0x620[0] = index; - return &_seBlk[unk_0x620[0]]; + mSoundWork[0] = index; + return &_seBlk[mSoundWork[0]]; } if (force) { - return &_seBlk[unk_0x620[0]]; + return &_seBlk[mSoundWork[0]]; } return NULL; @@ -495,8 +495,8 @@ namespace snd { return sBannerSoundPlayer.start(data, size); } - void System::stopBannerSound(int unk) { - sBannerSoundPlayer.stop(unk); + void System::stopBannerSound(int fadeFrames) { + sBannerSoundPlayer.stop(fadeFrames); } BOOL System::checkTmpSoundFile(void* data, u32 size) { diff --git a/src/system/iplCdbManager.cpp b/src/system/iplCdbManager.cpp index d34468c4..c48efb65 100644 --- a/src/system/iplCdbManager.cpp +++ b/src/system/iplCdbManager.cpp @@ -18,8 +18,8 @@ namespace ipl { utility::autoMutexLock lock(mMutex); - unk_0x39 = 0; - unk_0x38 = 0; + mReserved1 = 0; + mReserved0 = 0; CDBErr err = CDBDatabaseInit(&mDatabase); error_handling(err, 52); @@ -391,11 +391,11 @@ namespace ipl { return error_handling(err, 707); } - BOOL Manager::search(const CDBDate& begin, const CDBDate& end, CDBSearchDirection searchDirection, CDBRecordLocation recordLocation, int unk2, + BOOL Manager::search(const CDBDate& begin, const CDBDate& end, CDBSearchDirection searchDirection, CDBRecordLocation recordLocation, int openRecord, CDBSearchRecordCB searchRecordCB, void* searchRecordWork) { utility::autoMutexLock lock(mMutex); CDBErr err = - CDBDatabaseSearch(&mDatabase, begin, end, searchDirection, NULL, NULL, 0, recordLocation, unk2, searchRecordCB, searchRecordWork); + CDBDatabaseSearch(&mDatabase, begin, end, searchDirection, NULL, NULL, 0, recordLocation, openRecord, searchRecordCB, searchRecordWork); return error_handling(err, 741); } diff --git a/src/system/iplChannelManager.cpp b/src/system/iplChannelManager.cpp index 40238409..fc8381ce 100644 --- a/src/system/iplChannelManager.cpp +++ b/src/system/iplChannelManager.cpp @@ -119,7 +119,7 @@ namespace ipl { // Reset disk banner data memset(&mDiskChanMetaHdr, 0, sizeof(mDiskChanMetaHdr)); - mDiskChanMetaHdr.blockHdr.unk_00 = TRUE; + mDiskChanMetaHdr.blockHdr.isDisk = TRUE; // Reset channel jump data memset(&mChJumpData, 0, sizeof(mChJumpData)); @@ -308,22 +308,22 @@ namespace ipl { return TRUE; } - void* Manager::getDiskThumbnail(bool unk) { - return getDiskBannerData(DISK_BANNERDATA_ICON, unk); + void* Manager::getDiskThumbnail(bool invalidateReady) { + return getDiskBannerData(DISK_BANNERDATA_ICON, invalidateReady); } - void* Manager::getDiskBanner(bool unk) { - return getDiskBannerData(DISK_BANNERDATA_BANNER, unk); + void* Manager::getDiskBanner(bool invalidateReady) { + return getDiskBannerData(DISK_BANNERDATA_BANNER, invalidateReady); } - void* Manager::getDiskSound(bool unk) { + void* Manager::getDiskSound(bool invalidateReady) { int diskPage, diskIndex; getDiskChannelLocation(&diskPage, &diskIndex); if (mChannels[diskPage][diskIndex].metaHdr->blockHdr.soundSize == 0) { return NULL; } else { - return getDiskBannerData(DISK_BANNERDATA_SOUND, unk); + return getDiskBannerData(DISK_BANNERDATA_SOUND, invalidateReady); } } @@ -1058,7 +1058,7 @@ namespace ipl { return false; } - metaBnr->blockHdr.unk_00 = 1; + metaBnr->blockHdr.isDisk = 1; mChannels[diskPage][diskIndex].headerSize = metaBnr->blockHdr.headerSize; mChannels[diskPage][diskIndex].metaHdr = metaBnr; @@ -1070,12 +1070,12 @@ namespace ipl { } } - void* Manager::getDiskBannerData(int index, bool unk) { + void* Manager::getDiskBannerData(int index, bool invalidateReady) { u8** destData; u32 readSize; ARCFileInfo readFile; - if (unk) { + if (invalidateReady) { mbDiskChannelReady = false; } diff --git a/src/system/iplChannelScriptManager.cpp b/src/system/iplChannelScriptManager.cpp index f9bce68a..2e560216 100644 --- a/src/system/iplChannelScriptManager.cpp +++ b/src/system/iplChannelScriptManager.cpp @@ -31,8 +31,8 @@ namespace ipl { memset(&mCSData, 0, sizeof(mCSData)); memset(&mAltSound, 0, sizeof(mAltSound)); - smCSState = CHANS_VM_STATE_UNK0; - mState = CHANS_VM_MSG_STATE_UNK0; + smCSState = CHANS_VM_STATE_IDLE; + mState = CHANS_VM_MSG_STATE_NONE; mAltSoundState = CHANS_VM_ALT_SND_STATE_UNAVAILABLE; } @@ -85,24 +85,24 @@ namespace ipl { smpThread->setCalcFunc(calcCSThread); smpThread->start(); - smCSState = CHANS_VM_STATE_UNK1; + smCSState = CHANS_VM_STATE_STARTING; return TRUE; } void ChannelScriptManager::calc() { OSMessage msg; - if (smCSState == CHANS_VM_STATE_UNK2 && smpThread->IsThreadSuspended() != FALSE) { + if (smCSState == CHANS_VM_STATE_WAIT_BEGIN_RENDER && smpThread->IsThreadSuspended() != FALSE) { OSReceiveMessage(smpThread->getCalcQueue(), &msg, 0); mState = *(u32*)msg; - if (mState == CHANS_VM_MSG_STATE_UNK1) { - smCSState = CHANS_VM_STATE_UNK3; + if (mState == CHANS_VM_MSG_STATE_BEGIN_RENDER) { + smCSState = CHANS_VM_STATE_RUNNING; smpThread->Resume(); } } - if (smCSState == CHANS_VM_STATE_UNK3) { - if (mState == CHANS_VM_MSG_STATE_UNK2) { + if (smCSState == CHANS_VM_STATE_RUNNING) { + if (mState == CHANS_VM_MSG_STATE_WAIT_RETRACE) { smpThread->Resume(); } @@ -114,7 +114,7 @@ namespace ipl { } } - if (smCSState == CHANS_VM_STATE_UNK4) { + if (smCSState == CHANS_VM_STATE_EXITING) { smpThread->WaitForThreadExit(); smCSState = 0; } @@ -164,12 +164,12 @@ namespace ipl { int msgState; -#define SEND_STATE_4() \ +#define SEND_EXIT_STATE() \ { \ - msgState = CHANS_VM_MSG_STATE_UNK4; \ + msgState = CHANS_VM_MSG_STATE_EXIT; \ BOOL old = OSDisableInterrupts() != FALSE; \ OSSendMessage(smpThread->getCalcQueue(), &msgState, OS_MESSAGE_BLOCK); \ - smCSState = CHANS_VM_STATE_UNK4; \ + smCSState = CHANS_VM_STATE_EXITING; \ OSRestoreInterrupts(old); \ } @@ -183,10 +183,10 @@ namespace ipl { // CHANSVm is awaiting for render if (result == CHANS_VM_ERR_SIGNAL && ((CHANSVmPrivate*)&smCSVm)->bpSignalPending == &VmSystemBeginRenderFlag) { - if (smCSState == CHANS_VM_STATE_UNK1) { - smCSState = CHANS_VM_STATE_UNK2; + if (smCSState == CHANS_VM_STATE_STARTING) { + smCSState = CHANS_VM_STATE_WAIT_BEGIN_RENDER; - msgState = CHANS_VM_MSG_STATE_UNK1; + msgState = CHANS_VM_MSG_STATE_BEGIN_RENDER; OSSendMessage(smpThread->getCalcQueue(), &msgState, OS_MESSAGE_BLOCK); smpThread->Suspend(); @@ -194,15 +194,15 @@ namespace ipl { continue; } - SEND_STATE_4(); + SEND_EXIT_STATE(); return; } // CHANSVm is awaiting for retrace if (result == CHANS_VM_ERR_SIGNAL && ((CHANSVmPrivate*)&smCSVm)->bpSignalPending == &VmSystemWaitForRetraceFlag) { - if (smCSState == CHANS_VM_STATE_UNK3) { - msgState = CHANS_VM_MSG_STATE_UNK2; + if (smCSState == CHANS_VM_STATE_RUNNING) { + msgState = CHANS_VM_MSG_STATE_WAIT_RETRACE; OSSendMessage(smpThread->getCalcQueue(), &msgState, OS_MESSAGE_BLOCK); smpThread->Suspend(); @@ -210,7 +210,7 @@ namespace ipl { continue; } - SEND_STATE_4(); + SEND_EXIT_STATE(); return; } @@ -225,7 +225,7 @@ namespace ipl { break; } - SEND_STATE_4(); + SEND_EXIT_STATE(); } } // namespace channel } // namespace ipl diff --git a/src/system/iplDialogWindow.cpp b/src/system/iplDialogWindow.cpp index 57d0b33d..27a86989 100644 --- a/src/system/iplDialogWindow.cpp +++ b/src/system/iplDialogWindow.cpp @@ -449,8 +449,8 @@ namespace ipl { // unused logic? { - f32 unknown_float = mPageAlpha / 255.f; - math::VEC2 unknown_vec(unknown_float, unknown_float); + f32 normalizedAlpha = mPageAlpha / 255.f; + math::VEC2 alphaScale(normalizedAlpha, normalizedAlpha); } if (mPageAlpha != 0) { diff --git a/src/system/iplNandSDWorker.cpp b/src/system/iplNandSDWorker.cpp index 6ca0ff98..ff73701d 100644 --- a/src/system/iplNandSDWorker.cpp +++ b/src/system/iplNandSDWorker.cpp @@ -84,7 +84,7 @@ namespace ipl { OSInitMutex(&myWork->mutex); myWork->mainHeap = MEMCreateExpHeapEx(myWork->mHeap19000Buf, sizeof(myWork->mHeap19000Buf), 0); - myWork->unkHeap = NULL; + myWork->scratchHeap = NULL; /* Setup Save Data list */ @@ -93,9 +93,9 @@ namespace ipl { nw4r::ut::List_Init(&myWork->sdSaveList, offsetof(SaveCacheEntry, link)); myWork->saveCacheHeap = MEMCreateUnitHeapEx(savesBuf, saveCacheHeapSize(), sizeof(SaveCacheEntry), 32, 0); - myWork->unkHeap = MEMCreateExpHeapEx((u8*)savesBuf + saveCacheHeapSize(), 0x40000, 0); + myWork->scratchHeap = MEMCreateExpHeapEx((u8*)savesBuf + saveCacheHeapSize(), 0x40000, 0); - MEMInitAllocatorForExpHeap(&myWork->unkAllocator, myWork->unkHeap, 64); + MEMInitAllocatorForExpHeap(&myWork->scratchAllocator, myWork->scratchHeap, 64); } else { myWork->saveCacheHeap = NULL; } @@ -108,9 +108,9 @@ namespace ipl { myWork->appCacheHeap = MEMCreateUnitHeapEx(appsBuf, appCacheHeapSize(), sizeof(AppCacheEntry), 32, 0); - if (myWork->unkHeap == NULL) { - myWork->unkHeap = MEMCreateExpHeapEx((u8*)appsBuf + appCacheHeapSize(), 0x40000, 0); - MEMInitAllocatorForExpHeap(&myWork->unkAllocator, myWork->unkHeap, 64); + if (myWork->scratchHeap == NULL) { + myWork->scratchHeap = MEMCreateExpHeapEx((u8*)appsBuf + appCacheHeapSize(), 0x40000, 0); + MEMInitAllocatorForExpHeap(&myWork->scratchAllocator, myWork->scratchHeap, 64); } } else { myWork->appCacheHeap = NULL; @@ -393,7 +393,7 @@ namespace ipl { myWork->paramA = ptrA; myWork->paramB = ptrB; myWork->paramC = ptrC; - send_work(MESSAGE_UNK_49); + send_work(MESSAGE_CHECK_SD_APP_TITLES); } void NandSDWorker::get_nand_save_size_async(ESTitleId titleId) { @@ -584,7 +584,7 @@ namespace ipl { bool NandSDWorker::is_user_nand_app(ESTitleId titleId) { #define USER_APP_TYPE_MASK \ ((1 << TITLE_TYPE_LO(TITLE_TYPE_DISC)) | (1 << TITLE_TYPE_LO(TITLE_TYPE_CHANNEL)) | (1 << TITLE_TYPE_LO(TITLE_TYPE_DISC_CHANNEL)) | \ - (1 << TITLE_TYPE_LO(TITLE_TYPE_UNK6)) | (1 << TITLE_TYPE_LO(TITLE_TYPE_UNK7))) + (1 << TITLE_TYPE_LO(TITLE_TYPE_UNK6)) | (1 << TITLE_TYPE_LO(TITLE_TYPE_USER_APP7))) bool valid = false; bool matchUserAppType = false; @@ -598,7 +598,7 @@ namespace ipl { 0x00010007 */ u32 titleSubtype = (u32)ES_TITLE_TYPE_NOMASK(titleId) - TITLE_TYPE_DISC; - if (titleSubtype <= TITLE_TYPE_LO(TITLE_TYPE_UNK7) && ((1 << titleSubtype) & USER_APP_TYPE_MASK)) { + if (titleSubtype <= TITLE_TYPE_LO(TITLE_TYPE_USER_APP7) && ((1 << titleSubtype) & USER_APP_TYPE_MASK)) { matchUserAppType = true; } @@ -726,8 +726,8 @@ namespace ipl { if (myWork->appCacheHeap != NULL) { MEMDestroyUnitHeap(myWork->appCacheHeap); } - if (myWork->unkHeap != NULL) { - MEMDestroyExpHeap(myWork->unkHeap); + if (myWork->scratchHeap != NULL) { + MEMDestroyExpHeap(myWork->scratchHeap); } terminated = true; @@ -796,7 +796,7 @@ namespace ipl { check_backup_fits(); break; } - case MESSAGE_UNK_49: { + case MESSAGE_CHECK_SD_APP_TITLES: { do_check_sd_app_titles(); break; } @@ -1049,8 +1049,8 @@ namespace ipl { myWork->asyncResult = RESULT_NAND_CORRUPT; goto clean_up; } - if (result == RESULT_UNK_18) { - myWork->asyncResult = RESULT_UNK_18; + if (result == RESULT_CANCELLED) { + myWork->asyncResult = RESULT_CANCELLED; goto clean_up; } myWork->nandAppNum = numNandApps; @@ -1236,7 +1236,7 @@ namespace ipl { OSReport("NandSDWorker: cleaning partial nand app...\n"); for (int i = 0; i < titleIdCount; i++) { if (mbCancel != false) { - return RESULT_UNK_18; + return RESULT_CANCELLED; } // The titles that we are going to delete are: @@ -1641,7 +1641,7 @@ namespace ipl { void NandSDWorker::do_get_sd_save_banner() { SaveCacheEntry* cacheEntry = find_save_cache(&myWork->sdSaveList, myWork->curTitleId); if (cacheEntry == NULL || cacheEntry->banner.signature == 0) { - SDSaveBanner* sdSaveBanner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDSaveBanner)); + SDSaveBanner* sdSaveBanner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDSaveBanner)); int result = get_sd_save_banner(myWork->curTitleId, sdSaveBanner); if (result == RESULT_OK) { memcpy(myWork->paramA, &sdSaveBanner->banner, sizeof(WIISaveBannerFile)); @@ -1656,7 +1656,7 @@ namespace ipl { } else { myWork->asyncResult = result; } - MEMFreeToAllocator(&myWork->unkAllocator, sdSaveBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdSaveBanner); } else { memcpy(myWork->paramA, &cacheEntry->banner, sizeof(WIISaveBannerFile)); myWork->asyncResult = RESULT_OK; @@ -1666,7 +1666,7 @@ namespace ipl { void NandSDWorker::do_get_sd_app_thumbnail() { AppCacheEntry* cacheEntry = find_app_cache(&myWork->sdAppList, myWork->curTitleId); if (cacheEntry == NULL || cacheEntry->thumbSize == -1) { - SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); int result = get_sd_app_banner(myWork->curTitleId, sdAppBanner); if (result != RESULT_OK) { myWork->asyncResult = result; @@ -1690,7 +1690,7 @@ namespace ipl { } } if (sdAppBanner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); } } else { memcpy(myWork->paramA, cacheEntry->thumbnail, cacheEntry->thumbSize); @@ -1704,7 +1704,7 @@ namespace ipl { void NandSDWorker::do_get_sd_app_meta() { AppCacheEntry* cacheEntry = find_app_cache(&myWork->sdAppList, myWork->curTitleId); if (cacheEntry == NULL || cacheEntry->thumbSize == -1) { - SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); int result = get_sd_app_banner(myWork->curTitleId, sdAppBanner); if (result != RESULT_OK) { myWork->asyncResult = result; @@ -1728,7 +1728,7 @@ namespace ipl { } } if (sdAppBanner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); } } else { memcpy(myWork->paramA, cacheEntry->thumbnail, cacheEntry->thumbSize); @@ -1746,8 +1746,8 @@ namespace ipl { NETMD5Sum MD5Sum; const char* c_sd_app_location_paths[2] = {"/private/wii/loc.dat", "/private/wii/loc.bak"}; - SDAppLocation* sdAppLoc = (SDAppLocation*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppLocation)); - SDAppLocation* sdAppLocEncrypt = (SDAppLocation*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppLocation)); + SDAppLocation* sdAppLoc = (SDAppLocation*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppLocation)); + SDAppLocation* sdAppLocEncrypt = (SDAppLocation*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppLocation)); // "sdal" (SD App Location?) sdAppLoc->signature[0] = 's'; sdAppLoc->signature[1] = 'd'; @@ -1835,8 +1835,8 @@ namespace ipl { } } - MEMFreeToAllocator(&myWork->unkAllocator, sdAppLoc); - MEMFreeToAllocator(&myWork->unkAllocator, sdAppLocEncrypt); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppLoc); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppLocEncrypt); } void NandSDWorker::do_read_sd_app_location() { @@ -1845,8 +1845,8 @@ namespace ipl { NETMD5Context md5Ctx; const char* c_sd_app_location_paths[2] = {"/private/wii/loc.dat", "/private/wii/loc.bak"}; - SDAppLocation* sdAppLocEncrypt = (SDAppLocation*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppLocation)); - SDAppLocation* sdAppLoc = (SDAppLocation*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppLocation)); + SDAppLocation* sdAppLocEncrypt = (SDAppLocation*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppLocation)); + SDAppLocation* sdAppLoc = (SDAppLocation*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppLocation)); myWork->asyncResult = RESULT_FATAL_SD_ERROR; get_sd_free_area(); // why? @@ -1896,13 +1896,13 @@ namespace ipl { if (hadSuccess && errored) { myWork->asyncResult = RESULT_SD_APP_LOC_NOT_FOUND; } - MEMFreeToAllocator(&myWork->unkAllocator, sdAppLocEncrypt); - MEMFreeToAllocator(&myWork->unkAllocator, sdAppLoc); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppLocEncrypt); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppLoc); } void NandSDWorker::do_check_for_sd_app_to_nand() { // TODO: Clean up paramA and paramB types - SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); u16 nandTitleVersion, sdTitleVersion; u32 numTicketViews; @@ -1951,7 +1951,7 @@ namespace ipl { // Get WAD blocks WADBlocks wadBlocks; - err = WADImportGetBlocks(appPath, &myWork->unkAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), 1, + err = WADImportGetBlocks(appPath, &myWork->scratchAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), 1, &wadBlocks, NULL); if (err == WAD_ERROR_INCORRECT_DEVICE) { OSReport("NandSDWorker: WADImportGetBlocks failed, not original Wii.[%d]\n", err); @@ -2010,7 +2010,7 @@ namespace ipl { myWork->asyncResult = RESULT_OK; } clean_up: - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); } void NandSDWorker::check_backup_fits() { @@ -2045,7 +2045,7 @@ namespace ipl { u32 backupSize = 0; u32 wadOffset = sizeof(SDAppBanner) + ROUNDUP(backupData->head.thumbSize, 64); - s32 err = WADBackupEx(newTitleIds[i], 1, &myWork->unkAllocator, NULL, &backupSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); + s32 err = WADBackupEx(newTitleIds[i], 1, &myWork->scratchAllocator, NULL, &backupSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); if (err != WAD_ERROR_OK) { OSReport("NandSDWorker: WADBackup failed.[%d]\n", err); myWork->asyncResult = RESULT_FATAL_SD_ERROR; @@ -2070,7 +2070,7 @@ namespace ipl { u32 backupSize = 0; u32 wadOffset = sizeof(SDAppBanner) + ROUNDUP(backupData->head.thumbSize, 64); - s32 err = WADBackupEx(replacingTitleIds[i], 1, &myWork->unkAllocator, NULL, &backupSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); + s32 err = WADBackupEx(replacingTitleIds[i], 1, &myWork->scratchAllocator, NULL, &backupSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); if (err != WAD_ERROR_OK) { OSReport("NandSDWorker: WADBackup failed.[%d]\n", err); myWork->asyncResult = RESULT_FATAL_SD_ERROR; @@ -2180,7 +2180,7 @@ namespace ipl { } void NandSDWorker::do_check_sd_app_titles() { - SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); /* i guess */ TitleIdList* titleIdList = (TitleIdList*)myWork->paramA; @@ -2254,7 +2254,7 @@ namespace ipl { myWork->asyncResult = RESULT_OK; - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); } void NandSDWorker::do_get_nand_save_size() { @@ -2643,7 +2643,7 @@ namespace ipl { ticketView.accessTitleMask = ticketViewList[i].accessTitleMask; ticketView.license = ticketViewList[i].license; ticketView.reserved = ticketViewList[i].reserved; - ticketView.unk_0x55 = ticketViewList[i].unk_0x55; + ticketView.reservedBeforeContentMask = ticketViewList[i].reservedBeforeContentMask; ticketView.cidxMask = ticketViewList[i].cidxMask; ticketView.limits = ticketViewList[i].limits; esErr = ES_DeleteTicket(&ticketView); @@ -2722,7 +2722,7 @@ namespace ipl { case TITLE_TYPE_DISC_CHANNEL: case TITLE_TYPE_SHARED: case TITLE_TYPE_UNK6: - case TITLE_TYPE_UNK7: { + case TITLE_TYPE_USER_APP7: { // Delete user installed titles ret = utility::ESMisc::DeleteTitle(System::getMem2Sys(), titleIds[i]); if (ret != ES_ERR_OK && ret != ES_ERR_DONT_EXISTS) { @@ -2932,10 +2932,10 @@ namespace ipl { // Attempt to backup if (isDataOnlyTitle) { wadErr = - WADBackupEx(myWork->curTitleId, 1, &myWork->unkAllocator, NULL, &backupWadSize, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), NULL); + WADBackupEx(myWork->curTitleId, 1, &myWork->scratchAllocator, NULL, &backupWadSize, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), NULL); } else { wadErr = - WADBackupEx(myWork->curTitleId, 14, &myWork->unkAllocator, NULL, &backupWadSize, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), NULL); + WADBackupEx(myWork->curTitleId, 14, &myWork->scratchAllocator, NULL, &backupWadSize, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), NULL); } if (wadErr == WAD_ERROR_NOCOPY) { OSReport("NandSDWorker: WADBackup 0x%016llx failed, this save data has nocopy only.[%d]\n", myWork->curTitleId, wadErr); @@ -2958,7 +2958,7 @@ namespace ipl { NETCalcMD5(MD5Sum, sdSaveBnr, sizeof(SDSaveBanner)); memcpy(sdSaveBnr->MD5Sum, MD5Sum, NET_MD5_DIGEST_SIZE); - encSaveBnr = MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDSaveBanner)); + encSaveBnr = MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDSaveBanner)); if (encrypt(sdSaveBnr, sizeof(SDSaveBanner), encSaveBnr) != RESULT_OK) { myWork->asyncResult = RESULT_FATAL_SD_ERROR; goto clean_up; @@ -2966,9 +2966,9 @@ namespace ipl { backedUp = true; if (isDataOnlyTitle) { - wadErr = WADBackupEx(myWork->curTitleId, 1, &myWork->unkAllocator, savePath, &backupWadSize, WAD_LOCATION_SD_CARD, 0xf0c0, NULL); + wadErr = WADBackupEx(myWork->curTitleId, 1, &myWork->scratchAllocator, savePath, &backupWadSize, WAD_LOCATION_SD_CARD, 0xf0c0, NULL); } else { - wadErr = WADBackupEx(myWork->curTitleId, 14, &myWork->unkAllocator, savePath, &backupWadSize, WAD_LOCATION_SD_CARD, 0xf0c0, NULL); + wadErr = WADBackupEx(myWork->curTitleId, 14, &myWork->scratchAllocator, savePath, &backupWadSize, WAD_LOCATION_SD_CARD, 0xf0c0, NULL); } if (wadErr == WAD_ERROR_NOCOPY) { OSReport("NandSDWorker: WADBackup 0x%016llx failed, this save data has nocopy only.[%d]\n", myWork->curTitleId, wadErr); @@ -3027,7 +3027,7 @@ namespace ipl { MEMFreeToExpHeap(myWork->mainHeap, sdSaveBnr); } if (encSaveBnr != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, encSaveBnr); + MEMFreeToAllocator(&myWork->scratchAllocator, encSaveBnr); } change_uid(SYSMENU_TITLE_ID); @@ -3108,7 +3108,7 @@ namespace ipl { if (result == RESULT_OK) { if ((fileStat.stat & FA_FILE_STAT_DIR) == 0) { OSReport("NandSDWorker: %s is not a dir.[%d]\n", fileName, fileStat.stat); - return RESULT_UNK_N12; + return RESULT_FILENAME_CONFLICT; } break; } @@ -3170,7 +3170,7 @@ namespace ipl { bool changedDir = false; bool isDataOnlyTitle = false; get_sd_save_path(myWork->curTitleId, sdSavePath); - saveBanner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDSaveBanner)); + saveBanner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDSaveBanner)); int getSaveBannerRes = get_sd_save_banner(myWork->curTitleId, saveBanner); if (getSaveBannerRes != RESULT_OK) { myWork->asyncResult = getSaveBannerRes; @@ -3252,7 +3252,7 @@ namespace ipl { } WADBlocks wadBlocks; - wadErr = WADImportGetBlocks(sdSavePath, &myWork->unkAllocator, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), 1, &wadBlocks, NULL); + wadErr = WADImportGetBlocks(sdSavePath, &myWork->scratchAllocator, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), 1, &wadBlocks, NULL); if (wadErr == WAD_ERROR_INCORRECT_DEVICE) { OSReport("NandSDWorker: WADImportGetBlocks failed, not original Wii.[%d]\n", wadErr); myWork->asyncResult = RESULT_NOT_TRANSFERRABLE; @@ -3297,7 +3297,7 @@ namespace ipl { } } - wadErr = WADImportEx(sdSavePath, &myWork->unkAllocator, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), 8, NULL); + wadErr = WADImportEx(sdSavePath, &myWork->scratchAllocator, WAD_LOCATION_SD_CARD, sizeof(SDSaveBanner), 8, NULL); if (wadErr != WAD_ERROR_OK) { OSReport("NandSDWorker: WADRestoreSDEx failed.[%d]\n", wadErr); if (isDataOnlyTitle) { @@ -3387,7 +3387,7 @@ namespace ipl { } } if (saveBanner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, saveBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, saveBanner); } } @@ -3670,7 +3670,7 @@ namespace ipl { wadSize = 0; wadOffset = ROUNDUP(sdBanner->head.thumbSize, 64) + sizeof(SDAppBanner); - result = WADBackupEx(myWork->curTitleId, 1, &myWork->unkAllocator, NULL, &wadSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); + result = WADBackupEx(myWork->curTitleId, 1, &myWork->scratchAllocator, NULL, &wadSize, WAD_LOCATION_SD_CARD, wadOffset, NULL); if (result != 0) { OSReport("NandSDWorker: WADBackup failed.[%d]\n", result); myWork->asyncResult = RESULT_FATAL_SD_ERROR; @@ -3698,7 +3698,7 @@ namespace ipl { NETCalcMD5(MD5Sum, sdBanner, sizeof(SDAppBanner)); memcpy(sdBanner->head.headerMD5, MD5Sum, NET_MD5_DIGEST_SIZE); - encBanner = (SDAppBackupData*)MEMAllocFromAllocator(&myWork->unkAllocator, wadOffset); + encBanner = (SDAppBackupData*)MEMAllocFromAllocator(&myWork->scratchAllocator, wadOffset); if (encrypt(&sdBanner->head, sizeof(SDAppBanner), &encBanner->head) != RESULT_OK) { myWork->asyncResult = RESULT_FATAL_SD_ERROR; goto clean_up; @@ -3712,7 +3712,7 @@ namespace ipl { backedUp = true; s32 wadErr; - wadErr = WADBackupEx(myWork->curTitleId, 1, &myWork->unkAllocator, sdAppPath, &wadSize, WAD_LOCATION_SD_CARD, wadOffset, + wadErr = WADBackupEx(myWork->curTitleId, 1, &myWork->scratchAllocator, sdAppPath, &wadSize, WAD_LOCATION_SD_CARD, wadOffset, wad_backup_progress_callback); if (wadErr != WAD_ERROR_OK) { OSReport("NandSDWorker: WADBackup failed.[%d]\n", wadErr); @@ -3755,7 +3755,7 @@ namespace ipl { clean_up: MEMFreeToExpHeap(myWork->mainHeap, sdBanner); if (encBanner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, encBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, encBanner); } if (myWork->asyncResult < RESULT_OK && backedUp) { result = handle_sd_error_for_entry(FARemove(sdAppPath), NULL); @@ -4142,7 +4142,7 @@ namespace ipl { } void NandSDWorker::do_copy_sd_app_to_nand(bool changeAppCount) { - SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); u16 titleVersion = 0; u16 wadVersion = 0; if (!changeAppCount) { @@ -4203,7 +4203,7 @@ namespace ipl { } WADBlocks wadBlocks; - wadErr = WADImportGetBlocks(sdAppPath, &myWork->unkAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), + wadErr = WADImportGetBlocks(sdAppPath, &myWork->scratchAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), 1, &wadBlocks, NULL); if (wadErr == WAD_ERROR_INCORRECT_DEVICE) { OSReport("NandSDWorker: WADImportGetBlocks failed, not original Wii.[%d]\n", wadErr); @@ -4226,7 +4226,7 @@ namespace ipl { goto clean_up; } - wadErr = WADImportEx(sdAppPath, &myWork->unkAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), 8, + wadErr = WADImportEx(sdAppPath, &myWork->scratchAllocator, WAD_LOCATION_SD_CARD, ROUNDUP(sdAppBanner->thumbSize, 64) + sizeof(SDAppBanner), 8, wad_backup_progress_callback); if (wadErr == WAD_ERROR_INCORRECT_DEVICE) { OSReport("NandSDWorker: WADRestoreSDEx failed, not original Wii.[%d]\n", wadErr); @@ -4258,7 +4258,7 @@ namespace ipl { clean_up: if (sdAppBanner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); } return; } @@ -4367,7 +4367,7 @@ namespace ipl { } cmprBuf = (u8*)MEMAllocFromExpHeapEx(myWork->mainHeap, ROUNDUP(appBanner->thumbSize, 64), 32); - encBanner = (u8*)MEMAllocFromAllocator(&myWork->unkAllocator, ROUNDUP(appBanner->thumbSize, 64)); + encBanner = (u8*)MEMAllocFromAllocator(&myWork->scratchAllocator, ROUNDUP(appBanner->thumbSize, 64)); FAFILE* stream; stream = FAFopen(appPath, "r"); @@ -4419,7 +4419,7 @@ namespace ipl { clean_up: MEMFreeToExpHeap(myWork->mainHeap, cmprBuf); - MEMFreeToAllocator(&myWork->unkAllocator, encBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, encBanner); return ret; } @@ -4878,7 +4878,7 @@ namespace ipl { while (faErr == FA_ERR_SUCCESS) { if (mbCancel != false) { - return RESULT_UNK_18; + return RESULT_CANCELLED; } if ((fileDta.attribute & 0x10) != 0) { @@ -5361,7 +5361,7 @@ namespace ipl { } bool NandSDWorker::is_fa_file(u8 stat) { - return (stat & FA_FILE_STAT_DIR) == 0 && (stat & FA_FILE_UNK_1) == 0; + return (stat & FA_FILE_STAT_DIR) == 0 && (stat & FA_FILE_STAT_HIDDEN) == 0; } int NandSDWorker::get_nand_save_perms(ESTitleId titleId) { @@ -5512,13 +5512,13 @@ namespace ipl { bool NandSDWorker::both_app_exist(ESTitleId32 titleId) { bool exists = false; - SDAppBanner* banner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + SDAppBanner* banner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); if (get_sd_app_banner(titleId, banner) == RESULT_OK && nand_app_exist_ex(banner->titleId) == EXISTENCE_COMPLETE) { exists = true; } if (banner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, banner); + MEMFreeToAllocator(&myWork->scratchAllocator, banner); } return exists; @@ -5526,7 +5526,7 @@ namespace ipl { bool NandSDWorker::check_nand_save_exist_lo(ESTitleId32 titleId) { bool exists = false; - SDSaveBanner* banner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDSaveBanner)); + SDSaveBanner* banner = (SDSaveBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDSaveBanner)); if (get_sd_save_banner(titleId, banner) == RESULT_OK) { if (is_data_only_title(titleId)) { exists = nand_app_exist(banner->curTitleId); @@ -5536,7 +5536,7 @@ namespace ipl { } if (banner != NULL) { - MEMFreeToAllocator(&myWork->unkAllocator, banner); + MEMFreeToAllocator(&myWork->scratchAllocator, banner); } return exists; @@ -5562,10 +5562,10 @@ namespace ipl { SDAppBanner* banner; int ret; - banner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + banner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); ret = get_sd_app_banner(titleId, banner); if (ret != RESULT_OK) { - MEMFreeToAllocator(&myWork->unkAllocator, banner); + MEMFreeToAllocator(&myWork->scratchAllocator, banner); return RESULT_FATAL_SD_ERROR; } else { char path[NAND_MAX_PATH]; @@ -5577,7 +5577,7 @@ namespace ipl { OSReport("NandSDWorker: WADGetTitleVersionEx failed.[%d]\n", wadErr); ret = RESULT_FATAL_SD_ERROR; } - MEMFreeToAllocator(&myWork->unkAllocator, banner); + MEMFreeToAllocator(&myWork->scratchAllocator, banner); return ret; } } @@ -5587,7 +5587,7 @@ namespace ipl { ESTitleId fullTitleId; int ret; - sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->unkAllocator, sizeof(SDAppBanner)); + sdAppBanner = (SDAppBanner*)MEMAllocFromAllocator(&myWork->scratchAllocator, sizeof(SDAppBanner)); u16 nandTitleVersion = 0; u16 sdTitleVersion = 0; ret = get_sd_app_banner(titleId, sdAppBanner); @@ -5634,7 +5634,7 @@ namespace ipl { } clean_up: - MEMFreeToAllocator(&myWork->unkAllocator, sdAppBanner); + MEMFreeToAllocator(&myWork->scratchAllocator, sdAppBanner); return ret; } } // namespace ipl diff --git a/src/system/iplNwc24Manager.cpp b/src/system/iplNwc24Manager.cpp index 8c4a94fc..12f54c6e 100644 --- a/src/system/iplNwc24Manager.cpp +++ b/src/system/iplNwc24Manager.cpp @@ -1009,14 +1009,14 @@ namespace ipl { return TRUE; } - BOOL Manager::isNewMessageThere(u32 unk) const { + BOOL Manager::isNewMessageThere(u32 appId) const { u32 titleTbl[MAX_MESSAGES_COUNT]; if (!getNewTitleTbl(titleTbl)) { return FALSE; } for (int i = 0; i < MAX_MESSAGES_COUNT && titleTbl[i] != 0; i++) { - if (unk == titleTbl[i]) { + if (appId == titleTbl[i]) { return TRUE; } } diff --git a/src/system/iplPostmanManager.cpp b/src/system/iplPostmanManager.cpp index 8a46624f..614aa0ab 100644 --- a/src/system/iplPostmanManager.cpp +++ b/src/system/iplPostmanManager.cpp @@ -59,7 +59,7 @@ namespace ipl { void* Manager::Run() { if (!System::getResetHandler()->isResetting()) { - mState = STATE_UNKNOWN; + mState = STATE_INITIALIZING; update_playlog_(); add_dl_task_(); diff --git a/src/system/iplSocketSetting.cpp b/src/system/iplSocketSetting.cpp index f60cb091..107272e2 100644 --- a/src/system/iplSocketSetting.cpp +++ b/src/system/iplSocketSetting.cpp @@ -53,7 +53,7 @@ namespace ipl { } } - void* SocketSetting::allocfunc(u32 unk, s32 size) { + void* SocketSetting::allocfunc(u32 allocationName, s32 size) { void* buf = NULL; if (size > 0) { buf = MEMAllocFromExpHeapEx(mpHeap, size, DEFAULT_ALIGN); @@ -61,7 +61,7 @@ namespace ipl { return buf; } - void SocketSetting::freefunc(u32 unk, void* buffer, s32 size) { + void SocketSetting::freefunc(u32 allocationName, void* buffer, s32 size) { if (buffer != NULL) { MEMFreeToExpHeap(mpHeap, buffer); } diff --git a/src/system/odh.cpp b/src/system/odh.cpp index b1f15461..d09a9f61 100644 --- a/src/system/odh.cpp +++ b/src/system/odh.cpp @@ -489,7 +489,7 @@ HufftreeData hufftreePtr = { class CArGBAOdh { public: u8* outputCursor; - s32 decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk, int format); + s32 decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8* work, int workSize, int format); s32 compressGbaOdh(u8* src, u8* dest, int width, int height, int quality, u32 sizeLimit, u8* work, int format); s32 cdj_c_initializeCompressOdh(SArCDJ_OdhMaster* master, u16* dimensions, u8 quality, u8* work, u8* dest, u32 sizeLimit); s32 cdj_c_compressLoop(SArCDJ_OdhMaster* master); @@ -531,21 +531,21 @@ int ODHEncodeY8U8V8(u8* src, u8* dest, int width, int height, u32 sizeLimit, int return odh.compressGbaOdh(src, dest, width, height, quality, sizeLimit, work, ODH_FORMAT_Y8U8V8); } -int ODHDecodeRGB565(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk) { +int ODHDecodeRGB565(u8* src, int srcSize, u8* dest, int destSize, u8* work, int workSize) { CArGBAOdh odh; - int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, unk, ODH_FORMAT_RGB565); + int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, workSize, ODH_FORMAT_RGB565); return result; } -int ODHDecodeRGBA8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk) { +int ODHDecodeRGBA8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int workSize) { CArGBAOdh odh; - int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, unk, ODH_FORMAT_RGBA8); + int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, workSize, ODH_FORMAT_RGBA8); return result; } -int ODHDecodeY8U8V8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk) { +int ODHDecodeY8U8V8(u8* src, int srcSize, u8* dest, int destSize, u8* work, int workSize) { CArGBAOdh odh; - int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, unk, ODH_FORMAT_Y8U8V8); + int result = odh.decompressGbaOdh(src, srcSize, dest, destSize, work, workSize, ODH_FORMAT_Y8U8V8); return result; } @@ -557,7 +557,7 @@ int ODHGetHeight(u8* data) { return (((u32*)data)[1] >> 11 & 0x7FF) + 7 & 0x7F8; } -s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8* work, int unk, int format) { +s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8* work, int workSize, int format) { SArCDJ_OdhMaster master; int width; int height; @@ -582,8 +582,8 @@ s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8 if (destSize == 0) { destSize = outputSize; } - if (unk == 0) { - unk = width * height * 3; + if (workSize == 0) { + workSize = width * height * 3; } if (outputSize > destSize) { OSReport("decompressGbaOdh : destination buffer over\n"); @@ -596,7 +596,7 @@ s32 CArGBAOdh::decompressGbaOdh(u8* src, int srcSize, u8* dest, int destSize, u8 return 0; } - result = cdj_d_decompressLoop(&master, srcSize, unk); + result = cdj_d_decompressLoop(&master, srcSize, workSize); if (result != 0) { OSReport("decompressGbaOdh : DECOMPRESSING ERROR %08x\n", result); return 0; diff --git a/tools/decomp-assist/rx22.renames.md b/tools/decomp-assist/rx22.renames.md new file mode 100644 index 00000000..8dbfe98b --- /dev/null +++ b/tools/decomp-assist/rx22.renames.md @@ -0,0 +1,1342 @@ +# rx22 rename evidence and verification + +Base: `36203699`; branch: `agent/w1005/rx22`; target: 43U. + +Completed 770 identifier substitutions across 148 source/header files. Every other source byte is unchanged, including types, expressions, literals, comments, whitespace, declaration order and array extents. No excluded source file was edited. + +Counts in edited files: **808 -> 38**. Whole-tree inventory: **1,520 -> 750**. Of the remaining occurrences, 604 are in explicitly excluded files; the other 146 are documented below as shared ownership, preserved symbol names or a semantic NAT enum. + +Token counts exclude comments and string literals. They cover the requested unk/field/var families, unknown names, hexadecimal value names, offset flags, placeholder enum names and the additional local names explicitly renamed in this log. Positional arg1/arg2 names elsewhere are not counted merely because PredictionState used the same spelling. The requested-regex column counts source lines using the exact expression from the task: + +```text +unk_0x[0-9A-Fa-f]+|field_0x[0-9A-Fa-f]+|\bvar_[0-9a-f]+|unk[0-9A-Fa-f]{2,}\b +``` + +## Verification + +Final command: full (non-quick) `/mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py` with all 1,027 baseline source-unit paths. Raw output: `/tmp/rx22-final-gate.log`; unit arguments: `/tmp/rx22-gate-units.json`. The final report was regenerated with `ninja progress build/43U/report.json build/43U/ok`. + +```text +full build: ok +main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d +regressions vs baseline: 0 +forbidden patterns added (net, per file): 0 +readability warnings (net, per file; must be 0 in the final result): 0 +GATE PASS +``` + +| Measure, all 1,027 source units | Before | After | +| --- | ---: | ---: | +| Instruction-exact functions | 12188/12555 | 12188/12555 | +| Objdiff exact functions | 12457/12563 | 12457/12563 | +| Objdiff matched code bytes | 2805524/2995176 | 2805524/2995176 | +| Objdiff matched data bytes | 1832576/1832684 | 1832576/1832684 | + +- Saved baseline: `/tmp/rx22-report-before.json` and `/tmp/rx22-objects-before.json`. Fresh per-unit report objects, every function score and global measures equal the baseline exactly; the report file itself is byte-identical. +- All allocated sections of all 1,027 objects have identical SHA256 hashes. Whole-object hashes also match for 1,025 objects; only nonallocated bytes differ in iplNandSDWorker.o and iplNandSDCardManager.o. Runtime code/data and relocation-aware objdiff remain unchanged. +- `pool_diff.py` ran for all 1,027 units. All 66 directly edited source units have identical retail string pools. Across the full tree, 1,013 pools equal retail and 14 retain pre-existing differences. Every source .data hash equals the saved baseline, so every before/after pool result is unchanged. Raw checks: `/tmp/rx22-pools.log`. +- The token audit and rename journal agree on all 770 substitutions. All non-identifier bytes match base 36203699. `git diff --check 36203699` passed. +- No matching gain is claimed. All pre-existing unmatched code/data remain at the same scores; the correct DOL SHA1 is preserved. + +Pre-existing pool differences: `libs/NW4R/src/lyt/lyt_textBox`, `libs/RVL_SDK/src/bte/bta_dm_act`, `libs/RVL_SDK/src/bte/bta_hh_api`, `libs/RVL_SDK/src/bte/btm_inq`, `libs/RVL_SDK/src/bte/gap_api`, `libs/RVL_SDK/src/bte/gap_conn`, `libs/RVL_SDK/src/bte/hidd_api`, `libs/RVL_SDK/src/bte/hidd_conn`, `libs/RVL_SDK/src/bte/hidd_mgmt`, `libs/RVL_SDK/src/bte/l2c_utils`, `libs/RVL_SDK/src/bte/port_api`, `libs/RVL_SDK/src/bte/sdp_db`, `libs/RVL_SDK/src/nand/NANDOpenClose`, `src/scene/nakamuraTest/gamespy/nonport`. + +## Rejected trial and scope review + +- Scroller::unk_0x3C -> mScrollVelocity required an edit to excluded src/scene/sdChannelMemory/iplSDMemory.cpp:294. The build exposed that use. Both owned changes were immediately restored; neither appears in this result. +- The first full gate passed for 479 header-dependent units. A broader pass then covered VM states, cancellation/error results and remaining header names. The final full gate covers all 1,027 baseline source objects. +- Opaque arrays retain their original sizes and declaration forms. Names ending in Storage/Work describe their proven role; reserved names mark ranges without named reads. Reset-only scalars are identified separately in the evidence. +- Signals 2-7, title subtype 7, alternate speaker command 5, alternate network error state 4 and the rejected SDA21 section use names describing observed handling. No unproved external protocol meaning is assigned. +- Existing functions such as getUnk_0x08/setUnk_0x08, IsUnknown, GetUnk/SetUnk, unkBool and unk_0x2C were preserved. This is a readability round; instruction-exact counts are expected to remain unchanged. + +## Per-file counts + +| File | Identifier occurrences | Requested-regex lines | +| --- | ---: | ---: | +| `libs/RVL_SDK/src/kpad/KPAD.c` | 110 -> 0 | 0 -> 0 | +| `src/system/iplNandSDWorker.cpp` | 78 -> 5 | 1 -> 0 | +| `libs/RVL_SDK/src/wud/WUD.c` | 26 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/nhttp/d_nhttp_common.c` | 21 -> 19 | 6 -> 4 | +| `src/system/iplChannelScriptManager.cpp` | 20 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/vf/fatfs/pf_fat12.c` | 19 -> 0 | 0 -> 0 | +| `src/scene/board/iplUrlProcessor.cpp` | 19 -> 0 | 10 -> 0 | +| `include/system/iplChannelManager.h` | 18 -> 0 | 0 -> 0 | +| `src/sound/iplSound.cpp` | 16 -> 0 | 9 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24Download.c` | 14 -> 0 | 0 -> 0 | +| `src/keyboard/tiCandidateBox.cpp` | 13 -> 0 | 5 -> 0 | +| `libs/RVL_SDK/src/es/es.c` | 12 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c` | 12 -> 0 | 9 -> 0 | +| `include/iplMemoryCardLib.h` | 11 -> 8 | 11 -> 8 | +| `src/system/odh.cpp` | 11 -> 0 | 0 -> 0 | +| `include/system/iplChannelScriptManager.h` | 10 -> 0 | 0 -> 0 | +| `src/keyboard/tiCellPhone.cpp` | 10 -> 0 | 10 -> 0 | +| `src/system/iplChannelManager.cpp` | 10 -> 0 | 0 -> 0 | +| `include/keyboard/tiString.h` | 9 -> 0 | 6 -> 0 | +| `include/system/iplNandSDWorker.h` | 9 -> 0 | 4 -> 0 | +| `libs/RevoEX/src/cdb/CDBRecordFile.c` | 9 -> 0 | 0 -> 0 | +| `src/scene/faceSelect/iplFaceSelect.cpp` | 9 -> 0 | 0 -> 0 | +| `include/keyboard/MyTiInputForm.h` | 8 -> 0 | 5 -> 0 | +| `libs/RVL_SDK/src/rso/RSOLink.c` | 8 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/src/usb/usb.c` | 8 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/src/wpad/WPAD.c` | 8 -> 0 | 7 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24MsgRead.c` | 8 -> 0 | 7 -> 0 | +| `src/scene/channelEdit/iplChannelEdit.cpp` | 8 -> 0 | 0 -> 0 | +| `include/sound/iplSound.h` | 7 -> 0 | 1 -> 0 | +| `src/BS2/BS2.c` | 7 -> 0 | 0 -> 0 | +| `src/channelScript/systemmenu/iplCSColor.cpp` | 7 -> 0 | 7 -> 0 | +| `src/scene/board/iplBoard.cpp` | 7 -> 0 | 5 -> 0 | +| `src/scene/memory/iplMemory.cpp` | 7 -> 0 | 0 -> 0 | +| `libs/MSL/include/signal.h` | 6 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/src/wud/WUDHidHost.c` | 6 -> 0 | 0 -> 0 | +| `libs/RevoEX/include/revolution/nwc24/NWC24Dl.h` | 6 -> 0 | 6 -> 0 | +| `src/keyboard/tiPcKeyboard.cpp` | 6 -> 0 | 5 -> 0 | +| `src/scene/calendar/iplCalendar.cpp` | 6 -> 0 | 0 -> 0 | +| `include/scene/memoryCard/iplMemoryCardManager.h` | 5 -> 1 | 5 -> 1 | +| `libs/RVL_SDK/include/private/wpad/WPADInternal.h` | 5 -> 0 | 5 -> 0 | +| `libs/RVL_SDK/include/private/wpad/WPADMem.h` | 5 -> 0 | 4 -> 0 | +| `libs/RevoEX/include/private/nwc24/NWC24MsgObj.h` | 5 -> 0 | 4 -> 0 | +| `libs/RevoEX/src/nhttp/NHTTP_bgnend.c` | 5 -> 0 | 5 -> 0 | +| `src/system/iplCdbManager.cpp` | 5 -> 1 | 2 -> 0 | +| `include/channelScript/CHANSVm/VmTypes.h` | 4 -> 0 | 4 -> 0 | +| `include/system/iplCdbManager.h` | 4 -> 1 | 2 -> 0 | +| `libs/OperaWWW/include/revolution/www_api.h` | 4 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/private/es.h` | 4 -> 0 | 0 -> 0 | +| `libs/RevoEX/include/private/cdb/CDBRecord.h` | 4 -> 0 | 3 -> 0 | +| `libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h` | 4 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/cdb/CDBDatabase.c` | 4 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/nhttp/NHTTP_os_RVL.c` | 4 -> 0 | 4 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24MsgCommit.c` | 4 -> 0 | 4 -> 0 | +| `src/scene/channelEdit/iplNandSDCardManager.cpp` | 4 -> 0 | 4 -> 0 | +| `src/system/iplDialogWindow.cpp` | 4 -> 0 | 0 -> 0 | +| `include/bannerSound/AxAdpcmPlayer.h` | 3 -> 0 | 3 -> 0 | +| `include/keyboard/tiNw4rManager.h` | 3 -> 0 | 3 -> 0 | +| `include/keyboard/tiTextDrawer.h` | 3 -> 0 | 3 -> 0 | +| `include/scene/nakamuraTest/iplNakamuraTest.h` | 3 -> 0 | 3 -> 0 | +| `include/system/MESGEntries.h` | 3 -> 0 | 0 -> 0 | +| `include/system/iplSystem.h` | 3 -> 1 | 3 -> 1 | +| `include/titledb.h` | 3 -> 2 | 0 -> 0 | +| `libs/NW4R/src/ut/ut_ArchiveFontBase.cpp` | 3 -> 0 | 3 -> 0 | +| `libs/RVL_SDK/include/private/wud/WUDInternal.h` | 3 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/private/wud/WUDTypes.h` | 3 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/revolution/fa.h` | 3 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/src/card/CARDUnlock.c` | 3 -> 0 | 0 -> 0 | +| `src/channelScript/systemmenu/iplCSUtil.cpp` | 3 -> 0 | 0 -> 0 | +| `include/keyboard/MyTiLetterForm.h` | 2 -> 0 | 2 -> 0 | +| `include/keyboard/tiInputForm.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/address/iplAddress.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/board/iplBoard.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/board/iplBoardObject.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/calendar/iplCalendar.h` | 2 -> 0 | 0 -> 0 | +| `include/scene/channelEdit/iplNandSDCardManager.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/kitayamaTest/iplKitayamaTest.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/memoryCard/iplMemoryCard.h` | 2 -> 0 | 2 -> 0 | +| `include/scene/textBalloon/iplBalloon.h` | 2 -> 0 | 2 -> 0 | +| `include/system/iplPostmanManager.h` | 2 -> 0 | 0 -> 0 | +| `include/system/iplSocketSetting.h` | 2 -> 0 | 0 -> 0 | +| `include/utility/iplCSFlags.h` | 2 -> 0 | 2 -> 0 | +| `libs/EGG/include/egg/core/eggAudioMgr.h` | 2 -> 0 | 2 -> 0 | +| `libs/MSL/src/MSL_Common_Embedded/ansi_fp.c` | 2 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/private/es/types.h` | 2 -> 0 | 2 -> 0 | +| `libs/RVL_SDK/include/private/os/OSBootInfo2.h` | 2 -> 0 | 2 -> 0 | +| `libs/RVL_SDK/include/private/os/OSBootInfo3.h` | 2 -> 0 | 2 -> 0 | +| `libs/RVL_SDK/include/revolution/fa/types.h` | 2 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/revolution/kbd.h` | 2 -> 0 | 2 -> 0 | +| `libs/RevoEX/include/private/cdb/CDBDatabase.h` | 2 -> 0 | 2 -> 0 | +| `libs/RevoEX/include/private/nwc24/NWC24FriendList.h` | 2 -> 0 | 2 -> 0 | +| `libs/RevoEX/include/revolution/cdb/CDBDatabase.h` | 2 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/cdb/CDBRecordKey.c` | 2 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/cdb/CDBSystem.c` | 2 -> 0 | 1 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24MsgObj.c` | 2 -> 0 | 2 -> 0 | +| `src/channelScript/systemmenu/iplCSPane.cpp` | 2 -> 0 | 0 -> 0 | +| `src/iplwww/www_surface.cpp` | 2 -> 0 | 2 -> 0 | +| `src/keyboard/tiPredictLang.cpp` | 2 -> 0 | 2 -> 0 | +| `src/keyboard/tiToolBar.cpp` | 2 -> 0 | 2 -> 0 | +| `src/scene/address/iplAddress.cpp` | 2 -> 0 | 2 -> 0 | +| `src/scene/calendar/iplDate.cpp` | 2 -> 0 | 0 -> 0 | +| `src/scene/letterWriter/iplLetterWriter.cpp` | 2 -> 0 | 0 -> 0 | +| `src/scene/nakamuraTest/iplNakamuraTest.cpp` | 2 -> 0 | 1 -> 0 | +| `src/system/iplNwc24Manager.cpp` | 2 -> 0 | 0 -> 0 | +| `src/system/iplSocketSetting.cpp` | 2 -> 0 | 0 -> 0 | +| `include/bannerSound/AudioWavePlayer.h` | 1 -> 0 | 1 -> 0 | +| `include/bannerSound/AudioWaveUtility.h` | 1 -> 0 | 1 -> 0 | +| `include/bannerSound/BannerSoundPlayer.h` | 1 -> 0 | 1 -> 0 | +| `include/channelScript/CHANSVmPrivate/vmPrivate.h` | 1 -> 0 | 1 -> 0 | +| `include/iplwww/www_surface.h` | 1 -> 0 | 1 -> 0 | +| `include/keyboard/tiHKBManager.h` | 1 -> 0 | 1 -> 0 | +| `include/layout/iplGuiManager.h` | 1 -> 0 | 1 -> 0 | +| `include/scene/calendar/iplDate.h` | 1 -> 0 | 0 -> 0 | +| `include/scene/nakamuraTest/iplNetSetup.h` | 1 -> 0 | 0 -> 0 | +| `include/system/RIPL_BoardRecord.h` | 1 -> 0 | 1 -> 0 | +| `include/system/iplKeyboard.h` | 1 -> 0 | 1 -> 0 | +| `include/system/iplMessage.h` | 1 -> 0 | 1 -> 0 | +| `include/system/iplNwc24Manager.h` | 1 -> 0 | 0 -> 0 | +| `include/system/iplPointer.h` | 1 -> 0 | 0 -> 0 | +| `include/utility/iplMessageBase.h` | 1 -> 0 | 1 -> 0 | +| `libs/EGG/include/egg/core/eggColorFader.h` | 1 -> 0 | 1 -> 0 | +| `libs/EGG/src/core/eggAudioMgr.cpp` | 1 -> 0 | 1 -> 0 | +| `libs/EGG/src/core/eggExpHeap.cpp` | 1 -> 0 | 0 -> 0 | +| `libs/MSL/src/MSL_Common/signal.c` | 1 -> 0 | 0 -> 0 | +| `libs/NW4R/include/nw4r/ut/ArchiveFontBase.h` | 1 -> 0 | 1 -> 0 | +| `libs/RVL_SDK/include/private/sc.h` | 1 -> 0 | 1 -> 0 | +| `libs/RVL_SDK/include/revolution/os.h` | 1 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/include/revolution/wpad.h` | 1 -> 0 | 0 -> 0 | +| `libs/RVL_SDK/src/os/OS.c` | 1 -> 0 | 0 -> 0 | +| `libs/RevoEX/include/private/cdb/CDBAttr.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/private/cdb/CDBCrypt.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/private/nwc24/NWC24Config.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/private/nwc24/NWC24Private.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/private/nwc24/NWC24Utils.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/revolution/cdb/CDBRecord.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/revolution/ncd/NCDTypes.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/revolution/net/NETDigest.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/revolution/nwc24/NWC24Friend.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/include/revolution/so/SOOption.h` | 1 -> 0 | 0 -> 0 | +| `libs/RevoEX/include/revolution/wd.h` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/src/cdb/CDBFileSystemSD.c` | 1 -> 0 | 0 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24SecretFList.c` | 1 -> 0 | 1 -> 0 | +| `libs/RevoEX/src/nwc24/NWC24Utils.c` | 1 -> 0 | 1 -> 0 | +| `src/BS2/BS2Fatal.c` | 1 -> 0 | 1 -> 0 | +| `src/bannerSound/AudioWavePlayer.cpp` | 1 -> 0 | 1 -> 0 | +| `src/bannerSound/BannerSoundPlayer.cpp` | 1 -> 0 | 1 -> 0 | +| `src/keyboard/MyTiInputForm.cpp` | 1 -> 0 | 1 -> 0 | +| `src/scene/nakamuraTest/iplNetSetup.cpp` | 1 -> 0 | 0 -> 0 | +| `src/system/iplPostmanManager.cpp` | 1 -> 0 | 0 -> 0 | + +## Rename evidence + +NWC24 layout names were corroborated against [NWC24iDownload.h](https://github.com/doldecomp/ogws/blob/master/include/revolution/NWC24/internal/NWC24iDownload.h). The existing byte-array extents are preserved. Ticket prefix bytes correspond to the reserved tail in [libogc es.h](https://github.com/devkitPro/libogc/blob/master/gc/ogc/es.h). The FAT hidden attribute inference is supported by the forwarded FAT status and [Microsoft attribute values](https://learn.microsoft.com/en-us/windows/win32/fileio/file-attribute-constants). + +### include/bannerSound/AudioWavePlayer.h + +- `unk_0xB0` -> `mReserved` (1): SimpleWavePlayer constructor only clears the byte; all playback state uses the separately named booleans. + +### include/bannerSound/AudioWaveUtility.h + +- `unk_0x04` -> `mReserved` (1): Base WaveFile word has no named accesses in either WaveFileAiff or WaveFileWav implementations. + +### include/bannerSound/AxAdpcmPlayer.h + +- `unk_0x08` -> `mStopResetState` (3): Voice reset and AxAdpcmPlayer::stop clear this state through existing accessors; preserve accessor function names. + +### include/bannerSound/BannerSoundPlayer.h + +- `unk_0x510` -> `mReserved` (1): BannerSoundPlayer constructor only clears the byte; no reader in any banner sound source. + +### include/channelScript/CHANSVm/VmTypes.h + +- `unk_0x00` -> `reserved` (1): vmInt32ObjVal users access only val; prefix byte has no named accesses. +- `unk_0x0C` -> `reserved` (1): CHANSVmAddNativeMethodList initializes index/func/hasStar and links pNext; the preserved tail array has no accesses. +- `unk_0x10` -> `reserved` (1): CHANSVmAddNativePropertyAccessors initializes index/getter/setter/flag and links pNext; the preserved tail array has no accesses. +- `unk_0x20` -> `classNameStorage` (1): CHANSVmAddNativeClass2 copies clsNameLen bytes through sName; this array holds the continuation of the variable-length class name. + +### include/channelScript/CHANSVmPrivate/vmPrivate.h + +- `unk_0x14` -> `reserved` (1): Execution-context list header alignment bytes have no named accesses in CHANSVm.c or other tree sources. + +### include/iplMemoryCardLib.h + +- `unk_0x00` -> `reservedState` (1): CardState fields have no named accesses in the tree; other FileInfo/IconState members with the same spellings remain untouched. +- `unk_0x04` -> `reservedSlot` (1): CardState fields have no named accesses in the tree; other FileInfo/IconState members with the same spellings remain untouched. +- `unk_0x06` -> `reservedCommand` (1): CardState fields have no named accesses in the tree; other FileInfo/IconState members with the same spellings remain untouched. + +### include/iplwww/www_surface.h + +- `unk_0x0C` -> `mReserved` (1): SurfaceManager constructor only initializes this word; no readers in src/libs/include. + +### include/keyboard/MyTiInputForm.h + +- `unk_0x308` -> `mpMemoPane` (2): Alternate MYTIINPUTFORM/MYTILETTERFORM declarations already give these four pane names in the same order. +- `unk_0x30C` -> `mpMemoRootPane` (2): Alternate MYTIINPUTFORM/MYTILETTERFORM declarations already give these four pane names in the same order. +- `unk_0x310` -> `mpBoundPane` (2): Alternate MYTIINPUTFORM/MYTILETTERFORM declarations already give these four pane names in the same order. +- `unk_0x314` -> `mpDrawPane` (2): Alternate MYTIINPUTFORM/MYTILETTERFORM declarations already give these four pane names in the same order. + +### include/keyboard/MyTiLetterForm.h + +- `unk_0x400` -> `mbPhotoScaledUp` (2): Alternate MYTILETTERFORM declaration already names this same field mbPhotoScaledUp. + +### include/keyboard/tiHKBManager.h + +- `unk_0x00` -> `mKeyboardStateStorage` (1): HKBManager keeps opaque keyboard state in this fixed-size array; it is not padding. + +### include/keyboard/tiInputForm.h + +- `unk_0x2C0` -> `mInputStateStorage` (2): Conditional typed declaration in the same header supplies input-form state for this preserved byte-array range. + +### include/keyboard/tiNw4rManager.h + +- `field_0x00` -> `controller` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x0C` -> `trigger` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x10` -> `hold` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### include/keyboard/tiString.h + +- `field_0x00` -> `mKanaStateStorage` (1): Alternate typed declarations in tiString.h already name cursor endpoints, sustain and translation mode; KanaStream stores queue/pending/output. No old-spelling references exist in rx23 sources. +- `field_0x18` -> `mCursorStart` (2): Alternate typed declarations in tiString.h already name cursor endpoints, sustain and translation mode; KanaStream stores queue/pending/output. No old-spelling references exist in rx23 sources. +- `field_0x1C` -> `mCursorEnd` (2): Alternate typed declarations in tiString.h already name cursor endpoints, sustain and translation mode; KanaStream stores queue/pending/output. No old-spelling references exist in rx23 sources. +- `field_0x20` -> `mbSustain` (2): Alternate typed declarations in tiString.h already name cursor endpoints, sustain and translation mode; KanaStream stores queue/pending/output. No old-spelling references exist in rx23 sources. +- `field_0x24` -> `mTranslateMode` (2): Alternate typed declarations in tiString.h already name cursor endpoints, sustain and translation mode; KanaStream stores queue/pending/output. No old-spelling references exist in rx23 sources. + +### include/keyboard/tiTextDrawer.h + +- `unk_0x00` -> `rectangleAndCharacterStorage` (1): Conditional typed declarations expose rectangle/character, drawing state and cursor/draw cache state in these byte-array ranges. +- `unk_0x50` -> `mDrawStateStorage` (1): Conditional typed declarations expose rectangle/character, drawing state and cursor/draw cache state in these byte-array ranges. +- `unk_0xCC` -> `mCacheStateStorage` (1): Conditional typed declarations expose rectangle/character, drawing state and cursor/draw cache state in these byte-array ranges. + +### include/layout/iplGuiManager.h + +- `unk_0x28` -> `mReserved` (1): PaneManager word has no named accesses across the GUI constructors or update functions. + +### include/scene/address/iplAddress.h + +- `unk_0x1C` -> `mResetState` (1): Address constructor only zeroes the reserved word; drag_begin only zeroes the drag reset state, which has no readers. +- `unk_0x90` -> `mReserved` (1): Address constructor only zeroes the reserved word; drag_begin only zeroes the drag reset state, which has no readers. + +### include/scene/board/iplBoard.h + +- `unk_0xFB8` -> `mNewMailAnimationPending` (1): Board clears the constructor flag when starting button->startNewMailAnm or entering normal state. +- `unk_0xFBC` -> `mReserved` (1): Final four-byte array has no named accesses across src/libs/include. + +### include/scene/board/iplBoardObject.h + +- `unk_0x7C` -> `mReservedBeforeRecordKey` (1): Both four-byte ranges have no named accesses across src/libs/include. +- `unk_0x13C` -> `mReserved` (1): Both four-byte ranges have no named accesses across src/libs/include. + +### include/scene/calendar/iplCalendar.h + +- `unk` -> `calendarIndex` (2): Indexes scPaneName_N_Cal/scPaneName_N_CalPos and selects the corresponding DATE_COUNT half of the date scene list. + +### include/scene/calendar/iplDate.h + +- `unk` -> `focusedPass` (1): draw selects mPointCount nonzero in the focused pass and zero in the other pass. + +### include/scene/channelEdit/iplNandSDCardManager.h + +- `unk_0xE87A0` -> `mbDeleteSDAppAfterRestore` (1): CMD_MOVE_SDAPP_TO_NAND sets true, CMD_COPY_SDAPP_TO_NAND sets false; on_sc_flush deletes the SD app only when true. +- `unk_0x34` -> `mReserved` (1): Word has no named accesses in NandSDCardManager or users. + +### include/scene/kitayamaTest/iplKitayamaTest.h + +- `unk_0x70` -> `mReservedWorkerState` (1): Both existing words are marked unused and have no named accesses across src/libs/include. +- `unk_0x74` -> `mReservedCacheState` (1): Both existing words are marked unused and have no named accesses across src/libs/include. + +### include/scene/memoryCard/iplMemoryCard.h + +- `unk_0x91` -> `mReservedSlot` (1): Never-accessed alignment bytes after the u8 slot and arrow flags; excluded memoryCard sources do not refer to these fields. +- `unk_0xA2` -> `mReservedArrows` (1): Never-accessed alignment bytes after the u8 slot and arrow flags; excluded memoryCard sources do not refer to these fields. + +### include/scene/memoryCard/iplMemoryCardManager.h + +- `unk_0x102` -> `reserved` (1): MCFileCell alignment halfword and manager result-area word have no named accesses; accessed MCFile members remain unchanged. +- `unk_0x16938` -> `mReservedResult` (1): MCFileCell alignment halfword and manager result-area word have no named accesses; accessed MCFile members remain unchanged. +- `unk_0x04` -> `reserved` (2): MCFile and MemoryCardManager leading reserved words have no named accesses in memoryCard sources; accessed unk_0x08 remains unchanged. + +### include/scene/nakamuraTest/iplNakamuraTest.h + +- `unk_0x2B80` -> `mReserved0` (1): First two words have no named accesses; constructor only zeroes the third, which has no readers. +- `unk_0x2B84` -> `mReserved1` (1): First two words have no named accesses; constructor only zeroes the third, which has no readers. +- `unk_0x2B88` -> `mReserved2` (1): First two words have no named accesses; constructor only zeroes the third, which has no readers. + +### include/scene/nakamuraTest/iplNetSetup.h + +- `NET_SETUP_UNK_4` -> `NET_SETUP_ALTERNATE_ERROR` (1): NakamuraTest handles state 4 exactly as NET_SETUP_ERROR: cleanup, capture lastErr and enter error display; no producer identifies a narrower cause. + +### include/scene/textBalloon/iplBalloon.h + +- `unk_0x00` -> `mReserved` (1): Both leading words have no named accesses across src/libs/include; TextBalloon state begins with mbWaitingFadeIn. +- `unk_0x04` -> `mReservedState` (1): Both leading words have no named accesses across src/libs/include; TextBalloon state begins with mbWaitingFadeIn. + +### include/sound/iplSound.h + +- `unk` -> `fadeFrames` (6): Passed to SoundHandle::Stop and BannerSoundPlayer::stop; stopAllSound converts frames to milliseconds for ClearEffect. +- `unk_0x620` -> `mSoundWork` (1): Three-word sound work storage holds rotating SE block index at [0] and setupMemoryArchive result at [2]; preserve the array. + +### include/system/MESGEntries.h + +- `MESG_DATA_MOVE_UNK_ERROR` -> `MESG_DATA_MOVE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_COPY_UNK_ERROR` -> `MESG_DATA_COPY_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_DEL_UNK_ERROR` -> `MESG_DATA_DELETE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. + +### include/system/RIPL_BoardRecord.h + +- `unk_0x01` -> `reserved` (1): Two bytes between optOut and type have no named accesses across src/libs/include. + +### include/system/iplCdbManager.h + +- `unk2` -> `openRecord` (1): Forwarded to the openRecord argument of CDBDatabaseSearch. +- `unk_0x38` -> `mReserved0` (1): Both bytes are only cleared by Manager constructor and have no readers. +- `unk_0x39` -> `mReserved1` (1): Both bytes are only cleared by Manager constructor and have no readers. + +### include/system/iplChannelManager.h + +- `unk` -> `invalidateReady` (4): getDiskBannerData clears mbDiskChannelReady when this argument is true. +- `unk_00` -> `isDisk` (1): Only set for mDiskChanMetaHdr and disk metaBnr in updateDiskState; distinguishes synthesized disk-channel headers. +- `unk_15` -> `reservedBit15` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_13` -> `reservedBit13` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_12` -> `reservedBit12` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_11` -> `reservedBit11` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_10` -> `reservedBit10` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_09` -> `reservedBit09` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_07` -> `reservedBit07` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_06` -> `reservedBit06` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_05` -> `reservedBit05` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_04` -> `reservedBit04` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_03` -> `reservedBit03` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_02` -> `reservedBit02` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. +- `unk_01` -> `reservedBit01` (1): Header bitfields have no individual named accesses anywhere in src/libs/include; preserve each one-bit declaration in place. + +### include/system/iplChannelScriptManager.h + +- `CHANS_VM_STATE_UNK0` -> `CHANS_VM_STATE_IDLE` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK1` -> `CHANS_VM_STATE_STARTING` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK2` -> `CHANS_VM_STATE_WAIT_BEGIN_RENDER` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK3` -> `CHANS_VM_STATE_RUNNING` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK4` -> `CHANS_VM_STATE_EXITING` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK0` -> `CHANS_VM_MSG_STATE_NONE` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK1` -> `CHANS_VM_MSG_STATE_BEGIN_RENDER` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK2` -> `CHANS_VM_MSG_STATE_WAIT_RETRACE` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK3` -> `CHANS_VM_MSG_STATE_RESERVED` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK4` -> `CHANS_VM_MSG_STATE_EXIT` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. + +### include/system/iplKeyboard.h + +- `unk_0x2D` -> `mReserved` (1): Single byte between activation flag and savedata has no named accesses and aligns the following savedata. + +### include/system/iplMessage.h + +- `unk_0x08` -> `reserved` (1): MESGInfoBlock code reads only offset and flags; the trailing word has no named accesses. + +### include/system/iplNandSDWorker.h + +- `unkHeap` -> `scratchHeap` (1): Heap carved after the app/save cache supplies temporary SD banner, location and WAD import/backup allocations. +- `unkAllocator` -> `scratchAllocator` (1): Heap carved after the app/save cache supplies temporary SD banner, location and WAD import/backup allocations. +- `unk_0x19018` -> `reserved` (1): Cache-entry tails and SDAppBanner words before metaHdr have no named accesses across src/libs/include; keep binary layout intact. +- `unk_0xf0b4` -> `reserved` (1): Cache-entry tails and SDAppBanner words before metaHdr have no named accesses across src/libs/include; keep binary layout intact. +- `unk_0x30` -> `reservedBeforeMeta` (1): Cache-entry tails and SDAppBanner words before metaHdr have no named accesses across src/libs/include; keep binary layout intact. +- `unk_0x38` -> `reservedBeforeMetaEnd` (1): Cache-entry tails and SDAppBanner words before metaHdr have no named accesses across src/libs/include; keep binary layout intact. +- `RESULT_UNK_18` -> `RESULT_CANCELLED` (1): Returned immediately when mbCancel becomes true during title cleanup or SD directory traversal. +- `MESSAGE_UNK_49` -> `MESSAGE_CHECK_SD_APP_TITLES` (1): check_sd_app_titles_async sends this message; dispatch calls do_check_sd_app_titles. +- `RESULT_UNK_N12` -> `RESULT_FILENAME_CONFLICT` (1): Returned when an SD path already exists as a file instead of a directory; ChannelEdit maps it to MESG_DATA_FILENAME_CONFLICT. + +### include/system/iplNwc24Manager.h + +- `unk` -> `appId` (1): isNewMessageThere compares the argument against entries returned by getNewTitleTbl. + +### include/system/iplPointer.h + +- `TYPE_UNK2` -> `TYPE_RESERVED` (1): The third enum slot has no references and get_layout handles only TYPE_POINT and TYPE_GRAB. + +### include/system/iplPostmanManager.h + +- `STATE_UNKNOWN` -> `STATE_INITIALIZING` (2): Run sets the state while updating playlog, registering download tasks and starting the scheduler before STATE_RUN_RECEIVE. Existing IsUnknown function name is preserved. + +### include/system/iplSocketSetting.h + +- `unk` -> `allocationName` (2): SOAlloc/SOFree implementations forward their name argument as the first callback argument. + +### include/system/iplSystem.h + +- `unk_0x224` -> `mReservedSceneState` (1): Both member storage ranges have no named accesses, including in excluded iplSystem.cpp. +- `unk_0x2CC` -> `mReserved` (1): Both member storage ranges have no named accesses, including in excluded iplSystem.cpp. + +### include/titledb.h + +- `TITLE_TYPE_UNK7` -> `TITLE_TYPE_USER_APP7` (1): USER_APP_TYPE_MASK includes subtype 7, and delete_all_nand_saves deletes its title as a user-installed application. The numeric subtype is retained without asserting an external format meaning. + +### include/utility/iplCSFlags.h + +- `unk_0x00` -> `reservedHeader` (1): CSFlags accesses only flags; remaining serialized bytes are zeroed at file creation and otherwise copied intact. +- `unk_0x08` -> `reserved` (1): CSFlags accesses only flags; remaining serialized bytes are zeroed at file creation and otherwise copied intact. + +### include/utility/iplMessageBase.h + +- `unk_0x00` -> `mReserved` (1): Final word after OSMessage array has no named accesses in the MessageBase template or its users. + +### libs/EGG/include/egg/core/eggAudioMgr.h + +- `unk_0x04` -> `reserved` (1): IAudioMgr::Arg constructor only clears the first reserved word; SimpleAudioMgr::initialize never accesses either word. +- `unk_0x14` -> `reservedSoundHeap` (1): IAudioMgr::Arg constructor only clears the first reserved word; SimpleAudioMgr::initialize never accesses either word. + +### libs/EGG/include/egg/core/eggColorFader.h + +- `unk_0x0E` -> `mReserved` (1): Two bytes align mColor following u16 frame; no named accesses. + +### libs/EGG/src/core/eggAudioMgr.cpp + +- `unk_0x04` -> `reserved` (1): IAudioMgr::Arg constructor only clears the first reserved word; SimpleAudioMgr::initialize never accesses either word. + +### libs/EGG/src/core/eggExpHeap.cpp + +- `unk` -> `userData` (1): MEMVisitAllocatedForExpHeap visitor third parameter is caller-supplied visitor data; free_all_visitor does not use it. + +### libs/MSL/include/signal.h + +- `SIGNAL_UNK2` -> `SIGNAL_HANDLER_2` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. +- `SIGNAL_UNK3` -> `SIGNAL_HANDLER_3` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. +- `SIGNAL_UNK4` -> `SIGNAL_HANDLER_4` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. +- `SIGNAL_UNK5` -> `SIGNAL_HANDLER_5` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. +- `SIGNAL_UNK6` -> `SIGNAL_HANDLER_6` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. +- `SIGNAL_UNK7` -> `SIGNAL_HANDLER_7` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. + +### libs/MSL/src/MSL_Common/signal.c + +- `SIGNAL_UNK7` -> `SIGNAL_HANDLER_7` (1): raise dispatches these signal numbers through signal_funcs[sig - 1], with 7 as the upper bound. No target evidence assigns distinct signal semantics, so names identify handler slots. + +### libs/MSL/src/MSL_Common_Embedded/ansi_fp.c + +- `unkBool` -> `roundDirection` (2): Stores __must_round result; nonnegative direction triggers __dorounddecup. + +### libs/NW4R/include/nw4r/ut/ArchiveFontBase.h + +- `unk_0x18` -> `cacheWorkspaceOffset` (1): RequestData positions cached data at ctx->pWorkCurr + offset and stores that offset, clearing it when no cached data remains. + +### libs/NW4R/src/ut/ut_ArchiveFontBase.cpp + +- `unk_0x18` -> `cacheWorkspaceOffset` (3): RequestData positions cached data at ctx->pWorkCurr + offset and stores that offset, clearing it when no cached data remains. + +### libs/OperaWWW/include/revolution/www_api.h + +- `unk` -> `keyboardOptions` (1): Browser keyboard callbacks always pass zero after the key symbol; options role is intentionally broad. +- `unkA` -> `button` (1): Browser sends button=1 for MOUSE_ATTRIB_BUTTON and 0 for position, with final options argument always zero. +- `unkB` -> `mouseOptions` (1): Browser sends button=1 for MOUSE_ATTRIB_BUTTON and 0 for position, with final options argument always zero. +- `unk` -> `updateOptions` (1): WWWUpdateImeCmdPacket forwards the update IME packet final word; exact flag meanings are not inferred. + +### libs/RVL_SDK/include/private/es.h + +- `unknown` -> `transferMode` (2): ES_ImportTicket accepts mode 0; ES_ExportTitleInit selects its ioctl for mode 2. +- `unknown0` -> `importMode` (1): Selects ES_IOCTLV_IMPORT_TITLE_0 or ES_IOCTLV_IMPORT_TITLE_2. +- `unknown1` -> `importOptions` (1): Copied to the extra integer input vector for ES_IOCTLV_IMPORT_TITLE_0. + +### libs/RVL_SDK/include/private/es/types.h + +- `unk_0x55` -> `reservedBeforeContentMask` (1): Ticket/view bytes immediately before cidxMask correspond to the tail of libogc tik/tikview reserved[0x3c]; NandSDWorker only copies the view byte. No excluded source uses either spelling. +- `unk_0x221` -> `reservedBeforeContentMask` (1): Ticket/view bytes immediately before cidxMask correspond to the tail of libogc tik/tikview reserved[0x3c]; NandSDWorker only copies the view byte. No excluded source uses either spelling. + +### libs/RVL_SDK/include/private/os/OSBootInfo2.h + +- `unk_0x1C` -> `reservedCountryWord` (1): Boot info words between countryCode and padSpec have no named accesses or offset macros in the tree. +- `unk_0x20` -> `reservedPadWord` (1): Boot info words between countryCode and padSpec have no named accesses or offset macros in the tree. + +### libs/RVL_SDK/include/private/os/OSBootInfo3.h + +- `unk_0x04` -> `reservedCountryData` (1): These byte ranges have no named accesses; countryCode, parentalControlFlags and magic are the fields used by BS2. +- `unk_0x14` -> `reservedConfiguration` (1): These byte ranges have no named accesses; countryCode, parentalControlFlags and magic are the fields used by BS2. + +### libs/RVL_SDK/include/private/sc.h + +- `unk_0x00` -> `reserved` (1): UnpackItem fills primType/arrayType/nameLen/dataLen/name/data/itemLen; the leading bytes have no named accesses. + +### libs/RVL_SDK/include/private/wpad/WPADInternal.h + +- `unk_0x8C4` -> `reservedConnection` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x8C9` -> `reservedReceive` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x982` -> `reservedRead` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x98F` -> `reserved` (1): Controller/storage tail arrays have no named accesses; preserve their current sizes exactly. +- `unk_0x26C0` -> `reserved` (1): Controller/storage tail arrays have no named accesses; preserve their current sizes exactly. + +### libs/RVL_SDK/include/private/wpad/WPADMem.h + +- `unk_0x00` -> `reserved0` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x04` -> `reserved1` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x08` -> `reserved2` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x0C` -> `reserved3` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `UNK_0x30` -> `reserved` (1): Eight-byte WPADGameInfo tail has no named accesses. + +### libs/RVL_SDK/include/private/wud/WUDInternal.h + +- `UNK_0x46` -> `reservedBeforeServices` (1): WUDDiscResp bytes before/after services have no named accesses; WUDSearchCallback copies only devAddr, devName and services. +- `UNK_0x104` -> `reserved` (1): WUDDiscResp bytes before/after services have no named accesses; WUDSearchCallback copies only devAddr, devName and services. +- `WUD_STATE_INIT_UNK5` -> `WUD_STATE_INIT_BLUETOOTH_ENABLED` (1): WUDiInitComplete returns this after BTA_EnableBluetooth; WUDIsBusy also requires the separate stackState to be initialized. + +### libs/RVL_SDK/include/private/wud/WUDTypes.h + +- `UNK_0x5A` -> `pinReplied` (1): Set when WUDiSetPinCode sends BTA_DmPinReply. +- `UNK_0x5B` -> `syncMode` (1): Selects virgin standard/simple registration and simple-to-standard conversion in WUDiRegisterSyncDevice. +- `UNK_0x5C` -> `linkKeyState` (1): Tracks retained/deleted stored link keys in WUDiClearUnregisteredDevice and WUDSecurityCallback. + +### libs/RVL_SDK/include/revolution/fa.h + +- `unk` -> `mode` (2): FAFormat.c and FACreate.c already use mode for the corresponding formal parameters. +- `unk` -> `mode` (1): FACreatedir.c forwards its mode parameter to pfstub_createdir. + +### libs/RVL_SDK/include/revolution/fa/types.h + +- `unknown` -> `fileInfoData` (1): FAFileInfo is opaque fixed-size file information; no named array accesses in excluded FA implementation. +- `FA_FILE_UNK_1` -> `FA_FILE_STAT_HIDDEN` (1): FAFstat forwards FAT file status; bit 1 excludes hidden entries beside directory bit 4. Microsoft file-attribute constants corroborate HIDDEN=0x02 and DIRECTORY=0x10. + +### libs/RVL_SDK/include/revolution/kbd.h + +- `unk_0x00` -> `eventData` (2): Conditional TIHKBMANAGER_IMPLEMENTATION declarations expose device/key/flags; these are opaque event bytes, not padding. + +### libs/RVL_SDK/include/revolution/os.h + +- `OS_CONSOLE_UNK` -> `OS_CONSOLE_DEFAULT_DEV` (1): OSGetConsoleType returns this development-mask value when boot console information is unavailable. + +### libs/RVL_SDK/include/revolution/wpad.h + +- `WPAD_SPEAKER_UNK5` -> `WPAD_SPEAKER_ON_ALTERNATE` (1): WPADControlSpeaker handles command 5 in the identical case body as WPAD_SPEAKER_ON. + +### libs/RVL_SDK/src/card/CARDUnlock.c + +- `unk` -> `cardStatus` (3): __CARDReadStatus writes the byte tested for bit 0x40 before unlock proceeds. + +### libs/RVL_SDK/src/es/es.c + +- `unknown` -> `transferMode` (4): ES_ImportTicket accepts mode 0; ES_ExportTitleInit selects its ioctl for mode 2. +- `unknown0` -> `importMode` (2): Selects ES_IOCTLV_IMPORT_TITLE_0 or ES_IOCTLV_IMPORT_TITLE_2. +- `unknown1` -> `importOptions` (2): Copied to the extra integer input vector for ES_IOCTLV_IMPORT_TITLE_0. +- `pUnknown` -> `pImportOptions` (4): Points to the extra integer input vector containing importOptions. + +### libs/RVL_SDK/src/kpad/KPAD.c + +- `value8C` -> `horizonSmoothingThreshold` (4): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `value90` -> `horizonSmoothingGain` (3): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `value94` -> `distanceSmoothingThreshold` (4): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `value98` -> `distanceSmoothingGain` (3): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `value9C` -> `accelSmoothingThreshold` (4): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `valueA0` -> `accelSmoothingGain` (3): calc_dpd_variable and calc_acc_variable divide deltas by these thresholds and multiply the fourth-power response by the paired gains. +- `value4DC` -> `accelScaleX` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4E0` -> `accelScaleY` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4E4` -> `accelScaleZ` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4E8` -> `extensionAccelScaleX` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4EC` -> `extensionAccelScaleY` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4F0` -> `extensionAccelScaleZ` (4): KPADRead stores reciprocal WPAD gravity-unit components; calc_acc and calc_acc_fs multiply corresponding raw accelerometer axes. +- `value4F4` -> `dpdLeftBound` (6): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value4F8` -> `dpdLowerBound` (6): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value4FC` -> `dpdRightBound` (6): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value500` -> `dpdUpperBound` (6): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value504` -> `inverseDistanceSpeed` (3): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value508` -> `negativeInverseDistanceSpeed` (3): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value50C` -> `horizonCircleRadiusSquared` (3): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value510` -> `calibratedDistance` (6): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value514` -> `minimumDistance` (4): reset_kpad computes DPD frame bounds, +/- reciprocal kp_err_dist_speed, squared kp_ah_circle_radius, kp_dist_vv1 calibration and kp_err_dist_min. +- `value4CA` -> `stableDpdSampleCount` (6): Counts consecutive valid two-object DPD samples to 200 before updating dpdObjectScale. +- `flag51D` -> `resetPending` (4): KPADInit sets it; KPADRead calls reset_kpad, which clears it. +- `flag51E` -> `extensionInitPending` (7): First extension sample initializes ex_status and clears the flag. +- `flag51F` -> `dpdCommandPending` (5): Set around WPADControlDpd and cleared in KPADiControlDpdCallback. + +### libs/RVL_SDK/src/os/OS.c + +- `OS_CONSOLE_UNK` -> `OS_CONSOLE_DEFAULT_DEV` (1): OSGetConsoleType returns this development-mask value when boot console information is unavailable. + +### libs/RVL_SDK/src/rso/RSOLink.c + +- `S_PPC_SDATA_UNK` -> `S_PPC_SDATA_ZERO_BASE` (3): Section offset is initialized to zero; R_PPC_EMB_SDA21 clears the base register bits and sets base=0. +- `S_PPC_SBSS_UNK` -> `S_PPC_SBSS_ZERO_BASE` (3): Section offset is initialized to zero; R_PPC_EMB_SDA21 clears the base register bits and sets base=0. +- `S_PPC_241_UNK` -> `S_PPC_INVALID_SDA21` (2): This section case reports incorrect R_PPC_EMB_SDA21 data; the name records that error role only. + +### libs/RVL_SDK/src/usb/usb.c + +- `unkWork` -> `controlOptionsWork` (8): USB control ioctl vector 5 is an allocated single-byte options input, initialized to zero and freed with other control-request work. + +### libs/RVL_SDK/src/wpad/WPAD.c + +- `unk_0x8C9` -> `reservedReceive` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x8C4` -> `reservedConnection` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x982` -> `reservedRead` (1): WPAD clear-control-block writes zero; no other named accesses, and target WPAD assembly has stores but no loads from these offsets. Names describe only inactive storage regions. +- `unk_0x00` -> `reserved0` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x04` -> `reserved1` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x08` -> `reserved2` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `unk_0x0C` -> `reserved3` (1): Four WPADMemBlock fields are only reset to zero; WPADMem.c contains only _wmb storage and only callback is consumed. +- `WPAD_SPEAKER_UNK5` -> `WPAD_SPEAKER_ON_ALTERNATE` (1): WPADControlSpeaker handles command 5 in the identical case body as WPAD_SPEAKER_ON. + +### libs/RVL_SDK/src/wud/WUD.c + +- `UNK_0x5B` -> `syncMode` (15): Selects virgin standard/simple registration and simple-to-standard conversion in WUDiRegisterSyncDevice. +- `UNK_0x5A` -> `pinReplied` (1): Set when WUDiSetPinCode sends BTA_DmPinReply. +- `UNK_0x5C` -> `linkKeyState` (8): Tracks retained/deleted stored link keys in WUDiClearUnregisteredDevice and WUDSecurityCallback. +- `WUD_STATE_INIT_UNK5` -> `WUD_STATE_INIT_BLUETOOTH_ENABLED` (2): WUDiInitComplete returns this after BTA_EnableBluetooth; WUDIsBusy also requires the separate stackState to be initialized. + +### libs/RVL_SDK/src/wud/WUDHidHost.c + +- `UNK_0x5B` -> `syncMode` (6): Selects virgin standard/simple registration and simple-to-standard conversion in WUDiRegisterSyncDevice. + +### libs/RevoEX/include/private/cdb/CDBAttr.h + +- `unk_0x14` -> `reserved` (1): Signature tail after sha1Hmac has no named accesses. + +### libs/RevoEX/include/private/cdb/CDBCrypt.h + +- `unk_0x3EC0C` -> `reserved` (1): Tail range extends the crypt buffer to 64-byte size alignment and has no named accesses. + +### libs/RevoEX/include/private/cdb/CDBDatabase.h + +- `unk_0x00` -> `storage` (2): Opaque database pool and instance storage accessed through implementation-specific state structs; preserve their array sizes. + +### libs/RevoEX/include/private/cdb/CDBRecord.h + +- `unk` -> `recordLocation` (1): CDBRecordKeyInit assigns the argument to recordKey->location. +- `unk_0x00` -> `mutexAndUseState` (1): CDB_RECORD_IMPLEMENTATION exposes mutex/used at the start; CDBSystem clears used at offset 0x18. +- `unk_0x468` -> `databaseStateStorage` (1): CDB_RECORD_IMPLEMENTATION declares database and reserved bytes in this same array range. +- `unk_0x434` -> `reservedBeforeKey` (1): Four bytes before the key have no named accesses; preserve alignment and member order. + +### libs/RevoEX/include/private/nwc24/NWC24Config.h + +- `unk_0x31C` -> `reserved` (1): Config tail range has no field accesses across src/libs/include; known fields resume at allowBootWC24Title. + +### libs/RevoEX/include/private/nwc24/NWC24FriendList.h + +- `unk_0x10` -> `reserved` (1): Trailing secret-list header bytes have no named accesses; record storage begins after the entire header. +- `unk_0x0C` -> `registeredCount` (1): Same magic/version/infoCount/registeredCount prefix as sibling NWC24FLHeader; secret-list creation initializes the fourth word to zero. + +### libs/RevoEX/include/private/nwc24/NWC24MsgObj.h + +- `unk_0x10` -> `headerSizeStorage` (1): Same conditional member is u32 headerSize in MsgRead/MBoxCtrl/MsgCommit; preserve this byte-array declaration. +- `unk_0x1C` -> `crc` (1): MBoxCtrl copies to/from entry->crc and compares for message lookup. +- `unk_0x50` -> `charsetData` (1): WriteContentTypeField stores charset name offset/length; MsgRead reads it into charset. +- `unk_0x58` -> `encodingData` (1): WriteContentTypeField stores transfer encoding name; MsgRead feeds it to NWC24ParseEncodingStr. +- `unknown` -> `reservedFlags` (1): Seven unnamed message-board flag bits have no named accesses anywhere in src/libs/include. + +### libs/RevoEX/include/private/nwc24/NWC24Private.h + +- `unk_0x1A00` -> `messageWork` (1): NWC24Work byte range lies within the message workspace between base64Work and friend-list headers; preserve opaque storage. + +### libs/RevoEX/include/private/nwc24/NWC24Utils.h + +- `unk_0x07` -> `reserved` (1): Date conversions read year/month/day/hour/min/sec only; final byte is only zeroed by NWC24Date_Init. + +### libs/RevoEX/include/revolution/cdb/CDBDatabase.h + +- `unk7` -> `recordType` (1): CDBDatabaseSearch_ already names and stores these arguments as type and openRecord. +- `unk9` -> `openRecord` (1): CDBDatabaseSearch_ already names and stores these arguments as type and openRecord. + +### libs/RevoEX/include/revolution/cdb/CDBRecord.h + +- `unk_0x3C` -> `reserved` (1): Final record-handle word has no named accesses in src/libs/include. + +### libs/RevoEX/include/revolution/ncd/NCDTypes.h + +- `unk_0x6c` -> `reserved` (1): NCDRakuApConfig extension word has no named accesses in src/libs/include. + +### libs/RevoEX/include/revolution/net/NETDigest.h + +- `unk_0x00` -> `state` (1): NETSHA1Context is passed to NETSHA1Init/Update/GetDigest as opaque hash state. + +### libs/RevoEX/include/revolution/nwc24/NWC24Dl.h + +- `unk_0x00` -> `sortMode` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. +- `unk_0x04` -> `comparisonValue` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. +- `unk_0x08` -> `selectedValue` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. +- `unk_0x0C` -> `comparisonId` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. +- `unk_0x10` -> `initialized` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. +- `unk_0x14` -> `valid` (1): NWC24IterateDlTaskEx casts this work to DlTaskIterationState, whose six fields establish the roles in identical order. + +### libs/RevoEX/include/revolution/nwc24/NWC24Friend.h + +- `unk_0x00` -> `recordData` (1): NWC24iCreateSecretFriendList writes each NWC24SecretFriendInfo as a fixed-size on-disk record. + +### libs/RevoEX/include/revolution/nwc24/NWC24MsgBoard.h + +- `unk` -> `alternative` (4): All four NWC24MsgSubject.c definitions already name the corresponding substitution-character parameter alternative. + +### libs/RevoEX/include/revolution/so/SOOption.h + +- `unk` -> `interface` (1): SOOption.c already names the same first SOGetInterfaceOpt argument interface. + +### libs/RevoEX/include/revolution/wd.h + +- `unk_0x60` -> `extendedInfo` (1): Trailing bytes returned by WD_GetInfo after version have no decoded field accesses; retain as opaque driver information. + +### libs/RevoEX/src/cdb/CDBDatabase.c + +- `unk7` -> `recordType` (2): CDBDatabaseSearch_ already names and stores these arguments as type and openRecord. +- `unk9` -> `openRecord` (2): CDBDatabaseSearch_ already names and stores these arguments as type and openRecord. + +### libs/RevoEX/src/cdb/CDBFileSystemSD.c + +- `unk` -> `pathWork` (1): Unused local in CDBFSIsDirNameSD; name records its enclosing path-validation role without assigning a behavior. + +### libs/RevoEX/src/cdb/CDBRecordFile.c + +- `unk` -> `bytesToRead` (9): Clamps remaining decrypted-buffer bytes to requested size, copies that count, advances offset and returns readSize. + +### libs/RevoEX/src/cdb/CDBRecordKey.c + +- `unk` -> `recordLocation` (2): CDBRecordKeyInit assigns the argument to recordKey->location. + +### libs/RevoEX/src/cdb/CDBSystem.c + +- `unk` -> `databaseHandle` (1): Sibling CDBDatabaseState layout ends with flags followed by database; CDBDatabaseInstanceInit assigns the owning database there. +- `unk_0x00` -> `mutexAndUseState` (1): CDB_RECORD_IMPLEMENTATION exposes mutex/used at the start; CDBSystem clears used at offset 0x18. + +### libs/RevoEX/src/nhttp/NHTTP_bgnend.c + +- `_unk7DC` -> `stopping` (3): NHTTP_thread.c already declares the same NHTTPBgnEndInfo fields as stopping/reserved and NHTTPThreadInfo tail as reserved. +- `_unk7E4` -> `reserved` (2): NHTTP_thread.c already declares the same NHTTPBgnEndInfo fields as stopping/reserved and NHTTPThreadInfo tail as reserved. + +### libs/RevoEX/src/nhttp/NHTTP_os_RVL.c + +- `_unk7DC` -> `stopping` (2): NHTTP_thread.c already declares the same NHTTPBgnEndInfo fields as stopping/reserved and NHTTPThreadInfo tail as reserved. +- `_unk7E4` -> `reserved` (1): NHTTP_thread.c already declares the same NHTTPBgnEndInfo fields as stopping/reserved and NHTTPThreadInfo tail as reserved. +- `_unk34C` -> `reserved` (1): NHTTP_thread.c already declares the same NHTTPBgnEndInfo fields as stopping/reserved and NHTTPThreadInfo tail as reserved. + +### libs/RevoEX/src/nhttp/d_nhttp_common.c + +- `_unk24` -> `reservedWord` (1): NHTTPStaticResource fields after its condition variable have no accesses; distinct from connection callback members with the same old spelling. +- `_unk28` -> `reserved` (1): NHTTPStaticResource fields after its condition variable have no accesses; distinct from connection callback members with the same old spelling. + +### libs/RevoEX/src/nwc24/NWC24Download.c + +- `unknown_0x1a` -> `errorCount` (2): ClearDlTaskError resets the fields; corroborated by same offsets in doldecomp/ogws NWC24iDownload.h errorCount/lastError. +- `unknown_0x20` -> `lastError` (2): ClearDlTaskError resets the fields; corroborated by same offsets in doldecomp/ogws NWC24iDownload.h errorCount/lastError. +- `unknown_0x16` -> `reservedGroupData` (1): Same-offset NWC24iDlTask in doldecomp/ogws identifies subTaskFlags at 0x26, serverInterval/lastUpdate/subtask times at 0x2c, rootCaId at 0x1fd; preserve opaque array extents. Group trailing bytes have no named accesses. +- `unknown_0x26` -> `subTaskFlagStorage` (1): Same-offset NWC24iDlTask in doldecomp/ogws identifies subTaskFlags at 0x26, serverInterval/lastUpdate/subtask times at 0x2c, rootCaId at 0x1fd; preserve opaque array extents. Group trailing bytes have no named accesses. +- `unknown_0x2c` -> `updateTimeStorage` (1): Same-offset NWC24iDlTask in doldecomp/ogws identifies subTaskFlags at 0x26, serverInterval/lastUpdate/subtask times at 0x2c, rootCaId at 0x1fd; preserve opaque array extents. Group trailing bytes have no named accesses. +- `unknown_0x1fd` -> `rootCaStorage` (1): Same-offset NWC24iDlTask in doldecomp/ogws identifies subTaskFlags at 0x26, serverInterval/lastUpdate/subtask times at 0x2c, rootCaId at 0x1fd; preserve opaque array extents. Group trailing bytes have no named accesses. +- `unknown_0x08` -> `reserved` (1): Header extra words at 0x0c/0x0e are only cleared in NWC24iCreateDlTaskList; arrays/word at 0x08 have no named accesses. No external operational meaning is assumed. +- `unknown_0x0c` -> `reservedHeaderWord0` (2): The two header halfwords are only cleared by NWC24iCreateDlTaskList and have no readers; no paired-word or operational meaning is assumed. +- `unknown_0x0e` -> `reservedHeaderWord1` (2): The two header halfwords are only cleared by NWC24iCreateDlTaskList and have no readers; no paired-word or operational meaning is assumed. +- `unknown_0x16` -> `reservedTaskData` (1): Header extra words at 0x0c/0x0e are only cleared in NWC24iCreateDlTaskList; arrays/word at 0x08 have no named accesses. No external operational meaning is assumed. + +### libs/RevoEX/src/nwc24/NWC24MBoxCtrl.c + +- `unk_0x1C` -> `crc` (4): MBoxCtrl copies to/from entry->crc and compares for message lookup. +- `unk_0x50` -> `charsetData` (4): WriteContentTypeField stores charset name offset/length; MsgRead reads it into charset. +- `unk_0x58` -> `encodingData` (4): WriteContentTypeField stores transfer encoding name; MsgRead feeds it to NWC24ParseEncodingStr. + +### libs/RevoEX/src/nwc24/NWC24MsgCommit.c + +- `unk_0x50` -> `charsetData` (2): WriteContentTypeField stores charset name offset/length; MsgRead reads it into charset. +- `unk_0x58` -> `encodingData` (2): WriteContentTypeField stores transfer encoding name; MsgRead feeds it to NWC24ParseEncodingStr. + +### libs/RevoEX/src/nwc24/NWC24MsgObj.c + +- `unk_0x50` -> `charsetData` (1): WriteContentTypeField stores charset name offset/length; MsgRead reads it into charset. +- `unk_0x58` -> `encodingData` (1): WriteContentTypeField stores transfer encoding name; MsgRead feeds it to NWC24ParseEncodingStr. + +### libs/RevoEX/src/nwc24/NWC24MsgRead.c + +- `unk_0x50` -> `charsetData` (4): WriteContentTypeField stores charset name offset/length; MsgRead reads it into charset. +- `unk_0x58` -> `encodingData` (4): WriteContentTypeField stores transfer encoding name; MsgRead feeds it to NWC24ParseEncodingStr. + +### libs/RevoEX/src/nwc24/NWC24SecretFList.c + +- `unk_0x0C` -> `registeredCount` (1): Same magic/version/infoCount/registeredCount prefix as sibling NWC24FLHeader; secret-list creation initializes the fourth word to zero. + +### libs/RevoEX/src/nwc24/NWC24Utils.c + +- `unk_0x07` -> `reserved` (1): Date conversions read year/month/day/hour/min/sec only; final byte is only zeroed by NWC24Date_Init. + +### libs/RevoEX/src/vf/fatfs/pf_fat12.c + +- `b_UNK` -> `prefix` (4): The two concatenation macros paste prefix and y into a token. +- `b_UNK` -> `sectorOffset` (15): Both FAT_MACRO definitions add the parameter to the current sector before cache-page checks and reads. + +### src/BS2/BS2.c + +- `unk0` -> `commandData` (3): GetSomeDevFromExi sends commandData as the second EXI word and ORs registerSelect into the command word. +- `unk1` -> `registerSelect` (4): GetSomeDevFromExi sends commandData as the second EXI word and ORs registerSelect into the command word. + +### src/BS2/BS2Fatal.c + +- `unk_0x0C` -> `reserved` (1): BS2FatalParam tail bytes have no reads or writes by member name; only fg/bg/msg are used. + +### src/bannerSound/AudioWavePlayer.cpp + +- `unk_0xB0` -> `mReserved` (1): SimpleWavePlayer constructor only clears the byte; all playback state uses the separately named booleans. + +### src/bannerSound/BannerSoundPlayer.cpp + +- `unk_0x510` -> `mReserved` (1): BannerSoundPlayer constructor only clears the byte; no reader in any banner sound source. + +### src/channelScript/systemmenu/iplCSColor.cpp + +- `unk_0x00` -> `color` (4): Property getters/setters access color; single-integer constructor reads argumentColor; final struct word has no accesses. +- `unk_0x04` -> `argumentColor` (2): Property getters/setters access color; single-integer constructor reads argumentColor; final struct word has no accesses. +- `unk_0x08` -> `reserved` (1): Property getters/setters access color; single-integer constructor reads argumentColor; final struct word has no accesses. + +### src/channelScript/systemmenu/iplCSPane.cpp + +- `unk` -> `paneAddress` (2): Pane::_ctor stores this word as native object data; getters cast stored native data to Pane*. + +### src/channelScript/systemmenu/iplCSUtil.cpp + +- `unk` -> `objectData` (3): Points to CHANSVmObjHdr::value.ptr_v; object validity checks the first stored word. + +### src/iplwww/www_surface.cpp + +- `unk_0x04` -> `reserved` (1): FontFileData word has no named accesses; name/start/end are populated for the font table. +- `unk_0x0C` -> `mReserved` (1): SurfaceManager constructor only initializes this word; no readers in src/libs/include. + +### src/keyboard/MyTiInputForm.cpp + +- `field_0x0C` -> `trigger` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### src/keyboard/tiCandidateBox.cpp + +- `field_0x0C` -> `trigger` (4): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x10` -> `hold` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x00` -> `controller` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `unknown` -> `predictionState` (4): tiInputForm.cpp command 31 returns PredictionState.mode/enabled; command 29 consumes the same fields. +- `arg2` -> `enabled` (2): tiInputForm.cpp command 31 returns PredictionState.mode/enabled; command 29 consumes the same fields. +- `arg1` -> `mode` (1): tiInputForm.cpp command 31 returns PredictionState.mode/enabled; command 29 consumes the same fields. + +### src/keyboard/tiCellPhone.cpp + +- `field_0x0C` -> `trigger` (5): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x00` -> `controller` (4): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x10` -> `hold` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### src/keyboard/tiPcKeyboard.cpp + +- `field_0x0C` -> `trigger` (3): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x10` -> `hold` (1): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. +- `field_0x00` -> `controller` (2): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### src/keyboard/tiPredictLang.cpp + +- `field_0x0C` -> `trigger` (2): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### src/keyboard/tiToolBar.cpp + +- `field_0x0C` -> `trigger` (2): TiEventHandler::Input alternate declaration already names these offsets controller/trigger/hold; event handlers test trigger/hold masks and pass controller to dragging APIs. + +### src/scene/address/iplAddress.cpp + +- `unk_0x90` -> `mReserved` (1): Address constructor only zeroes the reserved word; drag_begin only zeroes the drag reset state, which has no readers. +- `unk_0x1C` -> `mResetState` (1): Address constructor only zeroes the reserved word; drag_begin only zeroes the drag reset state, which has no readers. + +### src/scene/board/iplBoard.cpp + +- `unk` -> `newMailAnimationPending` (2): Board clears the constructor flag when starting button->startNewMailAnm or entering normal state. +- `unk_0xFB8` -> `mNewMailAnimationPending` (5): Board clears the constructor flag when starting button->startNewMailAnm or entering normal state. + +### src/scene/board/iplUrlProcessor.cpp + +- `var_f31` -> `pointerX` (4): get_focused_tagno constructs the expanded left/right/top/bottom hit rectangle and compares pointer coordinates. +- `var_f30` -> `lineBottomOffset` (3): get_focused_tagno constructs the expanded left/right/top/bottom hit rectangle and compares pointer coordinates. +- `var_f29` -> `lineTopOffset` (3): get_focused_tagno constructs the expanded left/right/top/bottom hit rectangle and compares pointer coordinates. +- `var_f28` -> `hitMargin` (6): get_focused_tagno constructs the expanded left/right/top/bottom hit rectangle and compares pointer coordinates. +- `temp_f0` -> `lineY` (3): get_focused_tagno constructs the expanded left/right/top/bottom hit rectangle and compares pointer coordinates. + +### src/scene/calendar/iplCalendar.cpp + +- `unk` -> `calendarIndex` (6): Indexes scPaneName_N_Cal/scPaneName_N_CalPos and selects the corresponding DATE_COUNT half of the date scene list. + +### src/scene/calendar/iplDate.cpp + +- `unk` -> `focusedPass` (2): draw selects mPointCount nonzero in the focused pass and zero in the other pass. + +### src/scene/channelEdit/iplChannelEdit.cpp + +- `unkMsg` -> `blankMessage` (4): System::getMessage(MESG_CHAN_EDIT_BLANK) supplies the suffix appended to the free-block label. +- `RESULT_UNK_N12` -> `RESULT_FILENAME_CONFLICT` (1): Returned when an SD path already exists as a file instead of a directory; ChannelEdit maps it to MESG_DATA_FILENAME_CONFLICT. +- `MESG_DATA_COPY_UNK_ERROR` -> `MESG_DATA_COPY_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_DEL_UNK_ERROR` -> `MESG_DATA_DELETE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_MOVE_UNK_ERROR` -> `MESG_DATA_MOVE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. + +### src/scene/channelEdit/iplNandSDCardManager.cpp + +- `unk_0xE87A0` -> `mbDeleteSDAppAfterRestore` (4): CMD_MOVE_SDAPP_TO_NAND sets true, CMD_COPY_SDAPP_TO_NAND sets false; on_sc_flush deletes the SD app only when true. + +### src/scene/faceSelect/iplFaceSelect.cpp + +- `unk4` -> `balloonMargin4x3` (2): TextBalloon constructor names margin16x9/margin4x3; draw computes half projection width and framebuffer width/projection width for GXSetScissor. +- `unk3` -> `balloonMargin16x9` (2): TextBalloon constructor names margin16x9/margin4x3; draw computes half projection width and framebuffer width/projection width for GXSetScissor. +- `unk0` -> `halfProjectionWidth` (2): TextBalloon constructor names margin16x9/margin4x3; draw computes half projection width and framebuffer width/projection width for GXSetScissor. +- `unk1` -> `framebufferScaleX` (3): TextBalloon constructor names margin16x9/margin4x3; draw computes half projection width and framebuffer width/projection width for GXSetScissor. + +### src/scene/letterWriter/iplLetterWriter.cpp + +- `unk` -> `namePlaceholder` (2): wcsstr finds the xxxxxxxxxx slot replaced with the Mii name header caption. + +### src/scene/memory/iplMemory.cpp + +- `unkMsg` -> `blankMessage` (4): System::getMessage(MESG_CHAN_EDIT_BLANK) supplies the suffix appended to the free-block label. +- `MESG_DATA_COPY_UNK_ERROR` -> `MESG_DATA_COPY_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_DEL_UNK_ERROR` -> `MESG_DATA_DELETE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. +- `MESG_DATA_MOVE_UNK_ERROR` -> `MESG_DATA_MOVE_FAILED` (1): ChannelEdit and Memory choose these messages in the fallback failure branch according to copy, delete or move operation. + +### src/scene/nakamuraTest/iplNakamuraTest.cpp + +- `unk_0x2B88` -> `mReserved2` (1): First two words have no named accesses; constructor only zeroes the third, which has no readers. +- `NET_SETUP_UNK_4` -> `NET_SETUP_ALTERNATE_ERROR` (1): NakamuraTest handles state 4 exactly as NET_SETUP_ERROR: cleanup, capture lastErr and enter error display; no producer identifies a narrower cause. + +### src/scene/nakamuraTest/iplNetSetup.cpp + +- `NET_SETUP_UNK_4` -> `NET_SETUP_ALTERNATE_ERROR` (1): NakamuraTest handles state 4 exactly as NET_SETUP_ERROR: cleanup, capture lastErr and enter error display; no producer identifies a narrower cause. + +### src/sound/iplSound.cpp + +- `unk_0x620` -> `mSoundWork` (9): Three-word sound work storage holds rotating SE block index at [0] and setupMemoryArchive result at [2]; preserve the array. +- `unk` -> `fadeFrames` (7): Passed to SoundHandle::Stop and BannerSoundPlayer::stop; stopAllSound converts frames to milliseconds for ClearEffect. + +### src/system/iplCdbManager.cpp + +- `unk2` -> `openRecord` (2): Forwarded to the openRecord argument of CDBDatabaseSearch. +- `unk_0x39` -> `mReserved1` (1): Both bytes are only cleared by Manager constructor and have no readers. +- `unk_0x38` -> `mReserved0` (1): Both bytes are only cleared by Manager constructor and have no readers. + +### src/system/iplChannelManager.cpp + +- `unk` -> `invalidateReady` (8): getDiskBannerData clears mbDiskChannelReady when this argument is true. +- `unk_00` -> `isDisk` (2): Only set for mDiskChanMetaHdr and disk metaBnr in updateDiskState; distinguishes synthesized disk-channel headers. + +### src/system/iplChannelScriptManager.cpp + +- `CHANS_VM_STATE_UNK0` -> `CHANS_VM_STATE_IDLE` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK0` -> `CHANS_VM_MSG_STATE_NONE` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK1` -> `CHANS_VM_STATE_STARTING` (2): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK2` -> `CHANS_VM_STATE_WAIT_BEGIN_RENDER` (2): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK1` -> `CHANS_VM_MSG_STATE_BEGIN_RENDER` (2): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK3` -> `CHANS_VM_STATE_RUNNING` (3): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK2` -> `CHANS_VM_MSG_STATE_WAIT_RETRACE` (2): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_STATE_UNK4` -> `CHANS_VM_STATE_EXITING` (2): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `SEND_STATE_4` -> `SEND_EXIT_STATE` (4): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. +- `CHANS_VM_MSG_STATE_UNK4` -> `CHANS_VM_MSG_STATE_EXIT` (1): calcCSThread transitions on VmSystemBeginRenderFlag and VmSystemWaitForRetraceFlag, sends exit on termination; calc acknowledges initial rendering and waits for exit. Message slot 3 has no sender or receiver. + +### src/system/iplDialogWindow.cpp + +- `unknown_float` -> `normalizedAlpha` (3): Scalar is mPageAlpha / 255.f and is copied into both vector coordinates. +- `unknown_vec` -> `alphaScale` (1): Scalar is mPageAlpha / 255.f and is copied into both vector coordinates. + +### src/system/iplNandSDWorker.cpp + +- `unkHeap` -> `scratchHeap` (8): Heap carved after the app/save cache supplies temporary SD banner, location and WAD import/backup allocations. +- `unkAllocator` -> `scratchAllocator` (52): Heap carved after the app/save cache supplies temporary SD banner, location and WAD import/backup allocations. +- `unk_0x55` -> `reservedBeforeContentMask` (2): Ticket/view bytes immediately before cidxMask correspond to the tail of libogc tik/tikview reserved[0x3c]; NandSDWorker only copies the view byte. No excluded source uses either spelling. +- `MESSAGE_UNK_49` -> `MESSAGE_CHECK_SD_APP_TITLES` (2): check_sd_app_titles_async sends this message; dispatch calls do_check_sd_app_titles. +- `RESULT_UNK_18` -> `RESULT_CANCELLED` (4): Returned immediately when mbCancel becomes true during title cleanup or SD directory traversal. +- `FA_FILE_UNK_1` -> `FA_FILE_STAT_HIDDEN` (1): FAFstat forwards FAT file status; bit 1 excludes hidden entries beside directory bit 4. Microsoft file-attribute constants corroborate HIDDEN=0x02 and DIRECTORY=0x10. +- `TITLE_TYPE_UNK7` -> `TITLE_TYPE_USER_APP7` (3): USER_APP_TYPE_MASK includes subtype 7, and delete_all_nand_saves deletes its title as a user-installed application. The numeric subtype is retained without asserting an external format meaning. +- `RESULT_UNK_N12` -> `RESULT_FILENAME_CONFLICT` (1): Returned when an SD path already exists as a file instead of a directory; ChannelEdit maps it to MESG_DATA_FILENAME_CONFLICT. + +### src/system/iplNwc24Manager.cpp + +- `unk` -> `appId` (2): isNewMessageThere compares the argument against entries returned by getNewTitleTbl. + +### src/system/iplPostmanManager.cpp + +- `STATE_UNKNOWN` -> `STATE_INITIALIZING` (1): Run sets the state while updating playlog, registering download tasks and starting the scheduler before STATE_RUN_RECEIVE. Existing IsUnknown function name is preserved. + +### src/system/iplSocketSetting.cpp + +- `unk` -> `allocationName` (2): SOAlloc/SOFree implementations forward their name argument as the first callback argument. + +### src/system/odh.cpp + +- `unk` -> `workSize` (11): include/system/odh.h and cdj_d_decompressLoop already name this same argument workSize. + +## Retained occurrences + +BTE sources contain no remaining identifiers from the targeted placeholder families. Standard UNKNOWN error/device/protocol enum values and diagnostic strings retain their semantic names. + +| File | Count | Names | Reason | +| --- | ---: | --- | --- | +| `include/channelScript/CHANSVm.h` | 2 | `unk0` (2) | Formal parameter names match excluded CHANSVm.c definitions; those definitions remain owned by another worker. | +| `include/iplMemoryCardLib.h` | 8 | `unk_0x06` (2), `unk_0x0C` (1), `unk_0x0E` (1), `unk_0x12` (1), `unk_0x01` (1), `unk_0x02` (1), `unk_0x07` (1) | Named uses remain in excluded cardSequence/memoryCard source files. | +| `include/iplwww/www_browser.h` | 7 | `unk_0x0C` (2), `unk_0x10` (1), `unk_0x14` (1), `unk_0x18` (1), `unk` (2) | Shared members or formal parameters require edits to rx21 browser/window/Opera www_types files. | +| `include/iplwww/www_window.h` | 4 | `unk_0x2B0` (1), `unk_0x2B4` (1), `unk_0x2BC` (1), `unk_0x2C0` (1) | Shared members or formal parameters require edits to rx21 browser/window/Opera www_types files. | +| `include/keyboard/tiHwKeyboard.h` | 5 | `field_0x14` (1), `field_0x15` (2), `field_0x16` (2) | Members are read/written by rx21 tiHwKeyboard.cpp. | +| `include/scene/board/iplFocusObject.h` | 3 | `unk_0xF8` (1), `unk_0xFC` (1), `unk_0x114` (1) | Members are initialized and used by rx21 iplFocusObject.cpp. | +| `include/scene/channelSelect/iplChannelSelect.h` | 1 | `unkBool` (1) | unkBool is an existing function; the task forbids renaming real functions. | +| `include/scene/memoryCard/iplMemoryCardBase.h` | 8 | `unk_0x04` (4), `unk_0x24` (2), `unk_0x08` (2) | Named uses remain in excluded cardSequence/memoryCard source files. | +| `include/scene/memoryCard/iplMemoryCardManager.h` | 1 | `unk_0x08` (1) | Named uses remain in excluded cardSequence/memoryCard source files. | +| `include/scene/sdChannelTitle/iplSDChannelTitle.h` | 2 | `mUnknownTitleWork` (1), `unk_0x58` (1) | Shared fields belong to rx23 SD-channel-title source. | +| `include/scene/setting/iplAPScanThread.h` | 2 | `unk_0x2C` (2) | unk_0x2C is an existing virtual function, retained under the no-function-renaming rule. | +| `include/system/TVRC.h` | 2 | `unk_0x04` (1), `unk_0x08` (1) | Members are used by rx21 TVRC/TVRCManager source. | +| `include/system/iplCdbBackup.h` | 1 | `unknown` (1) | Existing externally linked data symbols unknown__Q23ipl9CdbBackup and UNKNOWN_VALUE__Q33ipl3cdb7Manager are named in config/43U/symbols.txt; preserving symbol identity avoids changing the linked interface. | +| `include/system/iplCdbManager.h` | 1 | `UNKNOWN_VALUE` (1) | Existing externally linked data symbols unknown__Q23ipl9CdbBackup and UNKNOWN_VALUE__Q33ipl3cdb7Manager are named in config/43U/symbols.txt; preserving symbol identity avoids changing the linked interface. | +| `include/system/iplException.h` | 2 | `unk_0x04` (1), `unk_0x0C` (1) | Member initialization remains in excluded iplException.cpp. | +| `include/system/iplSystem.h` | 1 | `unk_0x1C` (1) | smArg.unk_0x1C is assigned in excluded iplSystem.cpp. | +| `include/system/iplTVRCManager.h` | 10 | `unk_0x04` (1), `unk_0x18` (1), `unk_0x1C` (1), `unk_0x30` (1), `unk_0x38` (1), `unk_0x40` (1), `unk_0x48` (1), `unk_0x74` (1), `unk_0x7C` (1), `unk_0x80` (1) | Members are used by rx21 TVRC/TVRCManager source. | +| `include/titledb.h` | 2 | `TITLE_TYPE_UNK3` (1), `TITLE_TYPE_UNK6` (1) | TITLE_TYPE_UNK3/6 are used by excluded iplSaveDataManager.cpp. | +| `include/utility/iplScroller.h` | 2 | `unk_0x3C` (2) | Scroller field is used by excluded sdChannelMemory/iplSDMemory.cpp:294; rejected trial was reverted. | +| `libs/EGG/include/egg/core/eggHeap.h` | 2 | `unkUnline1` (1), `unkInline2` (1) | unkUnline1 and unkInline2 are existing functions, retained under the no-function-renaming rule. | +| `libs/OperaWWW/include/revolution/www_types.h` | 11 | `unk_0x08` (1), `unk_0x0C` (2), `unk_0x10` (2), `unk_0x14` (2), `unk_0x18` (2), `unk_0x04` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg.h` | 19 | `unk_0x00` (3), `unk_0x24` (1), `unk_0x2C` (1), `unk_0x64A` (1), `unk_0x656` (1), `unk_0x66A` (1), `unk_0x08` (2), `unk_0x10` (1), `unk_0x22` (1), `unk_0x6CC` (1), `unk_0x6D1` (2), `unk_0x21` (1), `unk_0x23` (1), `unk_0x34` (1), `unk_0x4C` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/TMC_JPEG/include/tmc_jpeg_internal.h` | 17 | `unk_0x01` (1), `unk_0x4A4` (2), `unk_0x4C5` (1), `unk_0x460` (1), `unk_0x620` (1), `unk_0x1738` (1), `unk_0x1740` (1), `unk_0x2D` (1), `unk_0x59` (1), `unk_0x4B4` (1), `unk_0x678` (1), `unk_0x1790` (1), `unk_0x1798` (1), `unk_0x181D` (1), `unk_0x19DD` (1), `unk_0x19E1` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/TMC_JPEG/src/api/decapi.c` | 7 | `unk_0x24` (2), `unk_0x2C` (4), `unk_0x21` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/TMC_JPEG/src/exif/exif_parse.c` | 7 | `unk_0x24` (3), `unk_0x2C` (4) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/TMC_JPEG/src/jpegdec/jdec_main.c` | 1 | `unk_0x21` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/include/zi8clib/zitypes.h` | 86 | `unk_0x28` (1), `unk_0x0A` (1), `unk_0x06` (1), `unk_0x02` (1), `unk_0x08` (1), `unk_0x09` (1), `unk_0x0B` (1), `unk_0x10` (1), `unk_0x14` (1), `unk_0x19` (1), `unk_0x1C` (1), `unk_0x20` (1), `unk_0xA0` (1), `unk_0x124` (1), `unk_0x128` (1), `unk_0x12D` (1), `unk_0x12F` (1), `unk_0x139` (1), `unk_0x13C` (1), `unk_0x140` (1), `unk_0x141` (1), `unk_0x184` (1), `unk_0x30D` (1), `unk_0x310` (1), `unk_0x314` (1), `unk_0x318` (1), `unk_0x31D` (1), `unk_0x31E` (1), `unk_0x31F` (1), `unk_0x326` (1), `unk_0x330` (1), `unk_0x338` (1), `unk_0x33C` (1), `unk_0x539` (1), `unk_0x53A` (1), `unk_0x57A` (1), `unk_0x11FC` (1), `unk_0x140C` (1), `unk_0x1414` (1), `unk_0x1419` (1), `unk_0x1420` (1), `unk_0x1760` (1), `unk_0x1768` (1), `unk_0x1769` (1), `unk_0x17EC` (1), `unk_0x17ED` (1), `unk_0x17F4` (1), `unk_0x1874` (1), `unk_0x1876` (1), `unk_0x1877` (1), `unk_0x1878` (1), `unk_0x1879` (1), `unk_0x187A` (1), `unk_0x18FC` (1), `unk_0x18FD` (1), `unk_0x18FE` (1), `unk_0x1980` (1), `unk_0x1981` (1), `unk_0x1982` (1), `unk_0x1983` (1), `unk_0x1984` (1), `unk_0x1985` (1), `unk_0x1986` (1), `unk_0x1987` (1), `unk_0x1988` (1), `unk_0x1A0A` (1), `unk_0x1A0B` (1), `unk_0x1A90` (1), `unk_0x1A92` (1), `unk_0x1B14` (1), `unk_0x1B15` (1), `unk_0x1B25` (1), `unk_0x1B2C` (1), `unk_0x1B31` (1), `unk_0x1B32` (1), `unk_0x1B34` (1), `unk_0x1B36` (1), `unk_0x1B38` (1), `unk_0x1B3A` (1), `unk_0x1B3B` (1), `unk_0x1B3C` (1), `unk_0x1B3D` (1), `unk_0x1B3E` (1), `unk_0x1B3F` (1), `unk_0x1B40` (1), `unk_0x1B42` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi81key.c` | 9 | `unknown_04` (1), `unknown_02` (1), `unknown_00` (1), `unknown_17` (1), `unknown_1e` (1), `unknown_20` (1), `unknown_11fb` (1), `unknown_1414` (1), `unknown_1419` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8ZHuwd.c` | 2 | `unk_0x124` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8cgetc.c` | 23 | `unk_0x1B2C` (20), `unk_0x12D` (3) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8dawg.c` | 17 | `unk_0x1760` (3), `unk_0x1768` (6), `unk_0x17F4` (5), `unk_0x17EC` (3) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8getc.c` | 7 | `unk_0x1B3A` (1), `unk_0x1B3C` (1), `unk_0x1B3B` (1), `unk_0x1B3D` (1), `unk_0x1B36` (1), `unk_0x1B32` (1), `unk_0x1B34` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8getc2.c` | 35 | `unk_0x1B2C` (2), `unk_0x338` (2), `unk_0x140C` (2), `unk_0x10` (1), `unk_0x539` (13), `unk_0x57A` (5), `unk_0x53A` (10) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8initd.c` | 16 | `unk_0x08` (1), `unk_0x09` (1), `unk_0x10` (1), `unk_0x1C` (2), `unk_0x1B3A` (1), `unk_0x1B36` (1), `unk_0x1B32` (1), `unk_0x1B34` (1), `unk_0x1B3B` (1), `unk_0x1B3C` (1), `unk_0x1B40` (1), `unk_0x1B38` (1), `unk_0x1874` (1), `unk_0x1B2C` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8misc.c` | 2 | `unk_0x20` (1), `unk_0xA0` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8pud2.c` | 18 | `unk_0x314` (4), `unk_0x310` (5), `unk_0x318` (7), `unk_0x31E` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zi8uwd.c` | 24 | `unk_0x13C` (2), `unk_0x140` (8), `unk_0x141` (11), `unk_0x184` (3) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/ziswordw.c` | 10 | `unk_0x1C` (2), `unk_0x09` (8) | Explicit task ownership exclusion; unchanged. | +| `libs/RVLMiddleware/eZiText/src/clib/zmtkey.c` | 2 | `unk_0x11FC` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVL_SDK/include/revolution/cntcache.h` | 2 | `unk0` (1), `unk1` (1) | Formal names correspond to excluded CNTCACHEInit source. | +| `libs/RVL_SDK/include/revolution/wad.h` | 2 | `unkBlocks` (1), `unkInodes` (1) | unkBlocks/unkInodes are shared WAD fields used by excluded WAD source. | +| `libs/RVL_SDK/src/cntcache/cntcache.c` | 4 | `unk0` (2), `unk1` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RVL_SDK/src/wad/wad.c` | 3 | `unkBlocks` (1), `unkInodes` (1), `unknown` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RevoEX/include/private/nhttp.h` | 19 | `_unk4` (1), `_unk8` (1), `_unkC` (2), `_unk14` (1), `_unk10` (1), `_unkD4` (1), `_unk250` (1), `_unk24` (1), `_unk28` (1), `_unk34` (1), `_unk38` (1), `_unk3C` (1), `_unk8048` (1), `_unk804C` (1), `_unk8050` (1), `_unk8054` (1), `_unk8058` (1), `_unk805C` (1) | Explicit task ownership exclusion; unchanged. | +| `libs/RevoEX/src/nhttp/NHTTP_control.c` | 1 | `_unk14` (1) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/NHTTP_list.c` | 1 | `_unk10` (1) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/NHTTP_request.c` | 3 | `_unkD4` (1), `_unk10` (2) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/NHTTP_socket_RVL.c` | 2 | `_unkD4` (2) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/NHTTP_thread.c` | 13 | `_unk24` (4), `_unk28` (4), `_unk14` (3), `_unk10` (2) | Explicit task ownership exclusion; unchanged. | +| `libs/RevoEX/src/nhttp/d_nhttp.c` | 1 | `_unk250` (1) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/d_nhttp_common.c` | 19 | `_unkC` (3), `_unk4` (6), `_unk24` (2), `_unk8` (6), `_unk28` (2) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/nhttp/d_nhttp_private.c` | 3 | `_unk24` (1), `_unk28` (1), `_unkC` (1) | Members are declared in excluded private/nhttp.h and shared with rx21/rx23 NHTTP sources. | +| `libs/RevoEX/src/so/SOCommon.c` | 4 | `unk10` (4) | Explicit task ownership exclusion; unchanged. | +| `src/channelScript/CHANSVm.c` | 18 | `unk` (15), `unk0` (3) | Explicit task ownership exclusion; unchanged. | +| `src/iplwww/www_browser.cpp` | 24 | `unk` (2), `unk_0x2C0` (1), `unk_0x2B0` (2), `unk_0x2BC` (1), `unk_0x2B4` (1), `unk_0x0C` (5), `unk_0x08` (1), `unk_0x10` (4), `unk_0x14` (4), `unk_0x18` (3) | Explicit task ownership exclusion; unchanged. | +| `src/iplwww/www_trasition.cpp` | 5 | `unk_0x04` (1), `unk_0x0C` (1), `unk_0x10` (1), `unk_0x14` (1), `unk_0x18` (1) | Shared members or formal parameters require edits to rx21 browser/window/Opera www_types files. | +| `src/iplwww/www_wiisetting.cpp` | 5 | `unk_0x04` (1), `unk_0x0C` (1), `unk_0x10` (1), `unk_0x14` (1), `unk_0x18` (1) | Explicit task ownership exclusion; unchanged. | +| `src/iplwww/www_window.cpp` | 25 | `unk_0x2B0` (7), `unk_0x2B4` (6), `unk_0x2BC` (5), `unk_0x2C0` (7) | Explicit task ownership exclusion; unchanged. | +| `src/keyboard/tiHwKeyboard.cpp` | 16 | `field_0x14` (6), `field_0x15` (5), `field_0x16` (5) | Explicit task ownership exclusion; unchanged. | +| `src/keyboard/tiUtil.cpp` | 31 | `var_f26` (4), `var_f25` (4), `var_f27` (5), `var_f28` (5), `var_f29` (5), `var_f30` (8) | Explicit task ownership exclusion; unchanged. | +| `src/scene/board/iplFocusObject.cpp` | 12 | `unk_0xF8` (1), `unk_0xFC` (1), `unk_0x114` (10) | Explicit task ownership exclusion; unchanged. | +| `src/scene/cardSequence/iplCardSequence.cpp` | 19 | `unk_0x06` (4), `unk_0x01` (6), `unk_0x0C` (1), `unk_0x0E` (2), `unk_0x12` (1), `unk_0x02` (3), `unk_0x07` (2) | Explicit task ownership exclusion; unchanged. | +| `src/scene/channelSelect/iplChannelSelect.cpp` | 7 | `unkBool` (7) | unkBool is an existing function; the task forbids renaming real functions. | +| `src/scene/memoryCard/iplGCSaveData.cpp` | 4 | `unk_0x04` (4) | Explicit task ownership exclusion; unchanged. | +| `src/scene/memoryCard/iplGCWindow.cpp` | 5 | `unk_0x08` (1), `unk_0x04` (4) | Explicit task ownership exclusion; unchanged. | +| `src/scene/memoryCard/iplMemoryCard.cpp` | 8 | `unk_0x08` (4), `unk_0x04` (4) | Explicit task ownership exclusion; unchanged. | +| `src/scene/memoryCard/iplMemoryCardBase.cpp` | 9 | `unk_0x04` (2), `unk_0x24` (7) | Explicit task ownership exclusion; unchanged. | +| `src/scene/memoryCard/iplMemoryCardManager.cpp` | 13 | `unk_0x08` (3), `unk_0x0E` (4), `unk_0x06` (5), `unk_0x07` (1) | Explicit task ownership exclusion; unchanged. | +| `src/scene/nakamuraTest/gamespy/natneg/NATify.c` | 2 | `unknown` (2) | unknown is the legitimate NAT classification enum value, not a reconstructed field name. | +| `src/scene/nakamuraTest/gamespy/natneg/NATify.h` | 1 | `unknown` (1) | unknown is the legitimate NAT classification enum value, not a reconstructed field name. | +| `src/scene/nakamuraTest/gamespy/natneg/natneg.c` | 1 | `unknown` (1) | unknown is the legitimate NAT classification enum value, not a reconstructed field name. | +| `src/scene/sdChannelMemory/iplSDMemory.cpp` | 1 | `unk_0x3C` (1) | Explicit task ownership exclusion; unchanged. | +| `src/scene/setting/iplAOSSThread.cpp` | 1 | `unk_0x2C` (1) | unk_0x2C is an existing virtual function, retained under the no-function-renaming rule. | +| `src/scene/setting/iplRakuRakuThread.cpp` | 1 | `unk_0x2C` (1) | unk_0x2C is an existing virtual function, retained under the no-function-renaming rule. | +| `src/system/TVRC.cpp` | 7 | `unk_0x08` (1), `unk_0x0C` (1), `unk_0x10` (1), `unk_0x14` (1), `unk_0x04` (1), `unk_0x18` (2) | Explicit task ownership exclusion; unchanged. | +| `src/system/iplCdbBackup.cpp` | 3 | `unknown` (2), `UNKNOWN_VALUE` (1) | Existing externally linked data symbols unknown__Q23ipl9CdbBackup and UNKNOWN_VALUE__Q33ipl3cdb7Manager are named in config/43U/symbols.txt; preserving symbol identity avoids changing the linked interface. | +| `src/system/iplCdbManager.cpp` | 1 | `UNKNOWN_VALUE` (1) | Existing externally linked data symbols unknown__Q23ipl9CdbBackup and UNKNOWN_VALUE__Q33ipl3cdb7Manager are named in config/43U/symbols.txt; preserving symbol identity avoids changing the linked interface. | +| `src/system/iplException.cpp` | 2 | `unk_0x04` (1), `unk_0x0C` (1) | Explicit task ownership exclusion; unchanged. | +| `src/system/iplNandSDWorker.cpp` | 5 | `TITLE_TYPE_UNK6` (2), `unkBlocks` (1), `unkInodes` (1), `TITLE_TYPE_UNK3` (1) | Remaining WAD members require excluded WAD edits; TITLE_TYPE_UNK3/6 require excluded iplSaveDataManager.cpp edits. | +| `src/system/iplSaveDataManager.cpp` | 8 | `unk` (4), `TITLE_TYPE_UNK6` (2), `TITLE_TYPE_UNK3` (2) | Explicit task ownership exclusion; unchanged. | +| `src/system/iplSystem.cpp` | 10 | `unk_0x1C` (1), `unkUnline1` (7), `unkInline2` (2) | Explicit task ownership exclusion; unchanged. | +| `src/system/iplTVRCManager.cpp` | 31 | `unk_0x30` (5), `unk_0x40` (3), `unk_0x48` (5), `unk_0x04` (3), `unk_0x7C` (3), `unk_0x08` (1), `unk_0x1C` (5), `unk_0x80` (1), `unk_0x74` (1), `unk_0x18` (3), `unk_0x38` (1) | Explicit task ownership exclusion; unchanged. | +| `src/utility/iplJpegDecoder.cpp` | 6 | `unk_0x24` (3), `unk_0x2C` (3) | Decoder members are declared/used in excluded TMC_JPEG sources. | +| `src/utility/iplUtility.cpp` | 13 | `unk_0x3C` (13) | Scroller field is used by excluded sdChannelMemory/iplSDMemory.cpp:294; rejected trial was reverted. | + +## Full gate unit results + +The verbatim lines below cover all 66 directly edited source units. Header dependents and every other source unit were also checked in the final 1,027-unit gate; their full output is saved at `/tmp/rx22-final-gate.log`. + +```text +[libs/EGG/src/core/eggAudioMgr] pool: IDENTICAL +[libs/EGG/src/core/eggAudioMgr] objdiff: code 632/632 data 152/152 functions 10/10 fuzzy 100.0000 linked code 632 +[libs/EGG/src/core/eggAudioMgr] instruction-exact functions: 10/10 +[libs/EGG/src/core/eggExpHeap] pool: IDENTICAL +[libs/EGG/src/core/eggExpHeap] objdiff: code 888/888 data 48/48 functions 14/14 fuzzy 100.0000 linked code 888 +[libs/EGG/src/core/eggExpHeap] instruction-exact functions: 14/14 +[libs/MSL/src/MSL_Common/signal] pool: IDENTICAL +[libs/MSL/src/MSL_Common/signal] objdiff: code 176/176 data 52/52 functions 1/1 fuzzy 100.0000 linked code 176 +[libs/MSL/src/MSL_Common/signal] instruction-exact functions: 1/1 +[libs/MSL/src/MSL_Common_Embedded/ansi_fp] pool: IDENTICAL +[libs/MSL/src/MSL_Common_Embedded/ansi_fp] objdiff: code 6512/6512 data 780/780 functions 10/10 fuzzy 100.0000 linked code 6512 +[libs/MSL/src/MSL_Common_Embedded/ansi_fp] instruction-exact functions: 10/10 +[libs/NW4R/src/ut/ut_ArchiveFontBase] pool: IDENTICAL +[libs/NW4R/src/ut/ut_ArchiveFontBase] objdiff: code 5120/5120 data 96/96 functions 23/23 fuzzy 100.0000 linked code 5120 +[libs/NW4R/src/ut/ut_ArchiveFontBase] instruction-exact functions: 23/23 +[libs/RVL_SDK/src/card/CARDUnlock] pool: IDENTICAL +[libs/RVL_SDK/src/card/CARDUnlock] objdiff: code 3432/3432 data 360/360 functions 6/6 fuzzy 100.0000 linked code 3432 +[libs/RVL_SDK/src/card/CARDUnlock] instruction-exact functions: 6/6 +[libs/RVL_SDK/src/es/es] pool: IDENTICAL +[libs/RVL_SDK/src/es/es] objdiff: code 7572/7572 data 16/16 functions 45/45 fuzzy 100.0000 linked code 7572 +[libs/RVL_SDK/src/es/es] instruction-exact functions: 45/45 +[libs/RVL_SDK/src/kpad/KPAD] pool: IDENTICAL +[libs/RVL_SDK/src/kpad/KPAD] objdiff: code 13056/13056 data 8032/8032 functions 29/29 fuzzy 100.0000 linked code 13056 +[libs/RVL_SDK/src/kpad/KPAD] instruction-exact functions: 29/29 +[libs/RVL_SDK/src/os/OS] pool: IDENTICAL +[libs/RVL_SDK/src/os/OS] objdiff: code 5084/5084 data 1240/1240 functions 21/21 fuzzy 100.0000 linked code 5084 +[libs/RVL_SDK/src/os/OS] instruction-exact functions: 21/21 +[libs/RVL_SDK/src/rso/RSOLink] pool: IDENTICAL +[libs/RVL_SDK/src/rso/RSOLink] objdiff: code 5604/5604 data 288/288 functions 16/16 fuzzy 100.0000 linked code 5604 +[libs/RVL_SDK/src/rso/RSOLink] instruction-exact functions: 16/16 +[libs/RVL_SDK/src/usb/usb] pool: IDENTICAL +[libs/RVL_SDK/src/usb/usb] objdiff: code 4396/4396 data 1712/1712 functions 13/13 fuzzy 100.0000 linked code 4396 +[libs/RVL_SDK/src/usb/usb] instruction-exact functions: 13/13 +[libs/RVL_SDK/src/wpad/WPAD] pool: IDENTICAL +[libs/RVL_SDK/src/wpad/WPAD] objdiff: code 31040/31040 data 15096/15096 functions 67/67 fuzzy 100.0000 linked code 31040 +[libs/RVL_SDK/src/wpad/WPAD] instruction-exact functions: 67/67 +[libs/RVL_SDK/src/wud/WUD] pool: IDENTICAL +[libs/RVL_SDK/src/wud/WUD] objdiff: code 18852/18852 data 12016/12016 functions 66/66 fuzzy 100.0000 linked code 18852 +[libs/RVL_SDK/src/wud/WUD] instruction-exact functions: 66/66 +[libs/RVL_SDK/src/wud/WUDHidHost] pool: IDENTICAL +[libs/RVL_SDK/src/wud/WUDHidHost] objdiff: code 1532/1532 data 640/640 functions 5/5 fuzzy 100.0000 linked code 1532 +[libs/RVL_SDK/src/wud/WUDHidHost] instruction-exact functions: 5/5 +[libs/RevoEX/src/cdb/CDBDatabase] pool: IDENTICAL +[libs/RevoEX/src/cdb/CDBDatabase] objdiff: code 12152/12152 data 312/312 functions 33/33 fuzzy 100.0000 linked code 12152 +[libs/RevoEX/src/cdb/CDBDatabase] instruction-exact functions: 33/33 +[libs/RevoEX/src/cdb/CDBFileSystemSD] pool: IDENTICAL +[libs/RevoEX/src/cdb/CDBFileSystemSD] objdiff: code 2072/2072 data 616/616 functions 15/15 fuzzy 100.0000 linked code 2072 +[libs/RevoEX/src/cdb/CDBFileSystemSD] instruction-exact functions: 15/15 +[libs/RevoEX/src/cdb/CDBRecordFile] pool: IDENTICAL +[libs/RevoEX/src/cdb/CDBRecordFile] objdiff: code 2020/2020 data 32/32 functions 17/17 fuzzy 100.0000 linked code 2020 +[libs/RevoEX/src/cdb/CDBRecordFile] instruction-exact functions: 17/17 +[libs/RevoEX/src/cdb/CDBRecordKey] pool: IDENTICAL +[libs/RevoEX/src/cdb/CDBRecordKey] objdiff: code 2424/2424 data 64/64 functions 20/20 fuzzy 100.0000 linked code 2424 +[libs/RevoEX/src/cdb/CDBRecordKey] instruction-exact functions: 20/20 +[libs/RevoEX/src/cdb/CDBSystem] pool: IDENTICAL +[libs/RevoEX/src/cdb/CDBSystem] objdiff: code 5076/5076 data 1464/1464 functions 36/36 fuzzy 100.0000 linked code 5076 +[libs/RevoEX/src/cdb/CDBSystem] instruction-exact functions: 36/36 +[libs/RevoEX/src/nhttp/NHTTP_bgnend] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_bgnend] objdiff: code 880/880 data 136/136 functions 9/9 fuzzy 100.0000 linked code 880 +[libs/RevoEX/src/nhttp/NHTTP_bgnend] instruction-exact functions: 9/9 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] pool: IDENTICAL +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] objdiff: code 548/548 data 72/72 functions 11/11 fuzzy 100.0000 linked code 548 +[libs/RevoEX/src/nhttp/NHTTP_os_RVL] instruction-exact functions: 11/11 +[libs/RevoEX/src/nhttp/d_nhttp_common] pool: IDENTICAL +[libs/RevoEX/src/nhttp/d_nhttp_common] objdiff: code 2088/2088 data 3368/3368 functions 26/26 fuzzy 100.0000 linked code 2088 +[libs/RevoEX/src/nhttp/d_nhttp_common] instruction-exact functions: 26/26 +[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 12496/12496 data 80/80 functions 30/30 fuzzy 100.0000 linked code 12496 +[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 30/30 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] objdiff: code 10604/10604 data 192/192 functions 25/25 fuzzy 100.0000 linked code 10604 +[libs/RevoEX/src/nwc24/NWC24MBoxCtrl] instruction-exact functions: 25/25 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgCommit] objdiff: code 8532/8532 data 904/904 functions 18/18 fuzzy 100.0000 linked code 8532 +[libs/RevoEX/src/nwc24/NWC24MsgCommit] instruction-exact functions: 18/18 +[libs/RevoEX/src/nwc24/NWC24MsgObj] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgObj] objdiff: code 3100/3100 data None/None functions 22/22 fuzzy 100.0000 linked code 3100 +[libs/RevoEX/src/nwc24/NWC24MsgObj] instruction-exact functions: 22/22 +[libs/RevoEX/src/nwc24/NWC24MsgRead] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24MsgRead] objdiff: code 4660/4660 data 128/128 functions 16/16 fuzzy 100.0000 linked code 4660 +[libs/RevoEX/src/nwc24/NWC24MsgRead] instruction-exact functions: 16/16 +[libs/RevoEX/src/nwc24/NWC24SecretFList] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24SecretFList] objdiff: code 692/692 data 40/40 functions 4/4 fuzzy 100.0000 linked code 692 +[libs/RevoEX/src/nwc24/NWC24SecretFList] instruction-exact functions: 4/4 +[libs/RevoEX/src/nwc24/NWC24Utils] pool: IDENTICAL +[libs/RevoEX/src/nwc24/NWC24Utils] objdiff: code 792/792 data None/None functions 6/6 fuzzy 100.0000 linked code 792 +[libs/RevoEX/src/nwc24/NWC24Utils] instruction-exact functions: 6/6 +[libs/RevoEX/src/vf/fatfs/pf_fat12] pool: IDENTICAL +[libs/RevoEX/src/vf/fatfs/pf_fat12] objdiff: code 2872/2872 data None/None functions 4/4 fuzzy 100.0000 linked code 2872 +[libs/RevoEX/src/vf/fatfs/pf_fat12] instruction-exact functions: 4/4 +[src/BS2/BS2] pool: IDENTICAL +[src/BS2/BS2] objdiff: code 6060/6060 data 5840/5840 functions 9/9 fuzzy 100.0000 linked code 6060 +[src/BS2/BS2] instruction-exact functions: 9/9 +[src/BS2/BS2Fatal] pool: IDENTICAL +[src/BS2/BS2Fatal] objdiff: code 3116/3116 data 2448/2448 functions 10/10 fuzzy 100.0000 linked code 3116 +[src/BS2/BS2Fatal] instruction-exact functions: 10/10 +[src/bannerSound/AudioWavePlayer] pool: IDENTICAL +[src/bannerSound/AudioWavePlayer] objdiff: code 3288/3288 data 80/80 functions 23/23 fuzzy 100.0000 linked code 3288 +[src/bannerSound/AudioWavePlayer] instruction-exact functions: 23/23 +[src/bannerSound/BannerSoundPlayer] pool: IDENTICAL +[src/bannerSound/BannerSoundPlayer] objdiff: code 1572/1572 data 16408/16408 functions 13/13 fuzzy 100.0000 linked code 1572 +[src/bannerSound/BannerSoundPlayer] instruction-exact functions: 13/13 +[src/channelScript/systemmenu/iplCSColor] pool: IDENTICAL +[src/channelScript/systemmenu/iplCSColor] objdiff: code 3104/3104 data 128/128 functions 22/22 fuzzy 100.0000 linked code 3104 +[src/channelScript/systemmenu/iplCSColor] instruction-exact functions: 22/22 +[src/channelScript/systemmenu/iplCSPane] pool: IDENTICAL +[src/channelScript/systemmenu/iplCSPane] objdiff: code 5804/5804 data 672/672 functions 36/36 fuzzy 100.0000 linked code 5804 +[src/channelScript/systemmenu/iplCSPane] instruction-exact functions: 36/36 +[src/channelScript/systemmenu/iplCSUtil] pool: IDENTICAL +[src/channelScript/systemmenu/iplCSUtil] objdiff: code 320/320 data None/None functions 3/3 fuzzy 100.0000 linked code 320 +[src/channelScript/systemmenu/iplCSUtil] instruction-exact functions: 3/3 +[src/iplwww/www_surface] pool: IDENTICAL +[src/iplwww/www_surface] objdiff: code 1916/1916 data 3536/3536 functions 21/21 fuzzy 100.0000 linked code 1916 +[src/iplwww/www_surface] instruction-exact functions: 21/21 +[src/keyboard/MyTiInputForm] pool: IDENTICAL +[src/keyboard/MyTiInputForm] objdiff: code 14532/14532 data 3032/3032 functions 84/84 fuzzy 100.0000 linked code 14532 +[src/keyboard/MyTiInputForm] instruction-exact functions: 84/84 +[src/keyboard/tiCandidateBox] pool: IDENTICAL +[src/keyboard/tiCandidateBox] objdiff: code 21728/24000 data 4652/4652 functions 110/112 fuzzy 99.7107 linked code 0 +[src/keyboard/tiCandidateBox] instruction-exact functions: 110/112 +[src/keyboard/tiCellPhone] pool: IDENTICAL +[src/keyboard/tiCellPhone] objdiff: code 19028/19028 data 3860/3860 functions 86/86 fuzzy 100.0000 linked code 19028 +[src/keyboard/tiCellPhone] instruction-exact functions: 86/86 +[src/keyboard/tiPcKeyboard] pool: IDENTICAL +[src/keyboard/tiPcKeyboard] objdiff: code 28484/28484 data 18564/18564 functions 141/141 fuzzy 100.0000 linked code 28484 +[src/keyboard/tiPcKeyboard] instruction-exact functions: 141/141 +[src/keyboard/tiPredictLang] pool: IDENTICAL +[src/keyboard/tiPredictLang] objdiff: code 5536/5536 data 2300/2300 functions 36/36 fuzzy 100.0000 linked code 5536 +[src/keyboard/tiPredictLang] instruction-exact functions: 36/36 +[src/keyboard/tiToolBar] pool: IDENTICAL +[src/keyboard/tiToolBar] objdiff: code 5464/5464 data 1452/1452 functions 37/37 fuzzy 100.0000 linked code 5464 +[src/keyboard/tiToolBar] instruction-exact functions: 37/37 +[src/scene/address/iplAddress] pool: IDENTICAL +[src/scene/address/iplAddress] objdiff: code 23988/23988 data 1964/1964 functions 101/101 fuzzy 100.0000 linked code 23988 +[src/scene/address/iplAddress] instruction-exact functions: 101/101 +[src/scene/board/iplBoard] pool: IDENTICAL +[src/scene/board/iplBoard] objdiff: code 20276/20276 data 896/896 functions 94/94 fuzzy 100.0000 linked code 20276 +[src/scene/board/iplBoard] instruction-exact functions: 94/94 +[src/scene/board/iplUrlProcessor] pool: IDENTICAL +[src/scene/board/iplUrlProcessor] objdiff: code 2488/2488 data 48/48 functions 17/17 fuzzy 100.0000 linked code 2488 +[src/scene/board/iplUrlProcessor] instruction-exact functions: 17/17 +[src/scene/calendar/iplCalendar] pool: IDENTICAL +[src/scene/calendar/iplCalendar] objdiff: code 7452/7452 data 1244/1244 functions 42/42 fuzzy 100.0000 linked code 7452 +[src/scene/calendar/iplCalendar] instruction-exact functions: 42/42 +[src/scene/calendar/iplDate] pool: IDENTICAL +[src/scene/calendar/iplDate] objdiff: code 2868/2868 data 356/356 functions 19/19 fuzzy 100.0000 linked code 2868 +[src/scene/calendar/iplDate] instruction-exact functions: 19/19 +[src/scene/channelEdit/iplChannelEdit] pool: IDENTICAL +[src/scene/channelEdit/iplChannelEdit] objdiff: code 13412/13412 data 1600/1600 functions 65/65 fuzzy 100.0000 linked code 13412 +[src/scene/channelEdit/iplChannelEdit] instruction-exact functions: 65/65 +[src/scene/channelEdit/iplNandSDCardManager] pool: IDENTICAL +[src/scene/channelEdit/iplNandSDCardManager] objdiff: code 11264/11264 data 416/416 functions 64/64 fuzzy 100.0000 linked code 11264 +[src/scene/channelEdit/iplNandSDCardManager] instruction-exact functions: 3/64 +[src/scene/faceSelect/iplFaceSelect] pool: IDENTICAL +[src/scene/faceSelect/iplFaceSelect] objdiff: code 9524/9524 data 2152/2152 functions 37/37 fuzzy 100.0000 linked code 9524 +[src/scene/faceSelect/iplFaceSelect] instruction-exact functions: 37/37 +[src/scene/letterWriter/iplLetterWriter] pool: IDENTICAL +[src/scene/letterWriter/iplLetterWriter] objdiff: code 6092/6092 data 632/632 functions 31/31 fuzzy 100.0000 linked code 6092 +[src/scene/letterWriter/iplLetterWriter] instruction-exact functions: 31/31 +[src/scene/memory/iplMemory] pool: IDENTICAL +[src/scene/memory/iplMemory] objdiff: code 12984/12984 data 1560/1560 functions 63/63 fuzzy 100.0000 linked code 12984 +[src/scene/memory/iplMemory] instruction-exact functions: 63/63 +[src/scene/nakamuraTest/iplNakamuraTest] pool: IDENTICAL +[src/scene/nakamuraTest/iplNakamuraTest] objdiff: code 3596/3596 data 912/912 functions 15/15 fuzzy 100.0000 linked code 3596 +[src/scene/nakamuraTest/iplNakamuraTest] instruction-exact functions: 15/15 +[src/scene/nakamuraTest/iplNetSetup] pool: IDENTICAL +[src/scene/nakamuraTest/iplNetSetup] objdiff: code 2080/2080 data 256/256 functions 11/11 fuzzy 100.0000 linked code 2080 +[src/scene/nakamuraTest/iplNetSetup] instruction-exact functions: 11/11 +[src/sound/iplSound] pool: IDENTICAL +[src/sound/iplSound] objdiff: code 5576/5576 data 3316/3316 functions 57/57 fuzzy 100.0000 linked code 5576 +[src/sound/iplSound] instruction-exact functions: 56/57 +[src/system/iplCdbManager] pool: IDENTICAL +[src/system/iplCdbManager] objdiff: code 5404/5404 data 184/184 functions 31/31 fuzzy 100.0000 linked code 5404 +[src/system/iplCdbManager] instruction-exact functions: 31/31 +[src/system/iplChannelManager] pool: IDENTICAL +[src/system/iplChannelManager] objdiff: code 12552/12552 data 1080/1080 functions 74/74 fuzzy 100.0000 linked code 12552 +[src/system/iplChannelManager] instruction-exact functions: 74/74 +[src/system/iplChannelScriptManager] pool: IDENTICAL +[src/system/iplChannelScriptManager] objdiff: code 2148/2148 data 1024/1024 functions 10/10 fuzzy 100.0000 linked code 2148 +[src/system/iplChannelScriptManager] instruction-exact functions: 10/10 +[src/system/iplDialogWindow] pool: IDENTICAL +[src/system/iplDialogWindow] objdiff: code 12984/12984 data 1548/1548 functions 67/67 fuzzy 100.0000 linked code 12984 +[src/system/iplDialogWindow] instruction-exact functions: 67/67 +[src/system/iplNandSDWorker] pool: IDENTICAL +[src/system/iplNandSDWorker] objdiff: code 51428/51428 data 12312/12312 functions 203/203 fuzzy 100.0000 linked code 51428 +[src/system/iplNandSDWorker] instruction-exact functions: 7/203 +[src/system/iplNwc24Manager] pool: IDENTICAL +[src/system/iplNwc24Manager] objdiff: code 10252/10252 data 888/888 functions 53/53 fuzzy 100.0000 linked code 10252 +[src/system/iplNwc24Manager] instruction-exact functions: 53/53 +[src/system/iplPostmanManager] pool: IDENTICAL +[src/system/iplPostmanManager] objdiff: code 2832/2832 data 584/584 functions 22/22 fuzzy 100.0000 linked code 2832 +[src/system/iplPostmanManager] instruction-exact functions: 22/22 +[src/system/iplSocketSetting] pool: IDENTICAL +[src/system/iplSocketSetting] objdiff: code 864/864 data 128/128 functions 8/8 fuzzy 100.0000 linked code 864 +[src/system/iplSocketSetting] instruction-exact functions: 8/8 +[src/system/odh] pool: IDENTICAL +[src/system/odh] objdiff: code 12876/14684 data 6360/6360 functions 26/28 fuzzy 99.5546 linked code 0 +[src/system/odh] instruction-exact functions: 26/28 +``` + +## Local commits + +| Commit | File group | Paths | +| --- | --- | ---: | +| `463e4129` | name board hit testing and sound state | 6 | +| `afd35027` | name nwc24 message and download fields | 15 | +| `85dc762d` | name es transfer parameters | 2 | +| `1930d376` | name keyboard input and drawing state | 14 | +| `0c9ccc7b` | name storage operations and scene state | 29 | +| `fba35201` | name bluetooth registration state | 4 | +| `27ee5de2` | name channel metadata flags | 2 | +| `f59f1c04` | name controller calibration and smoothing fields | 1 | +| `be1e60ae` | name sdk call parameters and fallback state | 11 | +| `861c8a88` | name script argument and object storage | 5 | +| `e3482665` | name database records and search parameters | 13 | +| `ccc5344f` | name archive font cache offset | 2 | +| `bb94d1c7` | align http worker state names | 3 | +| `964dbc15` | name inactive audio fields and reset state | 9 | +| `a24a3625` | name opaque network state | 4 | +| `9f7240bb` | name reserved interface fields | 10 | +| `1d191cfd` | name remote control storage and speaker command | 4 | +| `e2a685f2` | name unused memory card header fields | 3 | +| `2da885f8` | name browser surface reserved fields | 2 | +| `5e469c97` | name browser event parameters | 1 | +| `56fe23cd` | name channel vm lifecycle states | 2 | +| `dfcab924` | name postman initialization state | 2 | +| `9bcab925` | name fat sector macro parameters | 1 | +| `ce7de679` | name signal dispatch slots | 2 | +| `9fdaa156` | name rso zero base relocation sections | 1 |