Compare commits
2 Commits
cleanup/se
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
19a013e64a | ||
|
|
44fd31e660 |
@@ -4837,7 +4837,7 @@ onEvent__Q33ipl5scene22SDMenuEventHandlerBaseFUlUlPv = .text:0x813EB51C; // type
|
|||||||
onEventDerived__Q33ipl5scene22SDMenuEventHandlerBaseFUlUlPCQ33ipl10controller9Interface = .text:0x813EB5E8; // type:function size:0x4
|
onEventDerived__Q33ipl5scene22SDMenuEventHandlerBaseFUlUlPCQ33ipl10controller9Interface = .text:0x813EB5E8; // type:function size:0x4
|
||||||
__ct__Q33ipl5scene8SDMemoryFv = .text:0x813EB5EC; // type:function size:0x48
|
__ct__Q33ipl5scene8SDMemoryFv = .text:0x813EB5EC; // type:function size:0x48
|
||||||
__dt__Q33ipl5scene8SDMemoryFv = .text:0x813EB634; // type:function size:0x5C
|
__dt__Q33ipl5scene8SDMemoryFv = .text:0x813EB634; // type:function size:0x5C
|
||||||
create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene17NandSDCardManager = .text:0x813EB690; // type:function size:0x10A0
|
create__Q33ipl5scene8SDMemoryFPQ23EGG4HeapPQ33ipl4nand10LayoutFilePQ33ipl5scene15SDChannelSelect = .text:0x813EB690; // type:function size:0x10A0
|
||||||
setTitleLists__Q33ipl5scene8SDMemoryFRCQ43ipl5scene8SDMemory10TitleRangeRCQ43ipl5scene8SDMemory10TitleRange = .text:0x813EC730; // type:function size:0xD4
|
setTitleLists__Q33ipl5scene8SDMemoryFRCQ43ipl5scene8SDMemory10TitleRangeRCQ43ipl5scene8SDMemory10TitleRange = .text:0x813EC730; // type:function size:0xD4
|
||||||
setScrollLimit__Q33ipl5scene8SDMemoryFv = .text:0x813EC804; // type:function size:0x144
|
setScrollLimit__Q33ipl5scene8SDMemoryFv = .text:0x813EC804; // type:function size:0x144
|
||||||
init__Q33ipl7utility8ScrollerFv = .text:0x813EC948; // type:function size:0x20
|
init__Q33ipl7utility8ScrollerFv = .text:0x813EC948; // type:function size:0x20
|
||||||
@@ -4879,28 +4879,28 @@ onDialogState21__Q33ipl5scene8SDMemoryFv = .text:0x813EEB94; // type:function si
|
|||||||
onDialogState22__Q33ipl5scene8SDMemoryFv = .text:0x813EECDC; // type:function size:0x11C
|
onDialogState22__Q33ipl5scene8SDMemoryFv = .text:0x813EECDC; // type:function size:0x11C
|
||||||
onDialogState23__Q33ipl5scene8SDMemoryFv = .text:0x813EEDF8; // type:function size:0x78
|
onDialogState23__Q33ipl5scene8SDMemoryFv = .text:0x813EEDF8; // type:function size:0x78
|
||||||
onDialogState24__Q33ipl5scene8SDMemoryFv = .text:0x813EEE70; // type:function size:0xC0
|
onDialogState24__Q33ipl5scene8SDMemoryFv = .text:0x813EEE70; // type:function size:0xC0
|
||||||
iplSDMemory_813EEF30 = .text:0x813EEF30; // type:function size:0x88
|
draw__Q33ipl5scene8SDMemoryFv = .text:0x813EEF30; // type:function size:0x88
|
||||||
iplSDMemory_813EEFB8 = .text:0x813EEFB8; // type:function size:0x70C
|
drawTransferTitles__Q33ipl5scene8SDMemoryFv = .text:0x813EEFB8; // type:function size:0x70C
|
||||||
writeFourFlagBytes__Q23ipl5sceneFPUcUcUcUcUc = .text:0x813EF6C4; // type:function size:0x14
|
writeFourFlagBytes__Q23ipl5sceneFPUcUcUcUcUc = .text:0x813EF6C4; // type:function size:0x14
|
||||||
iplSDMemory_813EF6D8 = .text:0x813EF6D8; // type:function size:0x48
|
setTitleRowColors__Q23ipl5sceneFPQ34nw4r3lyt7TextBoxRCQ34nw4r2ut5ColorRCQ34nw4r2ut5Color = .text:0x813EF6D8; // type:function size:0x48
|
||||||
GetBeginIter__Q34nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>Fv = .text:0x813EF720; // type:function size:0x8
|
GetBeginIter__Q34nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>Fv = .text:0x813EF720; // type:function size:0x8
|
||||||
iplSDMemory_813EF728 = .text:0x813EF728; // type:function size:0x8
|
GetEndIter__Q34nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>Fv = .text:0x813EF728; // type:function size:0x8
|
||||||
__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator = .text:0x813EF730; // type:function size:0x18
|
__ne__Q24nw4r2utFQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8IteratorQ44nw4r2ut28LinkList<Q34nw4r3lyt4Pane,4>8Iterator = .text:0x813EF730; // type:function size:0x18
|
||||||
getControlPaneIndex__Q33ipl5scene8SDMemoryFPCc = .text:0x813EF748; // type:function size:0x74
|
getControlPaneIndex__Q33ipl5scene8SDMemoryFPCc = .text:0x813EF748; // type:function size:0x74
|
||||||
iplSDMemory_813EF7BC = .text:0x813EF7BC; // type:function size:0x128
|
activateControlPane__Q33ipl5scene8SDMemoryFPCcPQ23gui9Component = .text:0x813EF7BC; // type:function size:0x128
|
||||||
iplSDMemory_813EF8E4 = .text:0x813EF8E4; // type:function size:0xF0
|
deactivateControlPane__Q33ipl5scene8SDMemoryFPCc = .text:0x813EF8E4; // type:function size:0xF0
|
||||||
iplSDMemory_813EF9D4 = .text:0x813EF9D4; // type:function size:0x120
|
cancelControlPane__Q33ipl5scene8SDMemoryFPCc = .text:0x813EF9D4; // type:function size:0x120
|
||||||
iplSDMemory_813EFAF4 = .text:0x813EFAF4; // type:function size:0xD8
|
onEvent__Q43ipl5scene8SDMemory23ControlPaneEventHandlerFUlUlPv = .text:0x813EFAF4; // type:function size:0xD8
|
||||||
iplSDMemory_813EFBCC = .text:0x813EFBCC; // type:function size:0xC0
|
getTitlePaneIndex__Q33ipl5scene8SDMemoryFPCc = .text:0x813EFBCC; // type:function size:0xC0
|
||||||
iplSDMemory_813EFC8C = .text:0x813EFC8C; // type:function size:0x160
|
activateTitlePane__Q33ipl5scene8SDMemoryFPCcPQ23gui9Component = .text:0x813EFC8C; // type:function size:0x160
|
||||||
iplSDMemory_813EFDEC = .text:0x813EFDEC; // type:function size:0x128
|
deactivateTitlePane__Q33ipl5scene8SDMemoryFPCc = .text:0x813EFDEC; // type:function size:0x128
|
||||||
iplSDMemory_813EFF14 = .text:0x813EFF14; // type:function size:0x24C
|
selectTitlePane__Q33ipl5scene8SDMemoryFPCc = .text:0x813EFF14; // type:function size:0x24C
|
||||||
iplSDMemory_813F0160 = .text:0x813F0160; // type:function size:0xD8
|
onEvent__Q43ipl5scene8SDMemory21TitlePaneEventHandlerFUlUlPv = .text:0x813F0160; // type:function size:0xD8
|
||||||
iplSDMemory_813F0238 = .text:0x813F0238; // type:function size:0x74
|
getDialogPaneIndex__Q33ipl5scene8SDMemoryFPCc = .text:0x813F0238; // type:function size:0x74
|
||||||
iplSDMemory_813F02AC = .text:0x813F02AC; // type:function size:0x144
|
activateDialogPane__Q33ipl5scene8SDMemoryFPCcPQ23gui9Component = .text:0x813F02AC; // type:function size:0x144
|
||||||
iplSDMemory_813F03F0 = .text:0x813F03F0; // type:function size:0x10C
|
deactivateDialogPane__Q33ipl5scene8SDMemoryFPCc = .text:0x813F03F0; // type:function size:0x10C
|
||||||
iplSDMemory_813F04FC = .text:0x813F04FC; // type:function size:0x1A0
|
selectDialogPane__Q33ipl5scene8SDMemoryFPCc = .text:0x813F04FC; // type:function size:0x1A0
|
||||||
iplSDMemory_813F069C = .text:0x813F069C; // type:function size:0xD8
|
onEvent__Q43ipl5scene8SDMemory22DialogPaneEventHandlerFUlUlPv = .text:0x813F069C; // type:function size:0xD8
|
||||||
__ct__Q33ipl5scene7SettingFPQ23EGG4Heapi = .text:0x813F0774; // type:function size:0xF8
|
__ct__Q33ipl5scene7SettingFPQ23EGG4Heapi = .text:0x813F0774; // type:function size:0xF8
|
||||||
isAnimating__Q33ipl5scene7SettingFv = .text:0x813F086C; // type:function size:0x3C
|
isAnimating__Q33ipl5scene7SettingFv = .text:0x813F086C; // type:function size:0x3C
|
||||||
getFuncMsgQ__Q33ipl5scene7SettingFv = .text:0x813F08A8; // type:function size:0x68
|
getFuncMsgQ__Q33ipl5scene7SettingFv = .text:0x813F08A8; // type:function size:0x68
|
||||||
|
|||||||
@@ -85,6 +85,9 @@ namespace ipl {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const utility::BScroller& getBInst() { return mBScroller; }
|
const utility::BScroller& getBInst() { return mBScroller; }
|
||||||
|
#ifdef IPL_SDMEMORY_SCROLLER_BINST_RESET
|
||||||
|
void resetBInst() { mBScroller.reset(); }
|
||||||
|
#endif
|
||||||
|
|
||||||
bool isDownEnd() const { return mScroller.isDownEnd(); }
|
bool isDownEnd() const { return mScroller.isDownEnd(); }
|
||||||
bool isUpEnd() const { return mScroller.isUpEnd(); }
|
bool isUpEnd() const { return mScroller.isUpEnd(); }
|
||||||
@@ -98,6 +101,9 @@ namespace ipl {
|
|||||||
|
|
||||||
void setDownLimit(f32 v) { mScroller.setDownLimit(v); }
|
void setDownLimit(f32 v) { mScroller.setDownLimit(v); }
|
||||||
void setUpLimit(f32 v) { mScroller.setUpLimit(v); }
|
void setUpLimit(f32 v) { mScroller.setUpLimit(v); }
|
||||||
|
#ifdef IPL_SDMEMORY_SCROLLER_STATE_ACCESSOR
|
||||||
|
void setState(int state) { mScroller.setState(state); }
|
||||||
|
#endif
|
||||||
|
|
||||||
bool isActive() const { return mScroller.isActive(); }
|
bool isActive() const { return mScroller.isActive(); }
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,8 @@
|
|||||||
|
|
||||||
namespace ipl {
|
namespace ipl {
|
||||||
namespace scene {
|
namespace scene {
|
||||||
|
class SDChannelSelect;
|
||||||
|
|
||||||
class SDMemory {
|
class SDMemory {
|
||||||
public:
|
public:
|
||||||
struct TitleRange {
|
struct TitleRange {
|
||||||
@@ -20,9 +22,10 @@ namespace ipl {
|
|||||||
SDMemory();
|
SDMemory();
|
||||||
~SDMemory();
|
~SDMemory();
|
||||||
|
|
||||||
void create(EGG::Heap* heap, nand::LayoutFile* layoutFile, NandSDCardManager* manager);
|
void create(EGG::Heap* heap, nand::LayoutFile* layoutFile, SDChannelSelect* channelSelect);
|
||||||
void setTitleLists(const TitleRange& nandTitles, const TitleRange& sdTitles);
|
void setTitleLists(const TitleRange& nandTitles, const TitleRange& sdTitles);
|
||||||
bool calc();
|
bool calc();
|
||||||
|
void draw();
|
||||||
void setScrollLimit();
|
void setScrollLimit();
|
||||||
void updateSideArrows();
|
void updateSideArrows();
|
||||||
void resetScrollArrows();
|
void resetScrollArrows();
|
||||||
@@ -38,6 +41,7 @@ namespace ipl {
|
|||||||
|
|
||||||
private:
|
private:
|
||||||
s32 updateState();
|
s32 updateState();
|
||||||
|
void drawTransferTitles();
|
||||||
void onDialogState0();
|
void onDialogState0();
|
||||||
void onDialogState2();
|
void onDialogState2();
|
||||||
bool onDialogState3();
|
bool onDialogState3();
|
||||||
@@ -63,6 +67,44 @@ namespace ipl {
|
|||||||
bool onDialogState24();
|
bool onDialogState24();
|
||||||
void resetDialogPaneAnimations();
|
void resetDialogPaneAnimations();
|
||||||
s32 getControlPaneIndex(const char* paneName);
|
s32 getControlPaneIndex(const char* paneName);
|
||||||
|
void activateControlPane(const char* paneName, ::gui::Component* component);
|
||||||
|
void deactivateControlPane(const char* paneName);
|
||||||
|
void cancelControlPane(const char* paneName);
|
||||||
|
s32 getTitlePaneIndex(const char* paneName);
|
||||||
|
void activateTitlePane(const char* paneName, ::gui::Component* component);
|
||||||
|
void deactivateTitlePane(const char* paneName);
|
||||||
|
void selectTitlePane(const char* paneName);
|
||||||
|
s32 getDialogPaneIndex(const char* paneName);
|
||||||
|
void activateDialogPane(const char* paneName, ::gui::Component* component);
|
||||||
|
void deactivateDialogPane(const char* paneName);
|
||||||
|
void selectDialogPane(const char* paneName);
|
||||||
|
|
||||||
|
class ControlPaneEventHandler : public ::gui::EventHandler {
|
||||||
|
public:
|
||||||
|
ControlPaneEventHandler(SDMemory* instance) : ::gui::EventHandler(), mpInstance(instance) {}
|
||||||
|
virtual void onEvent(u32 compId, u32 event, void* data);
|
||||||
|
|
||||||
|
private:
|
||||||
|
SDMemory* mpInstance;
|
||||||
|
};
|
||||||
|
|
||||||
|
class TitlePaneEventHandler : public ::gui::EventHandler {
|
||||||
|
public:
|
||||||
|
TitlePaneEventHandler(SDMemory* instance) : ::gui::EventHandler(), mpInstance(instance) {}
|
||||||
|
virtual void onEvent(u32 compId, u32 event, void* data);
|
||||||
|
|
||||||
|
private:
|
||||||
|
SDMemory* mpInstance;
|
||||||
|
};
|
||||||
|
|
||||||
|
class DialogPaneEventHandler : public ::gui::EventHandler {
|
||||||
|
public:
|
||||||
|
DialogPaneEventHandler(SDMemory* instance) : ::gui::EventHandler(), mpInstance(instance) {}
|
||||||
|
virtual void onEvent(u32 compId, u32 event, void* data);
|
||||||
|
|
||||||
|
private:
|
||||||
|
SDMemory* mpInstance;
|
||||||
|
};
|
||||||
|
|
||||||
layout::Object* mpMainLayout;
|
layout::Object* mpMainLayout;
|
||||||
layout::Object* mpTitleLayout;
|
layout::Object* mpTitleLayout;
|
||||||
@@ -77,7 +119,7 @@ namespace ipl {
|
|||||||
u32 mPanelStates[3];
|
u32 mPanelStates[3];
|
||||||
u32 mTitlePanelStates[5];
|
u32 mTitlePanelStates[5];
|
||||||
u32 mPanelAnimationStates[4];
|
u32 mPanelAnimationStates[4];
|
||||||
NandSDCardManager* mpNandSDCardManager;
|
SDChannelSelect* mpSDChannelSelect;
|
||||||
TitleRange mNandTitleRange;
|
TitleRange mNandTitleRange;
|
||||||
TitleRange mSDTitleRange;
|
TitleRange mSDTitleRange;
|
||||||
u32 mTitleCount;
|
u32 mTitleCount;
|
||||||
@@ -86,11 +128,11 @@ namespace ipl {
|
|||||||
ESTitleId mTitleIds[96];
|
ESTitleId mTitleIds[96];
|
||||||
wchar_t mTitleNames[96][21];
|
wchar_t mTitleNames[96][21];
|
||||||
u32 mTitleNameCount;
|
u32 mTitleNameCount;
|
||||||
u32 mNandTitleNameCount;
|
|
||||||
ESTitleId mNandTitleIds[96];
|
|
||||||
u32 mNandTitleCount;
|
|
||||||
u32 mSDTitleCount;
|
u32 mSDTitleCount;
|
||||||
ESTitleId mSDTitleIds[96];
|
ESTitleId mSDTitleIds[96];
|
||||||
|
u32 mNandTitleCount;
|
||||||
|
u32 mNandTitleNameCount;
|
||||||
|
ESTitleId mNandTitleIds[96];
|
||||||
wchar_t mCurrentTitleName[0x840];
|
wchar_t mCurrentTitleName[0x840];
|
||||||
u8 mTransferFlags[4];
|
u8 mTransferFlags[4];
|
||||||
u32 mTransferStatus;
|
u32 mTransferStatus;
|
||||||
|
|||||||
@@ -125,6 +125,11 @@ namespace ipl {
|
|||||||
SDChannelSelect(EGG::Heap* heap);
|
SDChannelSelect(EGG::Heap* heap);
|
||||||
virtual ~SDChannelSelect();
|
virtual ~SDChannelSelect();
|
||||||
|
|
||||||
|
NandSDWorker::WorkSDState getSDState() const {
|
||||||
|
return static_cast<NandSDWorker::WorkSDState>(mCurrentSDState);
|
||||||
|
}
|
||||||
|
NandSDWorker* getWorker() const { return mpSDWorker; }
|
||||||
|
|
||||||
virtual BOOL isResetProcessDone();
|
virtual BOOL isResetProcessDone();
|
||||||
virtual void startResetting();
|
virtual void startResetting();
|
||||||
virtual void prepare();
|
virtual void prepare();
|
||||||
|
|||||||
@@ -327,6 +327,9 @@ namespace ipl {
|
|||||||
void setProgBarLength(int len) { mProgBarLen = len; }
|
void setProgBarLength(int len) { mProgBarLen = len; }
|
||||||
/** @return The current length of the progress bar */
|
/** @return The current length of the progress bar */
|
||||||
int getProgBarLength() { return mProgBarLen; }
|
int getProgBarLength() { return mProgBarLen; }
|
||||||
|
#ifdef IPL_SDMEMORY_DIALOG_PROGRESS_FRAME_ACCESSOR
|
||||||
|
int getProgBarFrame() const { return mProgBarFrame; }
|
||||||
|
#endif
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Dialog component handler (Automatically executed by the GUI manager)
|
* Dialog component handler (Automatically executed by the GUI manager)
|
||||||
|
|||||||
@@ -179,6 +179,10 @@ namespace ipl {
|
|||||||
|
|
||||||
static const int SD_APP_BACKUP_THUMBNAIL_LENGTH = 0xC800;
|
static const int SD_APP_BACKUP_THUMBNAIL_LENGTH = 0xC800;
|
||||||
|
|
||||||
|
#ifdef IPL_SDMEMORY_COMPLETION_PCT_ACCESSOR
|
||||||
|
static int getCompletionPct() { return s_completion_pct; }
|
||||||
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
static const int FAT_PAGES = 8;
|
static const int FAT_PAGES = 8;
|
||||||
static const int DATA_PAGES = 32;
|
static const int DATA_PAGES = 32;
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ namespace ipl {
|
|||||||
|
|
||||||
void setDownLimit(f32 v) { mDownLimit = v; }
|
void setDownLimit(f32 v) { mDownLimit = v; }
|
||||||
void setUpLimit(f32 v) { mUpLimit = v; }
|
void setUpLimit(f32 v) { mUpLimit = v; }
|
||||||
|
#ifdef IPL_SDMEMORY_SCROLLER_STATE_ACCESSOR
|
||||||
|
void setState(int state) { mState = state; }
|
||||||
|
#endif
|
||||||
|
|
||||||
void addScroll(f32 v) { mScroll += v; }
|
void addScroll(f32 v) { mScroll += v; }
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,12 @@ namespace nw4r {
|
|||||||
NW4R_ASSERT(type < TEXTCOLOR_MAX);
|
NW4R_ASSERT(type < TEXTCOLOR_MAX);
|
||||||
return mTextColors[type];
|
return mTextColors[type];
|
||||||
}
|
}
|
||||||
|
#ifdef IPL_SDMEMORY_SET_TEXT_COLORS
|
||||||
|
void SetTextColors(const ut::Color& first, const ut::Color& second) {
|
||||||
|
mTextColors[0] = first;
|
||||||
|
mTextColors[1] = second;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
void SetTextColor(u32 type, ut::Color value) {
|
void SetTextColor(u32 type, ut::Color value) {
|
||||||
NW4R_ASSERT(type < TEXTCOLOR_MAX);
|
NW4R_ASSERT(type < TEXTCOLOR_MAX);
|
||||||
mTextColors[type] = value;
|
mTextColors[type] = value;
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user