Compare commits

...

1 Commits

147 changed files with 1948 additions and 606 deletions

View File

@@ -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

View File

@@ -24,7 +24,7 @@ public:
virtual void setDataCur(u32 sampleOffset) = 0;
private:
undefined4 unk_0x04; // 0x04
undefined4 mReserved; // 0x04
};
class WaveFileAiff : public WaveFile {

View File

@@ -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
};

View File

@@ -64,7 +64,7 @@ private:
SimpleWavePlayer mWavePlayer; // 0x18
AxAdpcmSimplePlayer mAdpcmPlayer; // 0x500
AxAdpcmHandle mAdpcmHandle; // 0x508
u8 unk_0x510; // 0x510
u8 mReserved; // 0x510
f32 mMasterVolume; // 0x514
};

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -241,7 +241,7 @@ namespace textinput {
#endif
#endif
private:
u8 unk_0x00[0xFC];
u8 mKeyboardStateStorage[0xFC];
static HKBManager sInstance;
};

View File

@@ -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
};

View File

@@ -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;

View File

@@ -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
};

View File

@@ -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
};

View File

@@ -41,7 +41,7 @@ namespace ipl {
}
private:
u32 unk_0x28;
u32 mReserved;
EGG::Heap* mpHeap;
bool mbDisableCon; // 0x30

View File

@@ -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

View File

@@ -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

View File

@@ -139,7 +139,7 @@ namespace ipl {
math::LinearIntp<math::VEC2> 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];

View File

@@ -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();

View File

@@ -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);

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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;

View File

@@ -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,
};

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -63,7 +63,7 @@ typedef union RBRRecordFlags {
u32 data;
struct {
u8 optOut; // 0x00
u8 unk_0x01[2];
u8 reserved[2];
u8 type; // 0x03
};
} RBRRecordFlags;

View File

@@ -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 {

View File

@@ -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);

View File

@@ -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

View File

@@ -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
};

View File

@@ -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 {

View File

@@ -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;

View File

@@ -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();

View File

@@ -83,7 +83,7 @@ namespace ipl {
enum {
TYPE_POINT = 0,
TYPE_GRAB,
TYPE_UNK2,
TYPE_RESERVED,
TYPE_MAX, /* ??? */
};

View File

@@ -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); }

View File

@@ -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];

View File

@@ -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;

View File

@@ -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'

View File

@@ -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,

View File

@@ -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

View File

@@ -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();
};

View File

@@ -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

View File

@@ -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() {

View File

@@ -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

View File

@@ -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);

View File

@@ -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;
}

View File

@@ -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);
}
}

View File

@@ -100,7 +100,7 @@ namespace nw4r {
u8* pCachedBase; // 0x0C
u8* pCachedStart; // 0x10
u8* pCachedEnd; // 0x14
u32 unk_0x18; // 0x18
u32 cacheWorkspaceOffset; // 0x18
};
class ConstructContext {

View File

@@ -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;
}

View File

@@ -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);

View File

@@ -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);

View File

@@ -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;

View File

@@ -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

View File

@@ -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;

View File

@@ -109,7 +109,7 @@ typedef struct SCControl {
} SCControl;
typedef struct SCItem {
char unk_0x00[0x8];
char reserved[0x8];
u8 primType; // 0x08
u8 arrayType; // 0x09

View File

@@ -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;

View File

@@ -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];

View File

@@ -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 {

View File

@@ -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
};

View File

@@ -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
}

View File

@@ -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)
};

View File

@@ -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;

View File

@@ -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)

View File

@@ -140,7 +140,7 @@ enum {
WPAD_SPEAKER_MUTE,
WPAD_SPEAKER_UNMUTE,
WPAD_SPEAKER_PLAY,
WPAD_SPEAKER_UNK5
WPAD_SPEAKER_ON_ALTERNATE
};
enum {

View File

@@ -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;
}

View File

@@ -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) {

View File

@@ -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();

View File

@@ -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;
}

View File

@@ -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

View File

@@ -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)) {

View File

@@ -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);

View File

@@ -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);

View File

@@ -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

View File

@@ -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);

View File

@@ -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);

View File

@@ -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);

View File

@@ -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

View File

@@ -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);

View File

@@ -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;
};

View File

@@ -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

View File

@@ -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);

View File

@@ -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);

View File

@@ -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)])

View File

@@ -139,7 +139,7 @@ typedef struct NCDApConfig {
typedef struct NCDRakuApConfig {
NCDApConfig cfg;
u32 unk_0x6c;
u32 reserved;
} NCDRakuApConfig;
typedef struct NCDUsbapConfig {

View File

@@ -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

View File

@@ -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);

View File

@@ -47,7 +47,7 @@ typedef struct NWC24FriendInfo {
// ???
typedef struct NWC24SecretFriendInfo {
u8 unk_0x00[0x20];
u8 recordData[0x20];
} NWC24SecretFriendInfo;
NWC24Err NWC24ReadFriendInfo(NWC24FriendInfo* info, u32 index);

View File

@@ -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);

View File

@@ -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

View File

@@ -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

View File

@@ -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;
}

View File

@@ -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,
};

View File

@@ -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;

View File

@@ -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);

View File

@@ -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);

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