Compare commits
1 Commits
main
...
agent/w092
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
77d7b143f4 |
@@ -16022,8 +16022,8 @@ mscBasePaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC18; // type:object
|
||||
@17309 = .data:0x8164DC42; // type:object size:0xB scope:local data:string
|
||||
@17310 = .data:0x8164DC4D; // type:object size:0xB scope:local data:string
|
||||
@17311 = .data:0x8164DC58; // type:object size:0xB scope:local data:string
|
||||
mscUnk0PaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC64; // type:object size:0x14 data:4byte
|
||||
mscUnk1PaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC78; // type:object size:0x14 data:4byte
|
||||
mscPicturePaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC64; // type:object size:0x14 data:4byte
|
||||
mscEdgePaneNames__Q33ipl5scene13ChannelSelect = .data:0x8164DC78; // type:object size:0x14 data:4byte
|
||||
@17317 = .data:0x8164DC8C; // type:object size:0x9 scope:local data:string
|
||||
@17318 = .data:0x8164DC95; // type:object size:0x9 scope:local data:string
|
||||
@17319 = .data:0x8164DC9E; // type:object size:0x9 scope:local data:string
|
||||
|
||||
@@ -139,7 +139,7 @@ namespace www {
|
||||
namespace ext_ead {
|
||||
namespace www {
|
||||
typedef struct ImeData {
|
||||
u32 unk_0x00; // 0x00
|
||||
u32 eventType; // 0x00
|
||||
u32 imeID; // 0x04
|
||||
char* text; // 0x08
|
||||
u32 unk_0x0C; // 0x0c
|
||||
|
||||
@@ -59,7 +59,7 @@ namespace ext_ead {
|
||||
u32 unk_0x2B4[2]; // 0x2B4
|
||||
u32 unk_0x2BC; // 0x2BC
|
||||
u32 unk_0x2C0; // 0x2C0
|
||||
u8 unk_0x2C4[6]; // 0x2C4
|
||||
u8 mPageLoadStatus[6]; // 0x2C4
|
||||
};
|
||||
} // namespace www
|
||||
} // namespace ext_ead
|
||||
|
||||
@@ -113,37 +113,37 @@ namespace ipl {
|
||||
void init(const T& start, const T& end, f32 maxFrame, f32 startTangent, f32 endTangent, int playback = ANIM_TYPE_FORWARD, f32 speed = 1.0f);
|
||||
|
||||
T get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
T r =
|
||||
(mStart *
|
||||
(1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))))) -
|
||||
(mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
(1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))))) -
|
||||
(mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))));
|
||||
r +=
|
||||
(mStartTangent *
|
||||
(var_f27 +
|
||||
((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (2.0f * var_f27 * var_f27))))) +
|
||||
(mEndTangent * ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (var_f27 * var_f27))));
|
||||
(frame +
|
||||
((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (2.0f * frame * frame))))) +
|
||||
(mEndTangent * ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (frame * frame))));
|
||||
|
||||
return r;
|
||||
|
||||
/*f32 var_f27 = mMaxFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
T sp28 = mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27))));
|
||||
T sp1C = mStart * (1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
T r = sp1C - sp28;
|
||||
/*f32 maxFrame = mMaxFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
T weightedEnd = mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (maxFrame * (2.0f * maxFrame * maxFrame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * maxFrame * maxFrame))));
|
||||
T weightedStart = mStart * (1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (maxFrame * (2.0f * maxFrame * maxFrame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * maxFrame * maxFrame)))));
|
||||
T r = weightedStart - weightedEnd;
|
||||
|
||||
f32 temp_f4 = var_f27 * var_f27;
|
||||
f32 temp_f7 = var_f28 * (var_f28 * (var_f27 * temp_f4));
|
||||
f32 temp_f3 =
|
||||
(mStartTangent * (var_f27 + (temp_f7 - (var_f28 * (2.0f * var_f27 * var_f27))))) + (mEndTangent * (temp_f7 - (var_f28 * temp_f4)));
|
||||
r = r + temp_f3;
|
||||
f32 frameSquared = maxFrame * maxFrame;
|
||||
f32 scaledCubic = inverseDuration * (inverseDuration * (maxFrame * frameSquared));
|
||||
f32 tangentContribution =
|
||||
(mStartTangent * (maxFrame + (scaledCubic - (inverseDuration * (2.0f * maxFrame * maxFrame))))) + (mEndTangent * (scaledCubic - (inverseDuration * frameSquared)));
|
||||
r = r + tangentContribution;
|
||||
return r;*/
|
||||
}
|
||||
|
||||
@@ -167,20 +167,20 @@ namespace ipl {
|
||||
f32 get() const;
|
||||
#else
|
||||
f32 get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
f32 r =
|
||||
(mStart *
|
||||
(1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))))) -
|
||||
(mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
(1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))))) -
|
||||
(mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))));
|
||||
r +=
|
||||
(mStartTangent *
|
||||
(var_f27 + ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (2.0f * var_f27 * var_f27))))) +
|
||||
(mEndTangent * ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (var_f27 * var_f27))));
|
||||
(frame + ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (2.0f * frame * frame))))) +
|
||||
(mEndTangent * ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (frame * frame))));
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -231,35 +231,35 @@ namespace ipl {
|
||||
}
|
||||
#else
|
||||
T get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
f32 t1t2 =
|
||||
(var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) - (var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)));
|
||||
(inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) - (inverseDuration * (inverseDuration * (3.0f * frame * frame)));
|
||||
|
||||
T r = (mStart * (1.0f + t1t2)) - (mEnd * t1t2);
|
||||
|
||||
f32 temp_f4 = var_f27 * var_f27;
|
||||
f32 temp_f7 = var_f28 * (var_f28 * (var_f27 * temp_f4));
|
||||
f32 temp_f3 =
|
||||
(mStartTangent * (var_f27 + (temp_f7 - (var_f28 * (2.0f * var_f27 * var_f27))))) + (mEndTangent * (temp_f7 - (var_f28 * temp_f4)));
|
||||
f32 frameSquared = frame * frame;
|
||||
f32 scaledCubic = inverseDuration * (inverseDuration * (frame * frameSquared));
|
||||
f32 tangentContribution =
|
||||
(mStartTangent * (frame + (scaledCubic - (inverseDuration * (2.0f * frame * frame))))) + (mEndTangent * (scaledCubic - (inverseDuration * frameSquared)));
|
||||
|
||||
r = r + temp_f3;
|
||||
r = r + tangentContribution;
|
||||
|
||||
return r;
|
||||
|
||||
/*f32 var_f27 = mMaxFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
T sp28 = mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27))));
|
||||
T sp1C = mStart * (1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
T r = sp1C - sp28;
|
||||
/*f32 maxFrame = mMaxFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
T weightedEnd = mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (maxFrame * (2.0f * maxFrame * maxFrame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * maxFrame * maxFrame))));
|
||||
T weightedStart = mStart * (1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (maxFrame * (2.0f * maxFrame * maxFrame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * maxFrame * maxFrame)))));
|
||||
T r = weightedStart - weightedEnd;
|
||||
|
||||
f32 temp_f4 = var_f27 * var_f27;
|
||||
f32 temp_f7 = var_f28 * (var_f28 * (var_f27 * temp_f4));
|
||||
f32 temp_f3 =
|
||||
(mStartTangent * (var_f27 + (temp_f7 - (var_f28 * (2.0f * var_f27 * var_f27))))) + (mEndTangent * (temp_f7 - (var_f28 * temp_f4)));
|
||||
r = r + temp_f3;
|
||||
f32 frameSquared = maxFrame * maxFrame;
|
||||
f32 scaledCubic = inverseDuration * (inverseDuration * (maxFrame * frameSquared));
|
||||
f32 tangentContribution =
|
||||
(mStartTangent * (maxFrame + (scaledCubic - (inverseDuration * (2.0f * maxFrame * maxFrame))))) + (mEndTangent * (scaledCubic - (inverseDuration * frameSquared)));
|
||||
r = r + tangentContribution;
|
||||
return r;*/
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace ipl {
|
||||
|
||||
void initExtModule(EGG::Heap* workHeap, channel::RsoThread* thread);
|
||||
|
||||
int calcExtModule(EGG::ExpHeap* expHeap, bool unk0, bool unk1);
|
||||
int calcExtModule(EGG::ExpHeap* expHeap, bool canStartModule, bool onSceneChange);
|
||||
|
||||
void drawThumbnail();
|
||||
void drawCursor();
|
||||
@@ -57,14 +57,14 @@ namespace ipl {
|
||||
BOOL isDiskChannel() const;
|
||||
BOOL isValid() const;
|
||||
|
||||
void onPoint(int unk);
|
||||
void onLeft(int unk);
|
||||
void onPinch(bool unk);
|
||||
void onPoint(int eventFlags);
|
||||
void onLeft(int eventFlags);
|
||||
void onPinch(bool pinched);
|
||||
|
||||
void setCursorDecideAnim();
|
||||
|
||||
void initCursorAnim(bool unk);
|
||||
void initBalloonAnim(bool unk);
|
||||
void initCursorAnim(bool resetPointCount);
|
||||
void initBalloonAnim(bool resetPointCount);
|
||||
|
||||
void FillModuleCount();
|
||||
|
||||
@@ -83,15 +83,15 @@ namespace ipl {
|
||||
void initCursor();
|
||||
void calcCursor(const nw4r::math::VEC3& vec);
|
||||
|
||||
void setCursorAnim(int unk) NO_INLINE;
|
||||
void setCursorAnim(int state) NO_INLINE;
|
||||
void calcCursorAnim();
|
||||
void startCursorAnim(int unk);
|
||||
void startCursorAnim(int animationIndex);
|
||||
|
||||
void initBalloon();
|
||||
void setBalloonText(const wchar_t* text);
|
||||
void calcBalloon(const nw4r::math::VEC3& vec);
|
||||
|
||||
void setBalloonAnim(int unk) NO_INLINE;
|
||||
void setBalloonAnim(int state) NO_INLINE;
|
||||
void calcBalloonAnim();
|
||||
|
||||
void clearModuleParam();
|
||||
@@ -107,7 +107,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
private:
|
||||
u8 unk_0x00[8];
|
||||
u8 mListLinkStorage[8];
|
||||
|
||||
EGG::Heap* mpCursorHeap; // 0x08
|
||||
EGG::Heap* mpBalloonHeap; // 0x0C
|
||||
@@ -149,22 +149,22 @@ namespace ipl {
|
||||
|
||||
layout::Object* mpCursorLayout; // 0x48
|
||||
layout::Animator* mpCursorAnims[ANIM_CURSOR_MAX]; // 0x4C
|
||||
int unk_0x58;
|
||||
int unk_0x5C;
|
||||
int mCursorState;
|
||||
int mPendingCursorState;
|
||||
|
||||
layout::Object* mpBalloonLayout; // 0x60
|
||||
layout::Animator* mpBalloonAnim; // 0x64
|
||||
int unk_0x68;
|
||||
int unk_0x6C;
|
||||
int unk_0x70;
|
||||
int mBalloonState;
|
||||
int mPendingBalloonState;
|
||||
int mBalloonWaitFrame;
|
||||
|
||||
int unk_0x74;
|
||||
int mPointCount;
|
||||
|
||||
nw4r::lyt::Group* mpNwc24NewGroup; // 0x78
|
||||
layout::GroupAnimator* mpNwc24NewAnim; // 0x7C
|
||||
bool mpNwc24NewPlayAnim; // 0x80
|
||||
int unk_0x84;
|
||||
u32 unk_0x88;
|
||||
int mNewMessageState;
|
||||
u32 mNewMessageFrame;
|
||||
|
||||
f32 mThumbWidth; // 0x8C
|
||||
f32 mThumbHeight; // 0x90
|
||||
@@ -188,7 +188,7 @@ namespace ipl {
|
||||
channel::RsoThread* mpModuleThread; // 0xE8
|
||||
int mExtModuleState; // 0xEC
|
||||
nand::SharedFile* mpModuleFile; // 0xF0
|
||||
bool unk_0xF4;
|
||||
bool mbModuleFlag;
|
||||
u32 mModuleCount; // 0xF8
|
||||
u32 mMaxModuleCount; // 0xFC
|
||||
|
||||
|
||||
@@ -76,7 +76,7 @@ namespace ipl {
|
||||
void appendToChannelList(int page, int index);
|
||||
void destroyChannelObj(ChannelObj * channelObj);
|
||||
void sortChannelList(int page);
|
||||
void sortChannelListByPage(int page, int unk);
|
||||
void sortChannelListByPage(int page, int edgeDirection);
|
||||
ChannelObj* searchList(int page, int index) const;
|
||||
|
||||
void setupDiskChanObj();
|
||||
@@ -87,7 +87,7 @@ namespace ipl {
|
||||
void setChanFrameVisibility();
|
||||
|
||||
BOOL isChannelInView(int page, int index) const;
|
||||
BOOL isChannelInCalc(int page, int index, int unk2) const;
|
||||
BOOL isChannelInCalc(int page, int index, int currentPage) const;
|
||||
|
||||
BOOL isPageCreated(int page) const;
|
||||
BOOL isPageCreatedAllDone(int page) const;
|
||||
@@ -108,14 +108,14 @@ namespace ipl {
|
||||
BOOL prepareRestarting(int page);
|
||||
void restart(int page, int index);
|
||||
|
||||
nw4r::lyt::Pane* getChannelBasePane(int page, int index, int unk3) const;
|
||||
nw4r::lyt::Pane* getChannelBasePane(int page, int index, int currentPage) const;
|
||||
const nw4r::lyt::Pane* getChannelBasePane(int index) const;
|
||||
nw4r::lyt::Pane* getChannelBasePane(int index);
|
||||
|
||||
nw4r::math::VEC3 getDispChanTrans(int index) const;
|
||||
|
||||
void setChannelScissor(const ChannelObj* channelObj) const;
|
||||
void initChanZoomParam(const math::VEC3& pos, BOOL unk);
|
||||
void initChanZoomParam(const math::VEC3& pos, BOOL zoomOut);
|
||||
|
||||
void calcChanZoomParam();
|
||||
void setChanZoomOrtho();
|
||||
@@ -148,11 +148,11 @@ namespace ipl {
|
||||
void startResetting();
|
||||
|
||||
bool unkBool() {
|
||||
return !unk_0x185 || unk_0x180 == 3;
|
||||
return !mbWaitForModuleStop || mModuleState == 3;
|
||||
}
|
||||
void setSomething() {
|
||||
mbModuleSceneChange = true;
|
||||
unk_0x185 = 1;
|
||||
mbWaitForModuleStop = 1;
|
||||
}
|
||||
|
||||
enum {
|
||||
@@ -274,25 +274,25 @@ namespace ipl {
|
||||
clock mClock; // 0x108
|
||||
s32 mPrevSDState; // 0x168
|
||||
|
||||
EGG::Heap* unk_0x16C;
|
||||
EGG::Heap* mpThumbnailHeap;
|
||||
|
||||
EGG::Heap* mpDiskHeap; // 0x170
|
||||
EGG::Heap* mpCursorHeap; // 0x174
|
||||
EGG::Heap* mpBalloonHeap; // 0x178
|
||||
|
||||
EGG::Heap* unk_0x17C;
|
||||
EGG::Heap* mpChannelObjHeap;
|
||||
|
||||
int unk_0x180;
|
||||
int mModuleState;
|
||||
|
||||
bool mbModuleSceneChange; // 0x184
|
||||
bool unk_0x185;
|
||||
bool mbWaitForModuleStop;
|
||||
ChannelObj* mpCurrentRsoChanObj; // 0x188
|
||||
ChannelObj* unk_0x18C;
|
||||
ChannelObj* mpPriorityModuleChanObj;
|
||||
|
||||
EGG::Heap* mpModuleWorkHeap; // 0x190
|
||||
channel::RsoThread* mpModuleThread; // 0x194
|
||||
EGG::ExpHeap* mpModuleHeaps[49]; // 0x198
|
||||
bool unk_0x25C[49];
|
||||
bool mbModuleHeapInUse[49];
|
||||
|
||||
nw4r::math::VEC2 mDragPos; // 0x290
|
||||
int mConChan; // 0x298
|
||||
@@ -300,21 +300,21 @@ namespace ipl {
|
||||
int mMoveOldIndex; // 0x2A0
|
||||
int mMoveNewPage; // 0x2A4
|
||||
int mMoveNewIndex; // 0x2A8
|
||||
int unk_0x2AC;
|
||||
int unk_0x2B0;
|
||||
int unk_0x2B4;
|
||||
bool unk_0x2B8;
|
||||
int mDragRightScrollFrame;
|
||||
int mDragLeftScrollFrame;
|
||||
int mReleaseWaitFrame;
|
||||
bool mbDragReleased;
|
||||
nand::File* mpSaveDataFile; // 0x2BC
|
||||
ChannelObj* unk_0x2C0;
|
||||
layout::Object* unk_0x2C4;
|
||||
layout::Animator* unk_0x2C8;
|
||||
ChannelObj* mpMovedChanObj;
|
||||
layout::Object* mpMoveThumbnailLayout;
|
||||
layout::Animator* mpMoveThumbnailAnim;
|
||||
u32 unused_0x2CC;
|
||||
|
||||
static BOOL msInitFlag;
|
||||
static const char* mscChanPaneNames[CHAN_SCROLL_MAX][MAX_CHANNEL_INDEX];
|
||||
static const char* mscBasePaneNames[CHAN_SCROLL_MAX];
|
||||
static const char* mscUnk0PaneNames[CHAN_SCROLL_MAX];
|
||||
static const char* mscUnk1PaneNames[CHAN_SCROLL_MAX];
|
||||
static const char* mscPicturePaneNames[CHAN_SCROLL_MAX];
|
||||
static const char* mscEdgePaneNames[CHAN_SCROLL_MAX];
|
||||
static const char* mscClockPaneNames[3];
|
||||
static const char* mscMaskPaneName;
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@ namespace ipl {
|
||||
|
||||
void startChangeChannel(int page, int index);
|
||||
void reserveNextScene();
|
||||
void reserveSettingScene(bool unk);
|
||||
void reserveSettingScene(bool skipConfirmation);
|
||||
|
||||
void prepareForBoot1(int sceneID);
|
||||
void prepareForBoot2(int sceneID);
|
||||
@@ -318,9 +318,9 @@ namespace ipl {
|
||||
int mDiskState2; // 0x78
|
||||
|
||||
nw4r::math::VEC3 mDispTrans; // 0x7C
|
||||
u32 unk_0x88;
|
||||
int unk_0x8C;
|
||||
bool unk_0x90;
|
||||
u32 mBootWaitFrame;
|
||||
int mStartButtonState;
|
||||
bool mbBannerStartPending;
|
||||
|
||||
layout::GroupAnimator* mpGrpAnims[ANIM_GRP_MAX][ANIM_MAX]; // 0x94
|
||||
layout::Animator* mpChangeAnims[ANIM_MAX]; // 0x1D4
|
||||
@@ -352,8 +352,8 @@ namespace ipl {
|
||||
layout::Object* mpDiskBnrLayout; // 0x254
|
||||
layout::Animator* mpDiskBnrAnims[DISK_ANIM_GRP_MAX][DISK_ANIM_MAX]; // 0x258
|
||||
|
||||
undefined unk_0x320[4];
|
||||
undefined unk_0x324;
|
||||
undefined reservedAfterDiskAnims[4];
|
||||
undefined mWiiDiskReady;
|
||||
|
||||
nand::LayoutFile* mpGCBannerFile; // 0x328
|
||||
layout::Object* mpGCBannerLyt; // 0x32C
|
||||
@@ -371,24 +371,24 @@ namespace ipl {
|
||||
CsChanTtlButtonEventHandler* mpButtonEvent; // 0x354
|
||||
utility::Capture* mpCapture; // 0x358
|
||||
ESTmdView* mpCurTicket; // 0x35C
|
||||
bool unk_0x360;
|
||||
bool mbTmdReady;
|
||||
u16 mCurGameCode; // 0x362
|
||||
|
||||
ESTitleId mTmpTitleID; // 0x368
|
||||
bool unk_0x370;
|
||||
bool unk_0x371;
|
||||
bool mbTmpTitleCleanupDone;
|
||||
bool mbTicketLimitReady;
|
||||
|
||||
u32 mLimitType; // 0x374
|
||||
u32 mTimeLimitRemain; // 0x378
|
||||
|
||||
bool unk_0x37C;
|
||||
bool mbStartButtonFocusPlayed;
|
||||
|
||||
int mModuleState; // 0x380
|
||||
int mModuleType; // 0x384
|
||||
volatile bool mbModuleSceneChange; // 0x388
|
||||
bool mbRSODoneCalc; // 0x389
|
||||
u32 unk_0x38C;
|
||||
u32 unk_0x390;
|
||||
u32 mModuleFrame;
|
||||
u32 mModuleInterval;
|
||||
nand::SharedFile* mpModuleFile; // 0x394
|
||||
EGG::ExpHeap* mpRsoExpHeaps[2]; // 0x398
|
||||
int mCurRsoExpHeap; // 0x39C
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace ipl {
|
||||
#endif
|
||||
|
||||
struct SettingAPScanList {
|
||||
u8 unknown[0x14];
|
||||
u8 reservedHeader[0x14];
|
||||
union {
|
||||
struct {
|
||||
u16 count;
|
||||
@@ -180,33 +180,33 @@ namespace ipl {
|
||||
ARG_SETUP,
|
||||
ARG_UPDATE,
|
||||
ARG_INTERNET_PAGE,
|
||||
ARG_UNK_5,
|
||||
ARG_UNK_6,
|
||||
ARG_RESUME_SETUP,
|
||||
ARG_DIRECT_PAGE,
|
||||
};
|
||||
|
||||
private:
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
int mUpdateTiming;
|
||||
u8 unk_0x5C;
|
||||
u8 unk_0x5D[3];
|
||||
u8 mBrowserStopRequested;
|
||||
u8 reservedAfterBrowserStop[3];
|
||||
nand::Base* mpWWWLibraryFile;
|
||||
nand::Base* mpSettingHTMLFile;
|
||||
nand::Base* mpWWWArchiveFile;
|
||||
nand::Base* mpFontFile;
|
||||
nand::Base* mpBackgroundTPLFile;
|
||||
int unk_0x74;
|
||||
int unk_0x78;
|
||||
int unk_0x7C;
|
||||
int mDialogState;
|
||||
int mAPScanState;
|
||||
int mEULAState;
|
||||
int mProfileIDMode;
|
||||
int unk_0x84;
|
||||
int mUSBAPState;
|
||||
int mAOSSState;
|
||||
int mRakuState;
|
||||
int mFuncMsgPending;
|
||||
int unk_0x94;
|
||||
int mSafeModeDialogState;
|
||||
ESTitleId mUpdateTitleId;
|
||||
u32 mPrepareTick;
|
||||
u8 mSettingData[0x16];
|
||||
u8 unk_0xBA[2];
|
||||
u8 reservedAfterSettingData[2];
|
||||
nand::LayoutFile* mpSettingLayoutFile;
|
||||
layout::Object* mpChangeLayout;
|
||||
layout::Object* mpMainLayout;
|
||||
@@ -221,25 +221,25 @@ namespace ipl {
|
||||
APScanThread* mpAPScanThread;
|
||||
SettingAPScanList mAPScanList;
|
||||
void* mpMem1BrowserBuffer;
|
||||
u32 unk_0x908;
|
||||
u32 reservedBrowserWord;
|
||||
void* mpMem2BrowserBuffer;
|
||||
void* mpBrowserStringBuffer;
|
||||
int unk_0x914;
|
||||
int unk_0x918;
|
||||
u8 unk_0x91C[4];
|
||||
int mAPScrollOffset;
|
||||
int mAPAnimationIndex;
|
||||
u8 mUiStatus[4];
|
||||
ext_ead::www::ImeData* mpBrowserData;
|
||||
www::wiisetting::WiiData* mpWiiSettingData;
|
||||
www::wiisetting::WiiFlag* mpWiiSettingFlag;
|
||||
u8 unk_0x92C;
|
||||
u8 unk_0x92D[3];
|
||||
int unk_0x930;
|
||||
u8 mActionFrame;
|
||||
u8 reservedAfterActionFrame[3];
|
||||
int mSupportCode;
|
||||
www::wiisetting::SetStringBuf* mpStringBuffer;
|
||||
#ifdef IPL_SETTING_IMPLEMENTATION
|
||||
wchar_t unk_0x938[0x101];
|
||||
wchar_t mInputText[0x101];
|
||||
#else
|
||||
u8 unk_0x938[0x202];
|
||||
u8 mInputText[0x202];
|
||||
#endif
|
||||
u8 unk_0xB3A;
|
||||
u8 reservedAfterInputText;
|
||||
u8 mBrowserCreated;
|
||||
keyboard::Manager::State mKeyboardState;
|
||||
int mInitialArgument;
|
||||
@@ -247,21 +247,21 @@ namespace ipl {
|
||||
int mProgressiveMode;
|
||||
int mEuRgb60Mode;
|
||||
u8 mIsResetAcceptable;
|
||||
u8 unk_0xB5D[3];
|
||||
u8 reservedAfterResetFlag[3];
|
||||
OSMessageQueue mFuncMessageQueue;
|
||||
OSMessage mFuncMessages[5];
|
||||
int unk_0xB94;
|
||||
int mScreenModeChangeState;
|
||||
int mState;
|
||||
int unk_0xB9C;
|
||||
int mInputDelayFrame;
|
||||
OSTime mCreatePageTime;
|
||||
u32 unk_0xBA8;
|
||||
u8 unk_0xBAC;
|
||||
u8 unk_0xBAD[3];
|
||||
u8 unk_0xBB0[0x10];
|
||||
u32 mConnectedControllerMask;
|
||||
u8 mNetSettingResultSent;
|
||||
u8 reservedAfterNetSettingResult[3];
|
||||
u8 reservedTail[0x10];
|
||||
static void* mem1Buffer_;
|
||||
static void* mem2Buffer_;
|
||||
#else
|
||||
u8 unk_0x58[0xB68];
|
||||
u8 mSettingStorage[0xB68];
|
||||
#endif
|
||||
|
||||
};
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace ipl {
|
||||
// here to avoid typing in long namespaces constantly :P
|
||||
enum {
|
||||
CHANS_VM_ALT_SND_STATE_UNAVAILABLE = 0,
|
||||
CHANS_VM_ALT_SND_STATE_UNK1,
|
||||
CHANS_VM_ALT_SND_STATE_FALLBACK,
|
||||
CHANS_VM_ALT_SND_STATE_PLAY,
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace ipl {
|
||||
layout::Animator** anims; // 0x08
|
||||
u64 titleId; // 0x10
|
||||
bool threadTerminated; // 0x18
|
||||
bool unk_0x19;
|
||||
bool isThumbnail;
|
||||
bool mbHasNewMessage; // 0x1A
|
||||
|
||||
EGG::ExpHeap* getHeap() { return heap; }
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace ipl {
|
||||
void set_arw_param();
|
||||
|
||||
int mState; // 0x04
|
||||
math::VEC2 unk_0x08;
|
||||
math::VEC2 unk_0x10;
|
||||
math::VEC2 mPointerPosition;
|
||||
math::VEC2 mScrollOrigin;
|
||||
f32 mSpeed; // 0x18
|
||||
f32 mSoundFreq; // 0x1C
|
||||
};
|
||||
@@ -94,9 +94,9 @@ namespace ipl {
|
||||
f32 mUpLimit; // 0x38
|
||||
f32 unk_0x3C;
|
||||
f32 mScroll; // 0x40
|
||||
f32 unk_0x44;
|
||||
f32 unk_0x48;
|
||||
f32 unk_0x4C;
|
||||
f32 mButtonScrollOrigin;
|
||||
f32 mVelocityDecay;
|
||||
f32 mScrollAcceleration;
|
||||
};
|
||||
} // namespace utility
|
||||
} // namespace ipl
|
||||
|
||||
@@ -442,10 +442,10 @@ namespace ext_ead {
|
||||
while (mCmdPacketQueue.TryReceiveTypedMessage(&cmd)) {
|
||||
BrowserWindow* pBrowserWindow = (BrowserWindow*)mpBrowserWindows[0];
|
||||
bool something = false;
|
||||
if ((pBrowserWindow->unk_0x2C4[2] != '\0') && (pBrowserWindow->unk_0x2C4[3] != '\0')) {
|
||||
if ((pBrowserWindow->mPageLoadStatus[2] != '\0') && (pBrowserWindow->mPageLoadStatus[3] != '\0')) {
|
||||
something = true;
|
||||
}
|
||||
if (something || pBrowserWindow->unk_0x2C4[0] != '\0') {
|
||||
if (something || pBrowserWindow->mPageLoadStatus[0] != '\0') {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -505,16 +505,16 @@ namespace ext_ead {
|
||||
BrowserWindow* pBrowserWindow;
|
||||
|
||||
pBrowserWindow = (BrowserWindow*)SurfaceManager::GetInstance()->GetBrowserThread()->mpBrowserWindows[0];
|
||||
if ((pBrowserWindow->unk_0x2C4[0] == '\0') && (pBrowserWindow->unk_0x2C4[1] == '\0')) {
|
||||
if ((pBrowserWindow->mPageLoadStatus[0] == '\0') && (pBrowserWindow->mPageLoadStatus[1] == '\0')) {
|
||||
level = OSDisableInterrupts();
|
||||
if (pBrowserWindow->unk_0x2C4[2] == '\0') {
|
||||
if (pBrowserWindow->unk_0x2C4[4] == '\0') {
|
||||
if (pBrowserWindow->mPageLoadStatus[2] == '\0') {
|
||||
if (pBrowserWindow->mPageLoadStatus[4] == '\0') {
|
||||
pBrowserWindow->unk_0x2C0 = pBrowserWindow->unk_0x2B0;
|
||||
pBrowserWindow->unk_0x2BC = (int)(pBrowserWindow->unk_0x2B4[pBrowserWindow->unk_0x2B0] + 1) % 3;
|
||||
}
|
||||
pBrowserWindow->unk_0x2C4[4] = 1;
|
||||
pBrowserWindow->mPageLoadStatus[4] = 1;
|
||||
}
|
||||
pBrowserWindow->unk_0x2C4[1] = 1;
|
||||
pBrowserWindow->mPageLoadStatus[1] = 1;
|
||||
OSRestoreInterrupts(level);
|
||||
}
|
||||
return;
|
||||
@@ -551,7 +551,7 @@ namespace ext_ead {
|
||||
}
|
||||
|
||||
data->imeID = wwwData->imeID;
|
||||
data->unk_0x00 = 0;
|
||||
data->eventType = 0;
|
||||
data->unk_0x0C = wwwData->unk_0x08;
|
||||
data->unk_0x10 = wwwData->unk_0x0C;
|
||||
data->unk_0x14 = wwwData->unk_0x10;
|
||||
@@ -602,7 +602,7 @@ namespace ext_ead {
|
||||
}
|
||||
|
||||
ImeData& ImeData::operator=(const ImeData& other) {
|
||||
unk_0x00 = other.unk_0x00;
|
||||
eventType = other.eventType;
|
||||
imeID = other.imeID;
|
||||
text = other.text;
|
||||
unk_0x0C = other.unk_0x0C;
|
||||
|
||||
@@ -31,12 +31,12 @@ namespace ext_ead {
|
||||
unk_0x2B0 = 0;
|
||||
mRenderingMode = 6;
|
||||
|
||||
unk_0x2C4[0] = 0;
|
||||
unk_0x2C4[1] = 0;
|
||||
unk_0x2C4[2] = 0;
|
||||
unk_0x2C4[3] = 0;
|
||||
unk_0x2C4[4] = 0;
|
||||
unk_0x2C4[5] = 0;
|
||||
mPageLoadStatus[0] = 0;
|
||||
mPageLoadStatus[1] = 0;
|
||||
mPageLoadStatus[2] = 0;
|
||||
mPageLoadStatus[3] = 0;
|
||||
mPageLoadStatus[4] = 0;
|
||||
mPageLoadStatus[5] = 0;
|
||||
|
||||
int i, j;
|
||||
for (i = 0; i < (int)ARRAY_LENGTH(mTexBufArr); i++) {
|
||||
@@ -140,42 +140,42 @@ namespace ext_ead {
|
||||
}
|
||||
|
||||
void BrowserWindow::UpdateTexture() {
|
||||
if (unk_0x2C4[0] == 0 && unk_0x2C4[1] != 0) {
|
||||
if (mPageLoadStatus[0] == 0 && mPageLoadStatus[1] != 0) {
|
||||
print::IPLWWWReport(print::WWW_DEBUG, " XXX BrowserWindow::CopyToTextureBuffer\n");
|
||||
TileBlit_();
|
||||
unk_0x2C4[1] = 0;
|
||||
mPageLoadStatus[1] = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void BrowserWindow::ExecWwwEvent_(int eventCode, WWWHandleEventData* dataHandle) {
|
||||
switch (eventCode) {
|
||||
case WWW_EVT_URL_CHANGE: {
|
||||
if (unk_0x2C4[2] == '\0') {
|
||||
if (mPageLoadStatus[2] == '\0') {
|
||||
unk_0x2C0 = (unk_0x2B0 + 1) % 2;
|
||||
unk_0x2BC = unk_0x2B4[unk_0x2C0];
|
||||
}
|
||||
unk_0x2C4[4] = 1;
|
||||
unk_0x2C4[2] = 1;
|
||||
unk_0x2C4[0] = 1;
|
||||
mPageLoadStatus[4] = 1;
|
||||
mPageLoadStatus[2] = 1;
|
||||
mPageLoadStatus[0] = 1;
|
||||
break;
|
||||
}
|
||||
case WWW_EVT_LOADING_START: {
|
||||
if (unk_0x2C4[2] == '\0') {
|
||||
if (unk_0x2C4[4] == '\0') {
|
||||
if (mPageLoadStatus[2] == '\0') {
|
||||
if (mPageLoadStatus[4] == '\0') {
|
||||
unk_0x2C0 = unk_0x2B0;
|
||||
unk_0x2BC = (int)(unk_0x2B4[unk_0x2B0] + 1) % 3;
|
||||
}
|
||||
unk_0x2C4[4] = 1;
|
||||
unk_0x2C4[0] = 1;
|
||||
mPageLoadStatus[4] = 1;
|
||||
mPageLoadStatus[0] = 1;
|
||||
print::IPLWWWReport(2, " LoadinStart: %d\n", unk_0x2B4[unk_0x2B0]);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case WWW_EVT_LOADING_FINISHED: {
|
||||
BOOL level = OSDisableInterrupts();
|
||||
if (unk_0x2C4[0] != '\0') {
|
||||
unk_0x2C4[0] = 0;
|
||||
unk_0x2C4[1] = 1;
|
||||
if (mPageLoadStatus[0] != '\0') {
|
||||
mPageLoadStatus[0] = 0;
|
||||
mPageLoadStatus[1] = 1;
|
||||
}
|
||||
OSRestoreInterrupts(level);
|
||||
break;
|
||||
@@ -209,7 +209,7 @@ namespace ext_ead {
|
||||
|
||||
void BrowserWindow::TileBlit_() {
|
||||
typedef u32 SubRow[4];
|
||||
if (unk_0x2C4[0] != '\0') {
|
||||
if (mPageLoadStatus[0] != '\0') {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -267,15 +267,15 @@ namespace ext_ead {
|
||||
*newRect = rect;
|
||||
|
||||
BOOL level = OSDisableInterrupts();
|
||||
if (unk_0x2C4[2] != '\0') {
|
||||
unk_0x2C4[2] = 0;
|
||||
unk_0x2C4[3] = 1;
|
||||
if (mPageLoadStatus[2] != '\0') {
|
||||
mPageLoadStatus[2] = 0;
|
||||
mPageLoadStatus[3] = 1;
|
||||
}
|
||||
|
||||
unk_0x2C4[4] = 0;
|
||||
mPageLoadStatus[4] = 0;
|
||||
unk_0x2B0 = unk_0x2C0;
|
||||
unk_0x2B4[unk_0x2C0] = unk_0x2BC;
|
||||
unk_0x2C4[5] = 1;
|
||||
mPageLoadStatus[5] = 1;
|
||||
|
||||
OSRestoreInterrupts(level);
|
||||
}
|
||||
@@ -445,9 +445,9 @@ namespace ext_ead {
|
||||
void* BrowserWindow::GetTextureBuffer(int a, bool b, WWWRect** rectPtrOut) {
|
||||
u32 i;
|
||||
u32 j;
|
||||
if (!b && unk_0x2C4[5] == 0)
|
||||
if (!b && mPageLoadStatus[5] == 0)
|
||||
return NULL;
|
||||
if (unk_0x2C4[4] != 0 && b) {
|
||||
if (mPageLoadStatus[4] != 0 && b) {
|
||||
i = unk_0x2C0;
|
||||
j = unk_0x2BC;
|
||||
} else {
|
||||
|
||||
@@ -185,11 +185,11 @@ namespace ipl {
|
||||
ChannelObj::ChannelObj(EGG::Heap* heap, int page, int index)
|
||||
: mpMainHeap(heap), mpCursorHeap(NULL), mpBalloonHeap(NULL), mpDiskHeap(NULL), mState(STATE_LOAD_THUMBNAIL), mChanPage(page),
|
||||
mChanIndex(index), mpBasePane(NULL), mpNoDiskLayout(NULL), mpNoDiskAnim(NULL), mpDiskLayout(NULL), mpDiskAnim(NULL),
|
||||
mpCursorLayout(NULL), unk_0x58(0), unk_0x5C(0), mpBalloonLayout(NULL), unk_0x68(0), unk_0x6C(0), unk_0x70(0), unk_0x74(0),
|
||||
mpNwc24NewGroup(NULL), mpNwc24NewAnim(NULL), mpNwc24NewPlayAnim(false), unk_0x84(0), unk_0x88(0),
|
||||
mpCursorLayout(NULL), mCursorState(0), mPendingCursorState(0), mpBalloonLayout(NULL), mBalloonState(0), mPendingBalloonState(0), mBalloonWaitFrame(0), mPointCount(0),
|
||||
mpNwc24NewGroup(NULL), mpNwc24NewAnim(NULL), mpNwc24NewPlayAnim(false), mNewMessageState(0), mNewMessageFrame(0),
|
||||
mThumbWidth(cfChanThumbOfss[SCGetAspectRatio()][0]), mThumbHeight(cfChanThumbOfss[SCGetAspectRatio()][1]), mpExtModuleWorkHeap(NULL),
|
||||
mpModuleHeap(NULL), mpPrevModuleHeap(NULL), mbModuleTerminated(false), mpModuleThread(NULL),
|
||||
mExtModuleState(EXT_MODULE_STATE_UNAVAILABLE), unk_0xF4(false), mModuleCount(MAX_MODULE_COUNT), mMaxModuleCount(MAX_MODULE_COUNT),
|
||||
mExtModuleState(EXT_MODULE_STATE_UNAVAILABLE), mbModuleFlag(false), mModuleCount(MAX_MODULE_COUNT), mMaxModuleCount(MAX_MODULE_COUNT),
|
||||
mpRSOHeader(NULL), mpRSOBss(NULL), mpCSHeap(NULL) {
|
||||
if (SCGetAspectRatio() == SC_ASPECT_RATIO_16x9) {
|
||||
nw4r::ut::Rect projRect4x3;
|
||||
@@ -294,7 +294,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
int ChannelObj::calcExtModule(EGG::ExpHeap* expHeap, bool unk0, bool onSceneChange) {
|
||||
int ChannelObj::calcExtModule(EGG::ExpHeap* expHeap, bool canStartModule, bool onSceneChange) {
|
||||
int result = EXT_MODULE_RESULT_WAIT;
|
||||
const char* dataBase = scCursur_a;
|
||||
|
||||
@@ -306,7 +306,7 @@ namespace ipl {
|
||||
case EXT_MODULE_STATE_BEGIN: {
|
||||
if (System::getFader()->getStatus() == EGG::Fader::PREPARE_OUT) {
|
||||
mModuleCount++;
|
||||
if (unk0 && mModuleCount > mMaxModuleCount) {
|
||||
if (canStartModule && mModuleCount > mMaxModuleCount) {
|
||||
mpPrevModuleHeap = mpModuleHeap;
|
||||
mpModuleHeap = expHeap;
|
||||
|
||||
@@ -435,7 +435,7 @@ namespace ipl {
|
||||
data.anims = mpModuleAnims;
|
||||
data.titleId = System::getChannelManager()->getTitleID(mChanPage, mChanIndex);
|
||||
data.threadTerminated = mbModuleTerminated;
|
||||
data.unk_0x19 = true;
|
||||
data.isThumbnail = true;
|
||||
data.mbHasNewMessage = true;
|
||||
|
||||
if (!(System::getNwc24Manager() != NULL && System::getNwc24Manager()->isNewMessageThere(ES_TITLE_CODE(data.titleId)))) {
|
||||
@@ -517,7 +517,7 @@ namespace ipl {
|
||||
|
||||
bindNewAnm(mpDiskLayout);
|
||||
|
||||
unk_0x84 = 1;
|
||||
mNewMessageState = 1;
|
||||
|
||||
mpDiskLayout->finishBinding();
|
||||
}
|
||||
@@ -530,12 +530,12 @@ namespace ipl {
|
||||
mpDiskAnim = NULL;
|
||||
|
||||
mpNwc24NewPlayAnim = false;
|
||||
unk_0x84 = 0;
|
||||
mNewMessageState = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::changeDisk() {
|
||||
if (isDiskChannel() && (unk_0x68 == 1 || unk_0x68 == 2 || unk_0x68 == 3)) {
|
||||
if (isDiskChannel() && (mBalloonState == 1 || mBalloonState == 2 || mBalloonState == 3)) {
|
||||
setBalloonAnim(4);
|
||||
setBalloonAnim(1);
|
||||
}
|
||||
@@ -567,47 +567,47 @@ namespace ipl {
|
||||
return System::getChannelManager()->hasLoadedBnr(mChanPage, mChanIndex);
|
||||
}
|
||||
|
||||
void ChannelObj::onPoint(int unk) {
|
||||
if (unk & 0x10000U) {
|
||||
unk_0x74 = 0;
|
||||
} else if (unk & 0x20000U) {
|
||||
unk_0x74 = 1;
|
||||
} else if ((unk_0x74 += 1) > 1) {
|
||||
void ChannelObj::onPoint(int eventFlags) {
|
||||
if (eventFlags & 0x10000U) {
|
||||
mPointCount = 0;
|
||||
} else if (eventFlags & 0x20000U) {
|
||||
mPointCount = 1;
|
||||
} else if ((mPointCount += 1) > 1) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(unk & 1)) {
|
||||
if (!(eventFlags & 1)) {
|
||||
setCursorAnim(1);
|
||||
}
|
||||
if (!(unk & 2)) {
|
||||
if (!(eventFlags & 2)) {
|
||||
setBalloonAnim(1);
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::onLeft(int unk) {
|
||||
if (unk & 0x10000U) {
|
||||
unk_0x74 = 0;
|
||||
} else if (unk & 0x20000U) {
|
||||
unk_0x74 = 1;
|
||||
} else if ((unk_0x74 -= 1) > 0) {
|
||||
void ChannelObj::onLeft(int eventFlags) {
|
||||
if (eventFlags & 0x10000U) {
|
||||
mPointCount = 0;
|
||||
} else if (eventFlags & 0x20000U) {
|
||||
mPointCount = 1;
|
||||
} else if ((mPointCount -= 1) > 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!(unk & 1)) {
|
||||
if (!(eventFlags & 1)) {
|
||||
setCursorAnim(3);
|
||||
}
|
||||
if (!(unk & 2)) {
|
||||
if (!(eventFlags & 2)) {
|
||||
setBalloonAnim(4);
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::onPinch(bool unk) {
|
||||
if (unk) {
|
||||
void ChannelObj::onPinch(bool pinched) {
|
||||
if (pinched) {
|
||||
setCursorAnim(1);
|
||||
unk_0x74 = 1;
|
||||
mPointCount = 1;
|
||||
} else {
|
||||
setCursorAnim(0);
|
||||
unk_0x74 = 0;
|
||||
mPointCount = 0;
|
||||
}
|
||||
|
||||
setBalloonAnim(0);
|
||||
@@ -617,17 +617,17 @@ namespace ipl {
|
||||
setCursorAnim(4);
|
||||
}
|
||||
|
||||
void ChannelObj::initCursorAnim(bool unk) {
|
||||
void ChannelObj::initCursorAnim(bool resetPointCount) {
|
||||
setCursorAnim(0);
|
||||
if (unk) {
|
||||
unk_0x74 = 0;
|
||||
if (resetPointCount) {
|
||||
mPointCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::initBalloonAnim(bool unk) {
|
||||
void ChannelObj::initBalloonAnim(bool resetPointCount) {
|
||||
setBalloonAnim(0);
|
||||
if (unk) {
|
||||
unk_0x74 = 0;
|
||||
if (resetPointCount) {
|
||||
mPointCount = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -822,7 +822,7 @@ namespace ipl {
|
||||
|
||||
bindNewAnm(mpThumbLayout);
|
||||
|
||||
unk_0x84 = 1;
|
||||
mNewMessageState = 1;
|
||||
|
||||
return frame;
|
||||
}
|
||||
@@ -893,10 +893,10 @@ namespace ipl {
|
||||
mpCursorLayout->calc();
|
||||
}
|
||||
|
||||
void ChannelObj::setCursorAnim(int unk) {
|
||||
if (unk == 0) {
|
||||
unk_0x58 = 0;
|
||||
unk_0x5C = 0;
|
||||
void ChannelObj::setCursorAnim(int state) {
|
||||
if (state == 0) {
|
||||
mCursorState = 0;
|
||||
mPendingCursorState = 0;
|
||||
|
||||
for (int i = 0; i < ANIM_CURSOR_MAX; i++) {
|
||||
mpCursorAnims[i]->initFrame();
|
||||
@@ -904,43 +904,43 @@ namespace ipl {
|
||||
|
||||
mpCursorLayout->getAnim(1)->initAnmFrame();
|
||||
mpCursorLayout->GetRootPane()->SetVisible(false);
|
||||
} else if (unk == 4) {
|
||||
unk_0x58 = 4;
|
||||
unk_0x5C = 0;
|
||||
} else if (state == 4) {
|
||||
mCursorState = 4;
|
||||
mPendingCursorState = 0;
|
||||
mpCursorLayout->GetRootPane()->SetVisible(true);
|
||||
startCursorAnim(2);
|
||||
} else {
|
||||
switch (unk_0x58) {
|
||||
switch (mCursorState) {
|
||||
case 0: {
|
||||
if (unk == 1) {
|
||||
unk_0x58 = 1;
|
||||
if (state == 1) {
|
||||
mCursorState = 1;
|
||||
mpCursorLayout->GetRootPane()->SetVisible(true);
|
||||
startCursorAnim(1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
if (unk == 2) {
|
||||
unk_0x58 = 2;
|
||||
} else if (unk == 3) {
|
||||
unk_0x5C = 3;
|
||||
} else if (unk == 1) {
|
||||
unk_0x5C = 0;
|
||||
if (state == 2) {
|
||||
mCursorState = 2;
|
||||
} else if (state == 3) {
|
||||
mPendingCursorState = 3;
|
||||
} else if (state == 1) {
|
||||
mPendingCursorState = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
if (unk == 3) {
|
||||
unk_0x58 = 3;
|
||||
if (state == 3) {
|
||||
mCursorState = 3;
|
||||
startCursorAnim(0);
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
if (unk == 1) {
|
||||
unk_0x5C = 1;
|
||||
} else if (unk == 3) {
|
||||
unk_0x5C = 0;
|
||||
if (state == 1) {
|
||||
mPendingCursorState = 1;
|
||||
} else if (state == 3) {
|
||||
mPendingCursorState = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -949,15 +949,15 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void ChannelObj::calcCursorAnim() {
|
||||
switch (unk_0x58) {
|
||||
switch (mCursorState) {
|
||||
case 1: {
|
||||
if (!mpCursorAnims[ANIM_CURSOR_FOCUS_ON]->isPlaying()) {
|
||||
int prev = unk_0x5C;
|
||||
switch (unk_0x58) {
|
||||
int prev = mPendingCursorState;
|
||||
switch (mCursorState) {
|
||||
case 0:
|
||||
break;
|
||||
case 1:
|
||||
unk_0x58 = 2;
|
||||
mCursorState = 2;
|
||||
break;
|
||||
case 2:
|
||||
break;
|
||||
@@ -968,14 +968,14 @@ namespace ipl {
|
||||
}
|
||||
if (prev == 3) {
|
||||
setCursorAnim(3);
|
||||
unk_0x5C = 0;
|
||||
mPendingCursorState = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
if (!mpCursorAnims[ANIM_CURSOR_FOCUS_OFF]->isPlaying()) {
|
||||
int prev = unk_0x5C;
|
||||
int prev = mPendingCursorState;
|
||||
setCursorAnim(0);
|
||||
if (prev == 1) {
|
||||
setCursorAnim(1);
|
||||
@@ -992,9 +992,9 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::startCursorAnim(int unk) {
|
||||
mpCursorAnims[unk]->setAnmType(ANIM_TYPE_FORWARD);
|
||||
mpCursorAnims[unk]->play();
|
||||
void ChannelObj::startCursorAnim(int animationIndex) {
|
||||
mpCursorAnims[animationIndex]->setAnmType(ANIM_TYPE_FORWARD);
|
||||
mpCursorAnims[animationIndex]->play();
|
||||
}
|
||||
|
||||
void ChannelObj::initBalloon() {
|
||||
@@ -1076,18 +1076,18 @@ namespace ipl {
|
||||
nw4r::ut::Rect projRect;
|
||||
System::getProjectionRect(&projRect);
|
||||
|
||||
f32 temp_f2 = vec.x;
|
||||
f32 temp_f5 = size.width / 2;
|
||||
f32 val2 = 0.0f;
|
||||
f32 val3 = (temp_f2 - temp_f5) - projRect.left;
|
||||
f32 val1 = projRect.right - (temp_f2 + temp_f5);
|
||||
if (val3 < 60.0f) {
|
||||
val2 = 60.0f - val3;
|
||||
} else if (val1 < 60.0f) {
|
||||
val2 = val1 - 60.0f;
|
||||
f32 anchorX = vec.x;
|
||||
f32 halfWidth = size.width / 2;
|
||||
f32 horizontalOffset = 0.0f;
|
||||
f32 leftMargin = (anchorX - halfWidth) - projRect.left;
|
||||
f32 rightMargin = projRect.right - (anchorX + halfWidth);
|
||||
if (leftMargin < 60.0f) {
|
||||
horizontalOffset = 60.0f - leftMargin;
|
||||
} else if (rightMargin < 60.0f) {
|
||||
horizontalOffset = rightMargin - 60.0f;
|
||||
}
|
||||
|
||||
const nw4r::math::VEC3 pos(vec.x + val2, vec.y + val, 0.0f);
|
||||
const nw4r::math::VEC3 pos(vec.x + horizontalOffset, vec.y + val, 0.0f);
|
||||
mpBalloonLayout->GetRootPane()->SetTranslate(pos);
|
||||
|
||||
calcBalloonAnim();
|
||||
@@ -1095,58 +1095,58 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelObj::setBalloonAnim(int unk) {
|
||||
void ChannelObj::setBalloonAnim(int state) {
|
||||
if (mpBalloonLayout != NULL) {
|
||||
if (unk == 0) {
|
||||
unk_0x68 = 0;
|
||||
unk_0x6C = 0;
|
||||
if (state == 0) {
|
||||
mBalloonState = 0;
|
||||
mPendingBalloonState = 0;
|
||||
|
||||
mpBalloonLayout->setMinFrame(0.0f);
|
||||
mpBalloonLayout->GetRootPane()->SetVisible(false);
|
||||
} else {
|
||||
switch (unk_0x68) {
|
||||
switch (mBalloonState) {
|
||||
case 0: {
|
||||
if (unk == 1) {
|
||||
unk_0x70 = 0;
|
||||
unk_0x68 = 1;
|
||||
if (state == 1) {
|
||||
mBalloonWaitFrame = 0;
|
||||
mBalloonState = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
if (unk == 2) {
|
||||
unk_0x68 = 2;
|
||||
if (state == 2) {
|
||||
mBalloonState = 2;
|
||||
mpBalloonLayout->GetRootPane()->SetVisible(true);
|
||||
mpBalloonLayout->setAnmType(ANIM_TYPE_FORWARD);
|
||||
mpBalloonLayout->start();
|
||||
snd::getSystem()->startSE(scSE_BALLOON);
|
||||
} else if (unk == 4) {
|
||||
unk_0x68 = 0;
|
||||
} else if (state == 4) {
|
||||
mBalloonState = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
if (unk == 3) {
|
||||
unk_0x68 = 3;
|
||||
} else if (unk == 4) {
|
||||
unk_0x6C = 4;
|
||||
} else if (unk == 1) {
|
||||
unk_0x6C = 0;
|
||||
if (state == 3) {
|
||||
mBalloonState = 3;
|
||||
} else if (state == 4) {
|
||||
mPendingBalloonState = 4;
|
||||
} else if (state == 1) {
|
||||
mPendingBalloonState = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 3: {
|
||||
if (unk == 4) {
|
||||
unk_0x68 = 4;
|
||||
if (state == 4) {
|
||||
mBalloonState = 4;
|
||||
mpBalloonLayout->setAnmType(ANIM_TYPE_BACKWARD);
|
||||
mpBalloonLayout->start();
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
if (unk == 1) {
|
||||
unk_0x6C = 1;
|
||||
} else if (unk == 4) {
|
||||
unk_0x6C = 0;
|
||||
if (state == 1) {
|
||||
mPendingBalloonState = 1;
|
||||
} else if (state == 4) {
|
||||
mPendingBalloonState = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -1156,9 +1156,9 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void ChannelObj::calcBalloonAnim() {
|
||||
switch (unk_0x68) {
|
||||
switch (mBalloonState) {
|
||||
case 1: {
|
||||
if ((reinterpret_cast<u32&>(unk_0x70) += 1) >= 20.0f) {
|
||||
if ((reinterpret_cast<u32&>(mBalloonWaitFrame) += 1) >= 20.0f) {
|
||||
setBalloonAnim(2);
|
||||
break;
|
||||
}
|
||||
@@ -1168,18 +1168,18 @@ namespace ipl {
|
||||
}
|
||||
case 2: {
|
||||
if (!mpBalloonLayout->isPlaying(0)) {
|
||||
int prev = unk_0x6C;
|
||||
int prev = mPendingBalloonState;
|
||||
setBalloonAnim(3);
|
||||
if (prev == 4) {
|
||||
setBalloonAnim(4);
|
||||
unk_0x6C = 0;
|
||||
mPendingBalloonState = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 4: {
|
||||
if (!mpBalloonLayout->isPlaying(0)) {
|
||||
int prev = unk_0x6C;
|
||||
int prev = mPendingBalloonState;
|
||||
setBalloonAnim(0);
|
||||
if (prev == 1) {
|
||||
setBalloonAnim(1);
|
||||
@@ -1257,17 +1257,17 @@ namespace ipl {
|
||||
|
||||
void ChannelObj::updateNew() {
|
||||
if (System::getNwc24Manager() != NULL) {
|
||||
switch (unk_0x84) {
|
||||
switch (mNewMessageState) {
|
||||
case 1: {
|
||||
if (setupNew()) {
|
||||
unk_0x84 = 2;
|
||||
unk_0x88 = 0;
|
||||
mNewMessageState = 2;
|
||||
mNewMessageFrame = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
if (++unk_0x88 >= 4200) {
|
||||
unk_0x84 = 1;
|
||||
if (++mNewMessageFrame >= 4200) {
|
||||
mNewMessageState = 1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -28,32 +28,32 @@ namespace ipl {
|
||||
|
||||
template <>
|
||||
VEC3 HermiteIntp<VEC3>::get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
VEC3 r(subHermitePoints(
|
||||
mStart * (1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27))))),
|
||||
mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27))))));
|
||||
f32 temp_f4 = var_f27 * var_f27;
|
||||
f32 temp_f7 = var_f28 * (var_f28 * (var_f27 * temp_f4));
|
||||
f32 temp_f3 = (mStartTangent * (var_f27 + (temp_f7 - (var_f28 * (2.0f * var_f27 * var_f27))))) +
|
||||
(mEndTangent * (temp_f7 - (var_f28 * temp_f4)));
|
||||
r.x += temp_f3;
|
||||
r.y += temp_f3;
|
||||
r.z += temp_f3;
|
||||
mStart * (1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame))))),
|
||||
mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame))))));
|
||||
f32 frameSquared = frame * frame;
|
||||
f32 scaledCubic = inverseDuration * (inverseDuration * (frame * frameSquared));
|
||||
f32 tangentContribution = (mStartTangent * (frame + (scaledCubic - (inverseDuration * (2.0f * frame * frame))))) +
|
||||
(mEndTangent * (scaledCubic - (inverseDuration * frameSquared)));
|
||||
r.x += tangentContribution;
|
||||
r.y += tangentContribution;
|
||||
r.z += tangentContribution;
|
||||
return r;
|
||||
}
|
||||
|
||||
inline f32 HermiteIntp<f32>::get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 r = (mStart * (1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))))) -
|
||||
(mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
r += (mStartTangent * (var_f27 + ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) - (var_f28 * (2.0f * var_f27 * var_f27))))) +
|
||||
(mEndTangent * ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) - (var_f28 * (var_f27 * var_f27))));
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
f32 r = (mStart * (1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))))) -
|
||||
(mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))));
|
||||
r += (mStartTangent * (frame + ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) - (inverseDuration * (2.0f * frame * frame))))) +
|
||||
(mEndTangent * ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) - (inverseDuration * (frame * frame))));
|
||||
return r;
|
||||
}
|
||||
} // namespace math
|
||||
@@ -249,7 +249,7 @@ namespace ipl {
|
||||
};
|
||||
|
||||
|
||||
const char* ChannelSelect::mscUnk0PaneNames[CHAN_SCROLL_MAX] = {
|
||||
const char* ChannelSelect::mscPicturePaneNames[CHAN_SCROLL_MAX] = {
|
||||
"Picture_00",
|
||||
"Picture_01",
|
||||
"Picture_02",
|
||||
@@ -257,7 +257,7 @@ namespace ipl {
|
||||
"Picture_04"
|
||||
};
|
||||
|
||||
const char* ChannelSelect::mscUnk1PaneNames[CHAN_SCROLL_MAX] = {
|
||||
const char* ChannelSelect::mscEdgePaneNames[CHAN_SCROLL_MAX] = {
|
||||
"Edge0",
|
||||
"Edge1",
|
||||
"Edge2",
|
||||
@@ -306,10 +306,10 @@ namespace ipl {
|
||||
|
||||
mPrevSDState = 0;
|
||||
|
||||
unk_0x180 = 1;
|
||||
mModuleState = 1;
|
||||
mbModuleSceneChange = false;
|
||||
mpCurrentRsoChanObj = NULL;
|
||||
unk_0x18C = NULL;
|
||||
mpPriorityModuleChanObj = NULL;
|
||||
|
||||
mMaxPages = MAX_CHANNEL_PAGE;
|
||||
|
||||
@@ -342,8 +342,8 @@ namespace ipl {
|
||||
// ??? (although nothing really happens)
|
||||
memset(&mDragPos, 0, 0x34);
|
||||
|
||||
unk_0x17C = EGG::ExpHeap::create(0x3D28, heap, MEM_HEAP_OPT_DEBUG_FILL | MEM_HEAP_OPT_THREAD_SAFE);
|
||||
unk_0x16C = EGG::UnitHeap::create(EGG::UnitHeap::calcHeapSize(0x212B8, 0x31, 32), 0x212B8, System::getMem2App(), 32, 2);
|
||||
mpChannelObjHeap = EGG::ExpHeap::create(0x3D28, heap, MEM_HEAP_OPT_DEBUG_FILL | MEM_HEAP_OPT_THREAD_SAFE);
|
||||
mpThumbnailHeap = EGG::UnitHeap::create(EGG::UnitHeap::calcHeapSize(0x212B8, 0x31, 32), 0x212B8, System::getMem2App(), 32, 2);
|
||||
|
||||
nw4r::ut::List_Init(&mChanList, 0);
|
||||
makeChannelList(mCurrentPage, true);
|
||||
@@ -468,7 +468,7 @@ namespace ipl {
|
||||
mpMoveLytMask->calc();
|
||||
mpMoveLytObject->calc();
|
||||
mpMoveLytDrop->calc();
|
||||
unk_0x2C4->calc();
|
||||
mpMoveThumbnailLayout->calc();
|
||||
|
||||
mClock.calc();
|
||||
|
||||
@@ -614,7 +614,7 @@ namespace ipl {
|
||||
|
||||
if (mState == STATE_BOARD_SCENE || mState == STATE_START_SETTING_SCENE) {
|
||||
mbModuleSceneChange = true;
|
||||
unk_0x185 = true;
|
||||
mbWaitForModuleStop = true;
|
||||
return FADER_SCN_NEXT;
|
||||
}
|
||||
return FADER_SCN_CONTINUE;
|
||||
@@ -700,7 +700,7 @@ namespace ipl {
|
||||
chanObj = NULL;
|
||||
}
|
||||
|
||||
unk_0x16C->destroy();
|
||||
mpThumbnailHeap->destroy();
|
||||
|
||||
for (int i = 0; i < 49; i++) {
|
||||
mpModuleHeaps[i]->destroy();
|
||||
@@ -709,7 +709,7 @@ namespace ipl {
|
||||
delete mpModuleThread;
|
||||
|
||||
mpModuleWorkHeap->destroy();
|
||||
unk_0x17C->destroy();
|
||||
mpChannelObjHeap->destroy();
|
||||
mpDiskHeap->destroy();
|
||||
mpCursorHeap->destroy();
|
||||
mpBalloonHeap->destroy();
|
||||
@@ -771,7 +771,7 @@ namespace ipl {
|
||||
mpModuleWorkHeap = EGG::ExpHeap::create(System::getChannelArena(), 0x200000, 0);
|
||||
for (int i = 0; i < 49; i++) {
|
||||
mpModuleHeaps[i] = EGG::ExpHeap::create(0x10000, System::getMem2App(), MEM_HEAP_OPT_DEBUG_FILL | MEM_HEAP_OPT_THREAD_SAFE);
|
||||
unk_0x25C[i] = false;
|
||||
mbModuleHeapInUse[i] = false;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -786,8 +786,8 @@ namespace ipl {
|
||||
mpLayout->FindPaneByName("Picture_16")->GetMaterial()->GetTexture(&texObj[0], GX_TEXMAP0);
|
||||
|
||||
for (int i = 0; i < CHAN_SCROLL_MAX; i++) {
|
||||
mpLayout->FindPaneByName(mscUnk0PaneNames[i])->GetMaterial()->SetTexture(GX_TEXMAP0, texObj[1]);
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[i])->GetMaterial()->SetTexture(GX_TEXMAP0, texObj[0]);
|
||||
mpLayout->FindPaneByName(mscPicturePaneNames[i])->GetMaterial()->SetTexture(GX_TEXMAP0, texObj[1]);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[i])->GetMaterial()->SetTexture(GX_TEXMAP0, texObj[0]);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -877,7 +877,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void ChannelSelect::calcChannelModules() {
|
||||
if (unk_0x180 == 3) {
|
||||
if (mModuleState == 3) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -886,8 +886,8 @@ namespace ipl {
|
||||
EGG::ExpHeap* expHeap = getFreeModuleExHeap();
|
||||
ChannelObj* chanObj = NULL;
|
||||
FOREACH_CHANNEL_OBJ(chanObj) {
|
||||
if (unk_0x18C == NULL || chanObj == unk_0x18C) {
|
||||
if (unk_0x180 == 2) {
|
||||
if (mpPriorityModuleChanObj == NULL || chanObj == mpPriorityModuleChanObj) {
|
||||
if (mModuleState == 2) {
|
||||
result = false;
|
||||
}
|
||||
|
||||
@@ -895,19 +895,19 @@ namespace ipl {
|
||||
if (state == ChannelObj::EXT_MODULE_RESULT_DESTROY) {
|
||||
updateModuleExHeap(chanObj->mpPrevModuleHeap, expHeap);
|
||||
mpCurrentRsoChanObj = NULL;
|
||||
unk_0x180 = 1;
|
||||
} else if (state == ChannelObj::EXT_MODULE_RESULT_CALC && unk_0x180 == 1) {
|
||||
unk_0x180 = 2;
|
||||
mModuleState = 1;
|
||||
} else if (state == ChannelObj::EXT_MODULE_RESULT_CALC && mModuleState == 1) {
|
||||
mModuleState = 2;
|
||||
mpCurrentRsoChanObj = chanObj;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
unk_0x18C = NULL;
|
||||
if (mbModuleSceneChange && unk_0x180 == 1) {
|
||||
mpPriorityModuleChanObj = NULL;
|
||||
if (mbModuleSceneChange && mModuleState == 1) {
|
||||
mbModuleSceneChange = false;
|
||||
unk_0x180 = 3;
|
||||
mModuleState = 3;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -917,8 +917,8 @@ namespace ipl {
|
||||
chanObj->calc();
|
||||
}
|
||||
|
||||
if (unk_0x2C0 != NULL) {
|
||||
unk_0x2C0->calc();
|
||||
if (mpMovedChanObj != NULL) {
|
||||
mpMovedChanObj->calc();
|
||||
}
|
||||
|
||||
calcDiskLayout();
|
||||
@@ -993,9 +993,9 @@ namespace ipl {
|
||||
case STATE_DRAG_SCROLL_RIGHT: {
|
||||
if (chanPage == mMoveOldPage && chanIndex == mMoveOldIndex) {
|
||||
nw4r::math::VEC3 trans = chanObj->getTranslate();
|
||||
unk_0x2C4->GetRootPane()->SetTranslate(trans);
|
||||
unk_0x2C4->calcMtx();
|
||||
unk_0x2C4->draw();
|
||||
mpMoveThumbnailLayout->GetRootPane()->SetTranslate(trans);
|
||||
mpMoveThumbnailLayout->calcMtx();
|
||||
mpMoveThumbnailLayout->draw();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1220,10 +1220,10 @@ namespace ipl {
|
||||
isDisk = true;
|
||||
frmHeap = NULL;
|
||||
} else {
|
||||
frmHeap = EGG::FrmHeap::create(0x212B8, unk_0x16C, 2);
|
||||
frmHeap = EGG::FrmHeap::create(0x212B8, mpThumbnailHeap, 2);
|
||||
}
|
||||
|
||||
ChannelObj* chanObj = new (unk_0x17C, 4) ChannelObj(frmHeap, page, index);
|
||||
ChannelObj* chanObj = new (mpChannelObjHeap, 4) ChannelObj(frmHeap, page, index);
|
||||
nw4r::ut::List_Append(&mChanList, chanObj);
|
||||
|
||||
if (isDisk) {
|
||||
@@ -1264,10 +1264,10 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelSelect::sortChannelListByPage(int page, int unk) {
|
||||
void ChannelSelect::sortChannelListByPage(int page, int edgeDirection) {
|
||||
for (int i = 0; i < MAX_CHANNEL_INDEX; i++) {
|
||||
// TODO: fix this ugly madness
|
||||
if (unk == -1) {
|
||||
if (edgeDirection == -1) {
|
||||
if (!(i & 3)) {
|
||||
continue;
|
||||
}
|
||||
@@ -1277,7 +1277,7 @@ namespace ipl {
|
||||
|
||||
goto block_7;
|
||||
block_6:
|
||||
if (!(unk != 1 || (i & 3) != 3)) {
|
||||
if (!(edgeDirection != 1 || (i & 3) != 3)) {
|
||||
continue;
|
||||
}
|
||||
block_7:
|
||||
@@ -1286,7 +1286,7 @@ namespace ipl {
|
||||
nw4r::ut::List_Append(&mChanList, chanObj);
|
||||
}
|
||||
|
||||
if (unk != 1 && page + 1 < mMaxPages) {
|
||||
if (edgeDirection != 1 && page + 1 < mMaxPages) {
|
||||
for (int i = 0; i < MAX_CHANNEL_INDEX; i += MAX_CHANNEL_ROW) {
|
||||
ChannelObj* chanObj = searchList(page + 1, i);
|
||||
nw4r::ut::List_Remove(&mChanList, chanObj);
|
||||
@@ -1294,7 +1294,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
if (unk != -1 && page - 1 >= 0) {
|
||||
if (edgeDirection != -1 && page - 1 >= 0) {
|
||||
for (int i = MAX_CHANNEL_COLUMN; i < MAX_CHANNEL_INDEX; i += MAX_CHANNEL_ROW) {
|
||||
ChannelObj* chanObj = searchList(page - 1, i);
|
||||
nw4r::ut::List_Remove(&mChanList, chanObj);
|
||||
@@ -1439,10 +1439,10 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if ((mCurrentPage - 1) - neg >= 0) {
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[0])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[1])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[0])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[1])->SetVisible(true);
|
||||
} else {
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[1 - neg])->SetVisible(false);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[1 - neg])->SetVisible(false);
|
||||
}
|
||||
|
||||
if (mState == STATE_RIGHT_PAGE_SCROLL || mState == STATE_DRAG_SCROLL_RIGHT) {
|
||||
@@ -1452,65 +1452,65 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if ((mCurrentPage + 1) + neg < mMaxPages) {
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[3])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[4])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[3])->SetVisible(true);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[4])->SetVisible(true);
|
||||
} else {
|
||||
mpLayout->FindPaneByName(mscUnk1PaneNames[3 + neg])->SetVisible(false);
|
||||
mpLayout->FindPaneByName(mscEdgePaneNames[3 + neg])->SetVisible(false);
|
||||
}
|
||||
}
|
||||
|
||||
BOOL ChannelSelect::isChannelInView(int page, int index) const {
|
||||
int unk = mCurrentPage;
|
||||
if (page == unk) {
|
||||
int pageOrEdgeIndex = mCurrentPage;
|
||||
if (page == pageOrEdgeIndex) {
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
if (page == unk - 1) {
|
||||
if (page == pageOrEdgeIndex - 1) {
|
||||
if (mState == STATE_LEFT_PAGE_SCROLL || mState == STATE_DRAG_SCROLL_LEFT) {
|
||||
return TRUE;
|
||||
}
|
||||
unk = 3;
|
||||
pageOrEdgeIndex = 3;
|
||||
for (int i = 0; i < MAX_CHANNEL_COLUMN; i++) {
|
||||
if (unk == index) {
|
||||
if (pageOrEdgeIndex == index) {
|
||||
return TRUE;
|
||||
}
|
||||
unk += MAX_CHANNEL_ROW;
|
||||
pageOrEdgeIndex += MAX_CHANNEL_ROW;
|
||||
}
|
||||
}
|
||||
|
||||
else if (page == unk - 2) {
|
||||
else if (page == pageOrEdgeIndex - 2) {
|
||||
if (mState == STATE_LEFT_PAGE_SCROLL || mState == STATE_DRAG_SCROLL_LEFT) {
|
||||
unk = 3;
|
||||
pageOrEdgeIndex = 3;
|
||||
for (int i = 0; i < MAX_CHANNEL_COLUMN; i++) {
|
||||
if (unk == index) {
|
||||
if (pageOrEdgeIndex == index) {
|
||||
return TRUE;
|
||||
}
|
||||
unk += MAX_CHANNEL_ROW;
|
||||
pageOrEdgeIndex += MAX_CHANNEL_ROW;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
else if (page == unk + 1) {
|
||||
else if (page == pageOrEdgeIndex + 1) {
|
||||
if (mState == STATE_RIGHT_PAGE_SCROLL || mState == STATE_DRAG_SCROLL_RIGHT) {
|
||||
return TRUE;
|
||||
}
|
||||
unk = 0;
|
||||
pageOrEdgeIndex = 0;
|
||||
for (int i = 0; i < MAX_CHANNEL_COLUMN; i++) {
|
||||
if (unk == index) {
|
||||
if (pageOrEdgeIndex == index) {
|
||||
return TRUE;
|
||||
}
|
||||
unk += MAX_CHANNEL_ROW;
|
||||
pageOrEdgeIndex += MAX_CHANNEL_ROW;
|
||||
}
|
||||
}
|
||||
|
||||
else if (page == unk + 2) {
|
||||
else if (page == pageOrEdgeIndex + 2) {
|
||||
if (mState == STATE_RIGHT_PAGE_SCROLL || mState == STATE_DRAG_SCROLL_RIGHT) {
|
||||
unk = 0;
|
||||
pageOrEdgeIndex = 0;
|
||||
for (int i = 0; i < MAX_CHANNEL_COLUMN; i++) {
|
||||
if (unk == index) {
|
||||
if (pageOrEdgeIndex == index) {
|
||||
return TRUE;
|
||||
}
|
||||
unk += MAX_CHANNEL_ROW;
|
||||
pageOrEdgeIndex += MAX_CHANNEL_ROW;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1518,9 +1518,9 @@ namespace ipl {
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
BOOL ChannelSelect::isChannelInCalc(int page, int index, int unk2) const {
|
||||
int unk = page - unk2;
|
||||
if (unk <= -3 || unk >= 3 || strcmp(mscChanPaneNames[unk + 2][index], "") == 0) {
|
||||
BOOL ChannelSelect::isChannelInCalc(int page, int index, int currentPage) const {
|
||||
int pageOffset = page - currentPage;
|
||||
if (pageOffset <= -3 || pageOffset >= 3 || strcmp(mscChanPaneNames[pageOffset + 2][index], "") == 0) {
|
||||
return FALSE;
|
||||
} else {
|
||||
return TRUE;
|
||||
@@ -1570,7 +1570,7 @@ namespace ipl {
|
||||
void ChannelSelect::preparePageScrolling(int nextState) {
|
||||
mbModuleSceneChange = true;
|
||||
mState = nextState;
|
||||
unk_0x185 = false;
|
||||
mbWaitForModuleStop = false;
|
||||
snd::getSystem()->startSE(scSE_WSD_SELECT);
|
||||
}
|
||||
|
||||
@@ -1631,7 +1631,7 @@ namespace ipl {
|
||||
|
||||
mState = STATE_NORMAL_WAIT_LOADING;
|
||||
mbModuleSceneChange = true;
|
||||
unk_0x185 = true;
|
||||
mbWaitForModuleStop = true;
|
||||
|
||||
snd::getSystem()->startSE("WIPL_SE_BT_PUSH");
|
||||
snd::getSystem()->stopBGM(5);
|
||||
@@ -1695,7 +1695,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
unk_0x18C = searchList(page, index);
|
||||
mpPriorityModuleChanObj = searchList(page, index);
|
||||
|
||||
ChannelObj* chanObj = NULL;
|
||||
FOREACH_CHANNEL_OBJ(chanObj) {
|
||||
@@ -1705,9 +1705,9 @@ namespace ipl {
|
||||
mState = STATE_NORMAL_RESTART;
|
||||
}
|
||||
|
||||
nw4r::lyt::Pane* ChannelSelect::getChannelBasePane(int page, int index, int unk3) const {
|
||||
if (isChannelInCalc(page, index, unk3)) {
|
||||
return mpLayout->FindPaneByName(mscChanPaneNames[(page - unk3) + 2][index]);
|
||||
nw4r::lyt::Pane* ChannelSelect::getChannelBasePane(int page, int index, int currentPage) const {
|
||||
if (isChannelInCalc(page, index, currentPage)) {
|
||||
return mpLayout->FindPaneByName(mscChanPaneNames[(page - currentPage) + 2][index]);
|
||||
} else {
|
||||
return mpLayout->FindPaneByName("Picture_16");
|
||||
}
|
||||
@@ -1788,29 +1788,29 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelSelect::initChanZoomParam(const math::VEC3& pos, BOOL unk) {
|
||||
void ChannelSelect::initChanZoomParam(const math::VEC3& pos, BOOL zoomOut) {
|
||||
nw4r::ut::Rect projRect;
|
||||
System::getProjectionRect(&projRect);
|
||||
|
||||
math::VEC3 iStack_34(projRect.left, -projRect.top, 0.0f);
|
||||
math::VEC3 iStack_40(pos.x - mChanThumbOff_X, pos.y + mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 iStack_4C(projRect.right, -projRect.top, 0.0f);
|
||||
math::VEC3 iStack_58(pos.x + mChanThumbOff_X, pos.y + mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 iStack_64(projRect.left, -projRect.bottom, 0.0f);
|
||||
math::VEC3 iStack_70(pos.x - mChanThumbOff_X, pos.y - mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 iStack_7C(projRect.right, -projRect.bottom, 0.0f);
|
||||
math::VEC3 iStack_88(pos.x + mChanThumbOff_X, pos.y - mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 screenTopLeft(projRect.left, -projRect.top, 0.0f);
|
||||
math::VEC3 channelTopLeft(pos.x - mChanThumbOff_X, pos.y + mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 screenTopRight(projRect.right, -projRect.top, 0.0f);
|
||||
math::VEC3 channelTopRight(pos.x + mChanThumbOff_X, pos.y + mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 screenBottomLeft(projRect.left, -projRect.bottom, 0.0f);
|
||||
math::VEC3 channelBottomLeft(pos.x - mChanThumbOff_X, pos.y - mChanThumbOff_Y, 0.0f);
|
||||
math::VEC3 screenBottomRight(projRect.right, -projRect.bottom, 0.0f);
|
||||
math::VEC3 channelBottomRight(pos.x + mChanThumbOff_X, pos.y - mChanThumbOff_Y, 0.0f);
|
||||
|
||||
if (!unk) {
|
||||
mpChanZoomParams[0]->init(iStack_34, iStack_40, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[1]->init(iStack_4C, iStack_58, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[2]->init(iStack_64, iStack_70, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[3]->init(iStack_7C, iStack_88, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
if (!zoomOut) {
|
||||
mpChanZoomParams[0]->init(screenTopLeft, channelTopLeft, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[1]->init(screenTopRight, channelTopRight, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[2]->init(screenBottomLeft, channelBottomLeft, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[3]->init(screenBottomRight, channelBottomRight, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
} else {
|
||||
mpChanZoomParams[0]->init(iStack_40, iStack_34, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[1]->init(iStack_58, iStack_4C, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[2]->init(iStack_70, iStack_64, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[3]->init(iStack_88, iStack_7C, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[0]->init(channelTopLeft, screenTopLeft, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[1]->init(channelTopRight, screenTopRight, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[2]->init(channelBottomLeft, screenBottomLeft, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
mpChanZoomParams[3]->init(channelBottomRight, screenBottomRight, 28.0f, 0.0f, 0.0f, ANIM_TYPE_FORWARD);
|
||||
}
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
@@ -1850,7 +1850,7 @@ namespace ipl {
|
||||
EGG::ExpHeap* ChannelSelect::getFreeModuleExHeap() {
|
||||
int i = 0;
|
||||
for (i = 0; i < 49; i++) {
|
||||
if (!unk_0x25C[i]) {
|
||||
if (!mbModuleHeapInUse[i]) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1861,11 +1861,11 @@ namespace ipl {
|
||||
if (heap1 != NULL || heap2 != NULL) {
|
||||
for (int i = 0; i < 49; i++) {
|
||||
if (heap1 != NULL && mpModuleHeaps[i] == heap1) {
|
||||
unk_0x25C[i] = false;
|
||||
mbModuleHeapInUse[i] = false;
|
||||
heap1->freeAll();
|
||||
}
|
||||
if (heap2 != NULL && mpModuleHeaps[i] == heap2) {
|
||||
unk_0x25C[i] = true;
|
||||
mbModuleHeapInUse[i] = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1873,20 +1873,20 @@ namespace ipl {
|
||||
|
||||
void ChannelSelect::restartChannelModules() {
|
||||
if (!mbModuleSceneChange) {
|
||||
unk_0x180 = 1;
|
||||
mModuleState = 1;
|
||||
}
|
||||
mbModuleSceneChange = false;
|
||||
unk_0x185 = true;
|
||||
mbWaitForModuleStop = true;
|
||||
}
|
||||
|
||||
void ChannelSelect::createChanMoveLayout() {
|
||||
unk_0x2C4 = new layout::Object(getSceneHeap(), mpLayoutFile, "arc", "my_IplTop_b.brlyt");
|
||||
unk_0x2C8 = unk_0x2C4->bind("my_IplTop_b.brlan");
|
||||
mpMoveThumbnailLayout = new layout::Object(getSceneHeap(), mpLayoutFile, "arc", "my_IplTop_b.brlyt");
|
||||
mpMoveThumbnailAnim = mpMoveThumbnailLayout->bind("my_IplTop_b.brlan");
|
||||
|
||||
f32 frame = System::getRndm()->get_u16() % 2000;
|
||||
unk_0x2C8->play();
|
||||
unk_0x2C4->finishBinding();
|
||||
unk_0x2C8->setCurrentFrame(frame);
|
||||
mpMoveThumbnailAnim->play();
|
||||
mpMoveThumbnailLayout->finishBinding();
|
||||
mpMoveThumbnailAnim->setCurrentFrame(frame);
|
||||
|
||||
mpMoveLytMask = new layout::Object(getSceneHeap(), mpLayoutFile, "arc", "my_TVMask_a.brlyt");
|
||||
mpMoveLytMask->bind("my_TVMask_a_Apear.brlan", "Picture_00", false);
|
||||
@@ -1930,14 +1930,14 @@ namespace ipl {
|
||||
|
||||
if (System::getControllerManager()->getController(mConChan) == NULL ||
|
||||
!System::getControllerManager()->getController(mConChan)->pinch()) {
|
||||
unk_0x2B8 = true;
|
||||
mbDragReleased = true;
|
||||
}
|
||||
|
||||
if (unk_0x2B0 >= 0) {
|
||||
unk_0x2B0++;
|
||||
if (mDragLeftScrollFrame >= 0) {
|
||||
mDragLeftScrollFrame++;
|
||||
}
|
||||
if (unk_0x2AC >= 0) {
|
||||
unk_0x2AC++;
|
||||
if (mDragRightScrollFrame >= 0) {
|
||||
mDragRightScrollFrame++;
|
||||
}
|
||||
|
||||
moveDrag();
|
||||
@@ -1957,24 +1957,24 @@ namespace ipl {
|
||||
|
||||
if (System::getControllerManager()->getController(mConChan) == NULL ||
|
||||
!System::getControllerManager()->getController(mConChan)->pinch()) {
|
||||
unk_0x2B8 = true;
|
||||
mbDragReleased = true;
|
||||
}
|
||||
|
||||
if (unk_0x2B0 >= 0) {
|
||||
unk_0x2B0++;
|
||||
if (mDragLeftScrollFrame >= 0) {
|
||||
mDragLeftScrollFrame++;
|
||||
}
|
||||
if (unk_0x2AC >= 0) {
|
||||
unk_0x2AC++;
|
||||
if (mDragRightScrollFrame >= 0) {
|
||||
mDragRightScrollFrame++;
|
||||
}
|
||||
|
||||
moveDrag();
|
||||
|
||||
if (unk_0x2B8) {
|
||||
if (mbDragReleased) {
|
||||
finishDrag();
|
||||
return;
|
||||
}
|
||||
|
||||
if (mCurrentPage > 0 && unk_0x2B0 >= 15 && isPageCreatedAllDone(mCurrentPage)) {
|
||||
if (mCurrentPage > 0 && mDragLeftScrollFrame >= 15 && isPageCreatedAllDone(mCurrentPage)) {
|
||||
if (unkBool()) {
|
||||
button->animation(Button::IDANIM_ARROW_LEFT_SELECT);
|
||||
mpLayout->setMinFrame(0.0f);
|
||||
@@ -1984,8 +1984,8 @@ namespace ipl {
|
||||
|
||||
mState = STATE_DRAG_SCROLL_LEFT;
|
||||
|
||||
unk_0x2B0 = 0;
|
||||
unk_0x2AC = -1;
|
||||
mDragLeftScrollFrame = 0;
|
||||
mDragRightScrollFrame = -1;
|
||||
|
||||
ChannelObj* chanObj = NULL;
|
||||
FOREACH_CHANNEL_OBJ(chanObj) {
|
||||
@@ -2000,7 +2000,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
if (mCurrentPage < mMaxPages - 1 && unk_0x2AC >= 15 && isPageCreatedAllDone(mCurrentPage)) {
|
||||
if (mCurrentPage < mMaxPages - 1 && mDragRightScrollFrame >= 15 && isPageCreatedAllDone(mCurrentPage)) {
|
||||
if (unkBool()) {
|
||||
button->animation(Button::IDANIM_ARROW_RIGHT_SELECT);
|
||||
mpLayout->setMinFrame(40.0f);
|
||||
@@ -2010,8 +2010,8 @@ namespace ipl {
|
||||
|
||||
mState = STATE_DRAG_SCROLL_RIGHT;
|
||||
|
||||
unk_0x2B0 = -1;
|
||||
unk_0x2AC = 0;
|
||||
mDragLeftScrollFrame = -1;
|
||||
mDragRightScrollFrame = 0;
|
||||
|
||||
ChannelObj* chanObj = NULL;
|
||||
FOREACH_CHANNEL_OBJ(chanObj) {
|
||||
@@ -2028,8 +2028,8 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void ChannelSelect::calcNormalReleaseWait() {
|
||||
unk_0x2B4++;
|
||||
if (unk_0x2B4 > 20) {
|
||||
mReleaseWaitFrame++;
|
||||
if (mReleaseWaitFrame > 20) {
|
||||
mpMoveLytMask->getAnim(1)->play();
|
||||
mState = STATE_NORMAL_RELEASE;
|
||||
}
|
||||
@@ -2049,24 +2049,24 @@ namespace ipl {
|
||||
mState = STATE_NORMAL_MOVE_CHAN_OUT;
|
||||
} else {
|
||||
System::getChannelManager()->moveChannelInfo(mMoveOldPage, mMoveOldIndex, mMoveNewPage, mMoveNewIndex);
|
||||
unk_0x2C0 = searchList(mMoveOldPage, mMoveOldIndex);
|
||||
if (unk_0x2C0 == NULL) {
|
||||
EGG::FrmHeap* heap = EGG::FrmHeap::create(0x212B8, unk_0x16C, MEM_HEAP_OPT_DEBUG_FILL);
|
||||
unk_0x2C0 = new (unk_0x17C, 4) ChannelObj(heap, mMoveNewPage, mMoveNewIndex);
|
||||
createChannelThumbnail(unk_0x2C0);
|
||||
mpMovedChanObj = searchList(mMoveOldPage, mMoveOldIndex);
|
||||
if (mpMovedChanObj == NULL) {
|
||||
EGG::FrmHeap* heap = EGG::FrmHeap::create(0x212B8, mpThumbnailHeap, MEM_HEAP_OPT_DEBUG_FILL);
|
||||
mpMovedChanObj = new (mpChannelObjHeap, 4) ChannelObj(heap, mMoveNewPage, mMoveNewIndex);
|
||||
createChannelThumbnail(mpMovedChanObj);
|
||||
} else {
|
||||
ChannelObj* chanObj = searchList(mMoveNewPage, mMoveNewIndex);
|
||||
unk_0x2C0->setBasePane(getChannelBasePane(mMoveNewPage, mMoveNewIndex, mCurrentPage));
|
||||
mpMovedChanObj->setBasePane(getChannelBasePane(mMoveNewPage, mMoveNewIndex, mCurrentPage));
|
||||
chanObj->setBasePane(getChannelBasePane(mMoveOldPage, mMoveOldIndex, mCurrentPage));
|
||||
|
||||
unk_0x2C0->setPageIndex(mMoveNewPage, mMoveNewIndex);
|
||||
mpMovedChanObj->setPageIndex(mMoveNewPage, mMoveNewIndex);
|
||||
chanObj->setPageIndex(mMoveOldPage, mMoveOldIndex);
|
||||
|
||||
unk_0x2C0->calc();
|
||||
mpMovedChanObj->calc();
|
||||
chanObj->calc();
|
||||
|
||||
unk_0x2C0 = NULL;
|
||||
chanObj->mpThumbAnim->setCurrentFrame(unk_0x2C8->getCurrentFrame());
|
||||
mpMovedChanObj = NULL;
|
||||
chanObj->mpThumbAnim->setCurrentFrame(mpMoveThumbnailAnim->getCurrentFrame());
|
||||
}
|
||||
|
||||
mpSaveDataFile = System::getSaveData()->flushAsync(System::getMem2App());
|
||||
@@ -2076,13 +2076,13 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void ChannelSelect::calcNormalMoveChanSave() {
|
||||
if (System::getSaveData()->isFinished(mpSaveDataFile) && (unk_0x2C0 == NULL || unk_0x2C0->isLayoutCreated())) {
|
||||
if (unk_0x2C0 != NULL) {
|
||||
if (System::getSaveData()->isFinished(mpSaveDataFile) && (mpMovedChanObj == NULL || mpMovedChanObj->isLayoutCreated())) {
|
||||
if (mpMovedChanObj != NULL) {
|
||||
ChannelObj* chanObj = searchList(mMoveNewPage, mMoveNewIndex);
|
||||
nw4r::ut::List_Insert(&mChanList, chanObj, unk_0x2C0);
|
||||
nw4r::ut::List_Insert(&mChanList, chanObj, mpMovedChanObj);
|
||||
nw4r::ut::List_Remove(&mChanList, chanObj);
|
||||
destroyChannelObj(chanObj);
|
||||
unk_0x2C0 = NULL;
|
||||
mpMovedChanObj = NULL;
|
||||
} else {
|
||||
ChannelObj* chanObj = searchList(mMoveOldPage, mMoveOldIndex);
|
||||
ChannelObj* chanObj2 = searchList(mMoveNewPage, mMoveNewIndex);
|
||||
@@ -2116,7 +2116,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
f32 frame = System::getRndm()->get_u16() % 2000;
|
||||
unk_0x2C8->setCurrentFrame(frame);
|
||||
mpMoveThumbnailAnim->setCurrentFrame(frame);
|
||||
restartChannelModules();
|
||||
mState = STATE_NORMAL;
|
||||
}
|
||||
@@ -2129,7 +2129,7 @@ namespace ipl {
|
||||
|
||||
if (System::getControllerManager()->getController(mConChan) == NULL ||
|
||||
!System::getControllerManager()->getController(mConChan)->pinch()) {
|
||||
unk_0x2B8 = true;
|
||||
mbDragReleased = true;
|
||||
}
|
||||
|
||||
moveDrag();
|
||||
@@ -2177,7 +2177,7 @@ namespace ipl {
|
||||
if (!con->pinch()) {
|
||||
mMoveNewIndex = id;
|
||||
mMoveNewPage = mCurrentPage;
|
||||
unk_0x2B8 = true;
|
||||
mbDragReleased = true;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
@@ -2209,20 +2209,20 @@ namespace ipl {
|
||||
switch (event) {
|
||||
case ::gui::EventHandler::ON_LEFT: {
|
||||
if (Button::cmpButtonName(paneName, Button::BTN_ARROW_LEFT) == 0 && mCurrentPage > 0) {
|
||||
unk_0x2B0 = -1;
|
||||
mDragLeftScrollFrame = -1;
|
||||
} else if (Button::cmpButtonName(paneName, Button::BTN_ARROW_RIGHT) == 0 && mCurrentPage < mMaxPages - 1) {
|
||||
unk_0x2AC = -1;
|
||||
mDragRightScrollFrame = -1;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case ::gui::EventHandler::ON_POINT: {
|
||||
if (Button::cmpButtonName(paneName, Button::BTN_ARROW_LEFT) == 0 && mCurrentPage > 0) {
|
||||
if (unk_0x2B0 < 0) {
|
||||
unk_0x2B0 = 0;
|
||||
if (mDragLeftScrollFrame < 0) {
|
||||
mDragLeftScrollFrame = 0;
|
||||
}
|
||||
} else if (Button::cmpButtonName(paneName, Button::BTN_ARROW_RIGHT) == 0 && mCurrentPage < mMaxPages - 1) {
|
||||
if (unk_0x2AC < 0) {
|
||||
unk_0x2AC = 0;
|
||||
if (mDragRightScrollFrame < 0) {
|
||||
mDragRightScrollFrame = 0;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -2244,10 +2244,10 @@ namespace ipl {
|
||||
mMoveOldIndex = index;
|
||||
mMoveNewPage = -1;
|
||||
mMoveNewIndex = -1;
|
||||
unk_0x2AC = -1;
|
||||
unk_0x2B0 = -1;
|
||||
unk_0x2B4 = 0;
|
||||
unk_0x2B8 = false;
|
||||
mDragRightScrollFrame = -1;
|
||||
mDragLeftScrollFrame = -1;
|
||||
mReleaseWaitFrame = 0;
|
||||
mbDragReleased = false;
|
||||
|
||||
System::getPointer()->changeType(con->getChannel(), Pointer::TYPE_GRAB);
|
||||
|
||||
@@ -2264,7 +2264,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
mbModuleSceneChange = true;
|
||||
unk_0x185 = true;
|
||||
mbWaitForModuleStop = true;
|
||||
|
||||
snd::getSystem()->startSEwithPos(scSE_WIPL_SE_CH_HOLD, mDragPos.x);
|
||||
|
||||
@@ -2295,7 +2295,7 @@ namespace ipl {
|
||||
|
||||
getButton()->enableBtn();
|
||||
|
||||
unk_0x2B8 = false;
|
||||
mbDragReleased = false;
|
||||
|
||||
ChannelObj* chanObj = NULL;
|
||||
FOREACH_CHANNEL_OBJ(chanObj) {
|
||||
|
||||
@@ -239,31 +239,31 @@ namespace ipl {
|
||||
mState = STATE_INIT;
|
||||
mChanSceneID = 0;
|
||||
mParentalState = PARENTAL_STATE_NONE;
|
||||
unk_0x88 = 0;
|
||||
unk_0x8C = 0;
|
||||
unk_0x90 = false;
|
||||
mBootWaitFrame = 0;
|
||||
mStartButtonState = 0;
|
||||
mbBannerStartPending = false;
|
||||
mpChanSelScn = chanSel;
|
||||
mLoadedIndex = 0;
|
||||
mpChanBannerLyt = NULL;
|
||||
mpDiskBnrSound = NULL;
|
||||
unk_0x324 = 0;
|
||||
mWiiDiskReady = 0;
|
||||
mpGCBannerFile = NULL;
|
||||
mpGCBannerLyt = NULL;
|
||||
mbDisplayLockedDialog = false;
|
||||
mFadeoutTick = 0;
|
||||
mpButtonEvent = new CsChanTtlButtonEventHandler(this);
|
||||
mpCurTicket = NULL;
|
||||
unk_0x360 = false;
|
||||
mbTmdReady = false;
|
||||
mTmpTitleID = 0;
|
||||
unk_0x370 = false;
|
||||
unk_0x371 = false;
|
||||
mbTmpTitleCleanupDone = false;
|
||||
mbTicketLimitReady = false;
|
||||
mLimitType = LIMIT_TYPE_COUNT;
|
||||
unk_0x37C = false;
|
||||
mbStartButtonFocusPlayed = false;
|
||||
mModuleState = MODULE_STATE_INIT;
|
||||
mModuleType = MODULE_TYPE_NONE;
|
||||
mbModuleSceneChange = false;
|
||||
mbRSODoneCalc = false;
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
mpModuleFile = NULL;
|
||||
mCurRsoExpHeap = 0;
|
||||
mpRSOHeader = NULL;
|
||||
@@ -293,7 +293,7 @@ namespace ipl {
|
||||
|
||||
if (mpChanSelScn->mDiskState == ChannelSelect::DISK_STATE_PLAY_THUMB || mpChanSelScn->mDiskState == ChannelSelect::DISK_STATE_RVL_GAME) {
|
||||
mDiskState = DISK_STATE_WII_DISK_IDLE;
|
||||
unk_0x324 = 1;
|
||||
mWiiDiskReady = 1;
|
||||
} else if (mpChanSelScn->mDiskState == ChannelSelect::DISK_STATE_GC_GAME_WAIT ||
|
||||
mpChanSelScn->mDiskState == ChannelSelect::DISK_STATE_GC_GAME) {
|
||||
mDiskState = DISK_STATE_GC_DISK_IDLE;
|
||||
@@ -350,7 +350,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (isEnableToExecute(mChanPage, mChanIndex)) {
|
||||
unk_0x8C = 1;
|
||||
mStartButtonState = 1;
|
||||
}
|
||||
|
||||
mpGrpAnims[ANIM_GRP_FOCUS_BTN_A][ANIM_BTM_FOCUS_IN] =
|
||||
@@ -440,8 +440,8 @@ namespace ipl {
|
||||
mpCapture = new (System::getTreasureHeap(), 32) utility::Capture(System::getTreasureHeap(), 0, 0, System::getRenderModeObj()->fbWidth,
|
||||
System::getRenderModeObj()->efbHeight, GX_TF_RGB565);
|
||||
|
||||
unk_0x390 = 36000;
|
||||
unk_0x38C = 36000;
|
||||
mModuleInterval = 36000;
|
||||
mModuleFrame = 36000;
|
||||
|
||||
mState = STATE_START_ZOOM_IN;
|
||||
|
||||
@@ -470,7 +470,7 @@ namespace ipl {
|
||||
System::getChannelManager()->setDiskChannelReady(false);
|
||||
}
|
||||
|
||||
if ((mState == STATE_NORMAL || mState == STATE_WAIT_TMD || mState == STATE_PREPARE_BOOT || mState == STATE_BOOT_SCENE) && !unk_0x90 &&
|
||||
if ((mState == STATE_NORMAL || mState == STATE_WAIT_TMD || mState == STATE_PREPARE_BOOT || mState == STATE_BOOT_SCENE) && !mbBannerStartPending &&
|
||||
mpChanBannerAnims[BANNER_ANIM_START] && !mpChanBannerAnims[BANNER_ANIM_START]->isPlaying()) {
|
||||
if (mpChanBannerAnims[BANNER_ANIM_LOOP_AFTER_START] != NULL) {
|
||||
mpChanBannerAnims[BANNER_ANIM_LOOP_AFTER_START]->play();
|
||||
@@ -480,9 +480,9 @@ namespace ipl {
|
||||
mpChanBannerAnims[BANNER_ANIM_START] = NULL;
|
||||
}
|
||||
|
||||
if (mState == STATE_BOOT_SCENE && !unk_0x37C && !mpGrpAnims[ANIM_GRP_SELECT_BTN_B][ANIM_SELECT_BTN]->isPlaying()) {
|
||||
if (mState == STATE_BOOT_SCENE && !mbStartButtonFocusPlayed && !mpGrpAnims[ANIM_GRP_SELECT_BTN_B][ANIM_SELECT_BTN]->isPlaying()) {
|
||||
mpGrpAnims[ANIM_GRP_FOCUS_BTN_B][ANIM_BTM_FOCUS_IN]->play();
|
||||
unk_0x37C = true;
|
||||
mbStartButtonFocusPlayed = true;
|
||||
}
|
||||
|
||||
if (mpChanBannerLyt != NULL) {
|
||||
@@ -605,15 +605,15 @@ namespace ipl {
|
||||
|
||||
if (mState == STATE_BOOT_SCENE) {
|
||||
mbModuleSceneChange = true;
|
||||
unk_0x88++;
|
||||
mBootWaitFrame++;
|
||||
System::getPointer()->setVisible(false);
|
||||
|
||||
if (mTmpTitleID && unk_0x370) {
|
||||
if (mTmpTitleID && mbTmpTitleCleanupDone) {
|
||||
mTmpTitleID = 0;
|
||||
SCFlushAsync(NULL);
|
||||
}
|
||||
|
||||
if (isEnableAppStart() && unk_0x370) {
|
||||
if (isEnableAppStart() && mbTmpTitleCleanupDone) {
|
||||
result = FADER_SCN_NEXT;
|
||||
} else {
|
||||
result = FADER_SCN_CONTINUE;
|
||||
@@ -1050,7 +1050,7 @@ namespace ipl {
|
||||
ChannelObj::setLangPane(mpChanBannerLyt);
|
||||
bindChanAnms();
|
||||
mpChanBannerLyt->finishBinding();
|
||||
unk_0x90 = true;
|
||||
mbBannerStartPending = true;
|
||||
} else {
|
||||
mpChanBannerLyt = NULL;
|
||||
|
||||
@@ -1078,7 +1078,7 @@ namespace ipl {
|
||||
void ChannelTitle::calcModuleChannel() {
|
||||
if (mState == STATE_NORMAL) {
|
||||
if (System::getChannelManager()->getUnlockChannelState(mChanPage, mChanIndex)) {
|
||||
if ((unk_0x8C == 0 && isEnableToExecute(mChanPage, mChanIndex)) || (unk_0x8C != 0 && !isEnableToExecute(mChanPage, mChanIndex))) {
|
||||
if ((mStartButtonState == 0 && isEnableToExecute(mChanPage, mChanIndex)) || (mStartButtonState != 0 && !isEnableToExecute(mChanPage, mChanIndex))) {
|
||||
updateLockedMsg(LOCKED_MSG_AUTO);
|
||||
changeStartButton();
|
||||
}
|
||||
@@ -1120,10 +1120,10 @@ namespace ipl {
|
||||
} else {
|
||||
mpGui->update();
|
||||
if (isEnableToExecute(mChanPage, mChanIndex)) {
|
||||
if (unk_0x8C == 0) {
|
||||
unk_0x8C = 1;
|
||||
} else if (unk_0x8C == 1) {
|
||||
unk_0x8C = 2;
|
||||
if (mStartButtonState == 0) {
|
||||
mStartButtonState = 1;
|
||||
} else if (mStartButtonState == 1) {
|
||||
mStartButtonState = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1139,7 +1139,7 @@ namespace ipl {
|
||||
if ((mpLoadedLytFile[PREV_LOADED_INDEX] == NULL || mpLoadedLytFile[PREV_LOADED_INDEX]->isFinished()) &&
|
||||
(mpLoadedBnrSound[PREV_LOADED_INDEX] == NULL || mpLoadedBnrSound[PREV_LOADED_INDEX]->isFinished()) &&
|
||||
(!mpGrpAnims[ANIM_GRP_CHANGE_BTN_B][ANIM_CHANGE_TEXT_IN]->isPlaying() &&
|
||||
!mpGrpAnims[ANIM_GRP_CHANGE_BTN_B][ANIM_CHANGE_TEXT_OUT]->isPlaying() && unk_0x371) &&
|
||||
!mpGrpAnims[ANIM_GRP_CHANGE_BTN_B][ANIM_CHANGE_TEXT_OUT]->isPlaying() && mbTicketLimitReady) &&
|
||||
(System::getChannelManager()->isLoadedLockedMsg() && !mpLockedDialogAnim[LOCKED_DIALOG_ANIM_DISAPPEAR]->isPlaying()) &&
|
||||
(mModuleType == MODULE_TYPE_NONE || mModuleState == MODULE_STATE_4)) {
|
||||
if (mpChangeAnims[ANIM_CHANGE_LOOP]->isPlaying()) {
|
||||
@@ -1320,7 +1320,7 @@ namespace ipl {
|
||||
#pragma push
|
||||
#pragma ppc_iro_level 0
|
||||
void ChannelTitle::calcNormalWaitTmd() {
|
||||
if (!unk_0x360) {
|
||||
if (!mbTmdReady) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -1365,11 +1365,11 @@ namespace ipl {
|
||||
#pragma pop
|
||||
|
||||
void ChannelTitle::calcNormalWaitLockedTitle() {
|
||||
if (!unk_0x37C) {
|
||||
if (!mbStartButtonFocusPlayed) {
|
||||
if (getParentalDialog() == NULL && System::getReservedScene() == NULL &&
|
||||
!mpGrpAnims[ANIM_GRP_SELECT_BTN_B][ANIM_SELECT_BTN]->isPlaying()) {
|
||||
mpGrpAnims[ANIM_GRP_FOCUS_BTN_B][ANIM_BTM_FOCUS_IN]->play();
|
||||
unk_0x37C = true;
|
||||
mbStartButtonFocusPlayed = true;
|
||||
}
|
||||
} else {
|
||||
if (System::getChannelManager()->getUnlockChannelState(mChanPage, mChanIndex) == channel::UNLOCK_STATE_4) {
|
||||
@@ -1595,7 +1595,7 @@ namespace ipl {
|
||||
case MODULE_STATE_CALC: {
|
||||
System::getCSManager()->calc();
|
||||
if (mpModuleThread->IsThreadTerminated()) {
|
||||
if (System::getCSManager()->getAltSoundState() == channel::CHANS_VM_ALT_SND_STATE_UNK1) {
|
||||
if (System::getCSManager()->getAltSoundState() == channel::CHANS_VM_ALT_SND_STATE_FALLBACK) {
|
||||
startChanSound();
|
||||
System::getCSManager()->setAltSoundState(channel::CHANS_VM_ALT_SND_STATE_UNAVAILABLE);
|
||||
}
|
||||
@@ -1630,7 +1630,7 @@ namespace ipl {
|
||||
// Check if we properly read the module file
|
||||
if (mpModuleFile->isFinished()) {
|
||||
if (mpModuleFile->checkData() != nand::RESULT_SUCCESS && mpModuleFile->checkData() != nand::RESULT_NONE) {
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
mbModuleTerminated = true;
|
||||
mModuleState = MODULE_STATE_INIT;
|
||||
break;
|
||||
@@ -1692,7 +1692,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (mbRSOThreadExit && mbRSODoneCalc) {
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
mbModuleTerminated = true;
|
||||
|
||||
((void (*)())mpRSOHeader->epilog)();
|
||||
@@ -1722,17 +1722,17 @@ namespace ipl {
|
||||
void ChannelTitle::calcModuleInit() {
|
||||
if (mbModuleSceneChange) {
|
||||
mbModuleSceneChange = false;
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
mModuleState = MODULE_STATE_4;
|
||||
return;
|
||||
}
|
||||
|
||||
if ((unk_0x38C += 1) > unk_0x390) {
|
||||
if ((mModuleFrame += 1) > mModuleInterval) {
|
||||
mCurRsoExpHeap ^= 1;
|
||||
mModuleState = MODULE_STATE_WAIT;
|
||||
}
|
||||
|
||||
if (System::getChannelManager()->checkUseAltSound(mChanPage, mChanIndex) && unk_0x38C == (unk_0x390 - 240)) {
|
||||
if (System::getChannelManager()->checkUseAltSound(mChanPage, mChanIndex) && mModuleFrame == (mModuleInterval - 240)) {
|
||||
snd::getSystem()->stopBannerSound(180);
|
||||
}
|
||||
}
|
||||
@@ -1743,7 +1743,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
if (mpModuleFile->checkData() != nand::RESULT_SUCCESS && mpModuleFile->checkData() != nand::RESULT_NONE) {
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
mbModuleTerminated = true;
|
||||
mModuleState = MODULE_STATE_INIT;
|
||||
return;
|
||||
@@ -1782,7 +1782,7 @@ namespace ipl {
|
||||
|
||||
System::getCSManager()->destroy();
|
||||
|
||||
unk_0x38C = 0;
|
||||
mModuleFrame = 0;
|
||||
|
||||
mpRsoExpHeaps[1 - mCurRsoExpHeap]->freeAll();
|
||||
mpCSHeap->destroy();
|
||||
@@ -1800,7 +1800,7 @@ namespace ipl {
|
||||
|
||||
if (mpChanBannerAnims[BANNER_ANIM_START] != NULL) {
|
||||
mpChanBannerAnims[BANNER_ANIM_START]->play();
|
||||
unk_0x90 = false;
|
||||
mbBannerStartPending = false;
|
||||
} else if (mpChanBannerAnims[BANNER_ANIM_LOOP_AFTER_START] != NULL) {
|
||||
mpChanBannerAnims[BANNER_ANIM_LOOP_AFTER_START]->play();
|
||||
} else if (mpChanBannerAnims[BANNER_ANIM_LOOP] != NULL) {
|
||||
@@ -2278,7 +2278,7 @@ namespace ipl {
|
||||
int sceneID = System::getChannelManager()->getSceneID(mChanPage, mChanIndex);
|
||||
|
||||
mParentalState = PARENTAL_STATE_NONE;
|
||||
unk_0x37C = false;
|
||||
mbStartButtonFocusPlayed = false;
|
||||
|
||||
BOOL flag = System::getChannelManager()->getSceneID(mChanPage, mChanIndex) == SCENE_DISK_CHANNEL;
|
||||
if (flag) {
|
||||
@@ -2287,7 +2287,7 @@ namespace ipl {
|
||||
prepareForBoot1(SCENE_DISK_CHANNEL);
|
||||
System::getBS2Manager()->reserveRVLGame();
|
||||
|
||||
unk_0x360 = false;
|
||||
mbTmdReady = false;
|
||||
|
||||
System::getTask1()->request(markTmdReadyTask, this, NULL);
|
||||
|
||||
@@ -2299,7 +2299,7 @@ namespace ipl {
|
||||
prepareForBoot1(SCENE_DISK_CHANNEL);
|
||||
System::getBS2Manager()->reserveGCGame();
|
||||
|
||||
unk_0x360 = false;
|
||||
mbTmdReady = false;
|
||||
|
||||
System::getTask1()->request(markTmdReadyTask, this, NULL);
|
||||
|
||||
@@ -2322,7 +2322,7 @@ namespace ipl {
|
||||
mChanSceneID = SCENE_SETTING;
|
||||
} else {
|
||||
System::getHomeButtonMenu()->disable();
|
||||
unk_0x360 = false;
|
||||
mbTmdReady = false;
|
||||
mCurGameCode = 0;
|
||||
System::getTask1()->request(getTmdTask, this, NULL);
|
||||
|
||||
@@ -2353,14 +2353,14 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
void ChannelTitle::reserveSettingScene(bool unk) {
|
||||
void ChannelTitle::reserveSettingScene(bool skipConfirmation) {
|
||||
if (System::getChannelManager()->checkNeedUpdate(mChanPage, mChanIndex)) {
|
||||
reserveAllSceneDestruction(SCENE_SETTING, (void*)3);
|
||||
mState = STATE_GOTO_SETTING;
|
||||
return;
|
||||
}
|
||||
|
||||
if (unk) {
|
||||
if (skipConfirmation) {
|
||||
reserveAllSceneDestruction(SCENE_SETTING, (void*)1);
|
||||
mState = STATE_GOTO_SETTING;
|
||||
return;
|
||||
@@ -2410,7 +2410,7 @@ namespace ipl {
|
||||
SCSetTmpTitleID(0);
|
||||
System::getTask1()->request(deleteTmpTitleContentTask, this, NULL);
|
||||
} else {
|
||||
unk_0x370 = true;
|
||||
mbTmpTitleCleanupDone = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2449,25 +2449,25 @@ namespace ipl {
|
||||
}
|
||||
|
||||
bool ChannelTitle::isEnableAppStart() {
|
||||
return (u32)(100.0f / System::getAnimDelta()) < unk_0x88;
|
||||
return (u32)(100.0f / System::getAnimDelta()) < mBootWaitFrame;
|
||||
}
|
||||
|
||||
void ChannelTitle::changeStartButton() {
|
||||
if (!isEnableToExecute(mChanPage, mChanIndex)) {
|
||||
if (unk_0x8C != 0) {
|
||||
if (mStartButtonState != 0) {
|
||||
mpGrpAnims[ANIM_GRP_ONOFF_BTN_B][ANIM_ON_BTN]->stop();
|
||||
mpGrpAnims[ANIM_GRP_ONOFF_BTN_B][ANIM_OFF_BTN]->play();
|
||||
unk_0x8C = 0;
|
||||
mStartButtonState = 0;
|
||||
}
|
||||
mbHovered[BTN_B] = FALSE;
|
||||
} else {
|
||||
if (unk_0x8C == 0) {
|
||||
if (mStartButtonState == 0) {
|
||||
mpGrpAnims[ANIM_GRP_ONOFF_BTN_B][ANIM_OFF_BTN]->stop();
|
||||
mpGrpAnims[ANIM_GRP_ONOFF_BTN_B][ANIM_ON_BTN]->play();
|
||||
mpGui->initPane(mpLayout->FindPaneByName(scPaneNames_B_Btn[BTN_B]));
|
||||
mbHovered[BTN_B] = FALSE;
|
||||
}
|
||||
unk_0x8C = 1;
|
||||
mStartButtonState = 1;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2670,12 +2670,12 @@ namespace ipl {
|
||||
IPLErrorLogAndDisplay(MESG_ERR_FILE, "ES", err, 4748);
|
||||
}
|
||||
|
||||
chanTtl->unk_0x360 = true;
|
||||
chanTtl->mbTmdReady = true;
|
||||
}
|
||||
|
||||
void ChannelTitle::markTmdReadyTask(void* work) {
|
||||
ChannelTitle* chanTtl = static_cast<ChannelTitle*>(work);
|
||||
chanTtl->unk_0x360 = true;
|
||||
chanTtl->mbTmdReady = true;
|
||||
}
|
||||
|
||||
#pragma push
|
||||
@@ -2695,7 +2695,7 @@ namespace ipl {
|
||||
} else {
|
||||
chanTtl->mLimitType = LIMIT_TYPE_COUNT;
|
||||
}
|
||||
chanTtl->unk_0x371 = true;
|
||||
chanTtl->mbTicketLimitReady = true;
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
@@ -2713,7 +2713,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
chanTtl->unk_0x370 = true;
|
||||
chanTtl->mbTmpTitleCleanupDone = true;
|
||||
}
|
||||
|
||||
BOOL ChannelTitle::isTimeLimitedTicket(ESTicketView* ticket, u32* remainTime) {
|
||||
@@ -2744,9 +2744,9 @@ namespace ipl {
|
||||
|
||||
BOOL flag = System::getChannelManager()->getSceneID(mChanPage, mChanIndex) == SCENE_DISK_CHANNEL;
|
||||
if (flag) {
|
||||
unk_0x371 = true;
|
||||
mbTicketLimitReady = true;
|
||||
} else {
|
||||
unk_0x371 = false;
|
||||
mbTicketLimitReady = false;
|
||||
System::getNandManager()->getTask()->request(getTicketLimitTask, this, NULL);
|
||||
}
|
||||
}
|
||||
@@ -2828,7 +2828,7 @@ namespace ipl {
|
||||
mpInstance->mState = ChannelTitle::STATE_START_ZOOM_OUT;
|
||||
mpInstance->tryToGoBackward();
|
||||
} else if (strcmp(paneName, scPaneNames_B_Btn[ChannelTitle::BTN_B]) == 0) {
|
||||
if (mpInstance->unk_0x8C != 2) {
|
||||
if (mpInstance->mStartButtonState != 2) {
|
||||
snd::getSystem()->startSE("WIPL_SE_GRAY_BUTTON");
|
||||
} else {
|
||||
mpInstance->reserveNextScene();
|
||||
@@ -2842,7 +2842,7 @@ namespace ipl {
|
||||
case ::gui::EventHandler::ON_POINT: {
|
||||
for (int i = 0; i < ChannelTitle::BTN_MAX; i++) {
|
||||
if (strcmp(paneName, scPaneNames_B_Btn[i]) == 0) {
|
||||
if (i == 0 || mpInstance->unk_0x8C > 0) {
|
||||
if (i == 0 || mpInstance->mStartButtonState > 0) {
|
||||
mpInstance->mbHovered[i]++;
|
||||
if (mpInstance->mbHovered[i] <= TRUE) {
|
||||
mpInstance->mpGrpAnims[i][ChannelTitle::ANIM_BTM_FOCUS_OUT]->play();
|
||||
@@ -2858,7 +2858,7 @@ namespace ipl {
|
||||
case ::gui::EventHandler::ON_LEFT: {
|
||||
for (int i = 0; i < ChannelTitle::BTN_MAX; i++) {
|
||||
if (strcmp(paneName, scPaneNames_B_Btn[i]) == 0) {
|
||||
if (i == 0 || mpInstance->unk_0x8C > 0) {
|
||||
if (i == 0 || mpInstance->mStartButtonState > 0) {
|
||||
mpInstance->mbHovered[i]--;
|
||||
if (mpInstance->mbHovered[i] <= FALSE) {
|
||||
mpInstance->mpGrpAnims[i][ChannelTitle::ANIM_BTM_FOCUS_IN]->play();
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace ipl {
|
||||
break;
|
||||
}
|
||||
case REBOOT_SETTINGS: {
|
||||
reserveSceneChange(SCENE_SETTING, (void*)Setting::ARG_UNK_6);
|
||||
reserveSceneChange(SCENE_SETTING, (void*)Setting::ARG_DIRECT_PAGE);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace ipl {
|
||||
*initialSubScene = Setting::ARG_SETUP;
|
||||
} else {
|
||||
*initialScene = SCENE_SETTING;
|
||||
*initialSubScene = Setting::ARG_UNK_5;
|
||||
*initialSubScene = Setting::ARG_RESUME_SETUP;
|
||||
}
|
||||
} else {
|
||||
// If the last play title had it's ticket expired, show the channel limit
|
||||
|
||||
@@ -45,15 +45,15 @@ namespace ipl {
|
||||
|
||||
typedef struct AOSSConfig {
|
||||
u16 version; // 0x000
|
||||
u8 unk_0x02; // 0x002
|
||||
u16 unk_0x04; // 0x004
|
||||
u8 interfaceType; // 0x002
|
||||
u16 ssidLength; // 0x004
|
||||
u8 name[3]; // 0x006
|
||||
u8 pad_0x09[0xFD]; // 0x009
|
||||
u16 unk_0x106; // 0x106
|
||||
u16 unk_0x108; // 0x108
|
||||
u16 unk_0x10A; // 0x10A
|
||||
u16 unk_0x10C; // 0x10C
|
||||
u16 unk_0x10E; // 0x10E
|
||||
u16 connectionAttemptLimit; // 0x106
|
||||
u16 responseWaitCount; // 0x108
|
||||
u16 requestAttemptLimit; // 0x10A
|
||||
u16 requestRetryDelay; // 0x10C
|
||||
u16 socketTimeoutMs; // 0x10E
|
||||
u8 mac[6]; // 0x110
|
||||
u8 result; // 0x116
|
||||
AOSSResult security; // 0x117
|
||||
@@ -62,7 +62,7 @@ namespace ipl {
|
||||
static u32 sAOSSStartTimeHi;
|
||||
static u32 sAOSSStartTimeLo;
|
||||
static s32 sAOSSState;
|
||||
static s32 sAOSSUnk;
|
||||
static s32 sAOSSReservedState;
|
||||
|
||||
struct AOSSStack {
|
||||
u32 storage[4080];
|
||||
@@ -173,14 +173,14 @@ namespace ipl {
|
||||
|
||||
memset(&mAoss, 0, sizeof(mAoss));
|
||||
mAoss.version = 0xF;
|
||||
mAoss.unk_0x106 = 0x32;
|
||||
mAoss.unk_0x10A = 0x32;
|
||||
mAoss.unk_0x108 = 0x64;
|
||||
mAoss.unk_0x10C = 0x64;
|
||||
mAoss.unk_0x10E = 0x4E20;
|
||||
mAoss.unk_0x02 = 0x50;
|
||||
mAoss.connectionAttemptLimit = 0x32;
|
||||
mAoss.requestAttemptLimit = 0x32;
|
||||
mAoss.responseWaitCount = 0x64;
|
||||
mAoss.requestRetryDelay = 0x64;
|
||||
mAoss.socketTimeoutMs = 0x4E20;
|
||||
mAoss.interfaceType = 0x50;
|
||||
memcpy(mAoss.name, "Wii", 3);
|
||||
mAoss.unk_0x04 = 4;
|
||||
mAoss.ssidLength = 4;
|
||||
NETGetWirelessMacAddress(mAoss.mac);
|
||||
|
||||
mpStack->sentinel = 0x97654321;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -55,21 +55,21 @@ namespace ipl {
|
||||
}
|
||||
|
||||
T get() const {
|
||||
f32 var_f27 = mFrame;
|
||||
f32 var_f28 = 1.0f / mMaxFrame;
|
||||
f32 frame = mFrame;
|
||||
f32 inverseDuration = 1.0f / mMaxFrame;
|
||||
T r =
|
||||
(mStart *
|
||||
(1.0f + ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))))) -
|
||||
(mEnd * ((var_f28 * (var_f28 * (var_f28 * (var_f27 * (2.0f * var_f27 * var_f27))))) -
|
||||
(var_f28 * (var_f28 * (3.0f * var_f27 * var_f27)))));
|
||||
(1.0f + ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))))) -
|
||||
(mEnd * ((inverseDuration * (inverseDuration * (inverseDuration * (frame * (2.0f * frame * frame))))) -
|
||||
(inverseDuration * (inverseDuration * (3.0f * frame * frame)))));
|
||||
r +=
|
||||
(mStartTangent *
|
||||
(var_f27 +
|
||||
((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (2.0f * var_f27 * var_f27))))) +
|
||||
(mEndTangent * ((var_f28 * (var_f28 * (var_f27 * (var_f27 * var_f27)))) -
|
||||
(var_f28 * (var_f27 * var_f27))));
|
||||
(frame +
|
||||
((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (2.0f * frame * frame))))) +
|
||||
(mEndTangent * ((inverseDuration * (inverseDuration * (frame * (frame * frame)))) -
|
||||
(inverseDuration * (frame * frame))));
|
||||
|
||||
return r;
|
||||
}
|
||||
@@ -141,10 +141,10 @@ namespace ipl {
|
||||
|
||||
void BScroller::init() {
|
||||
mState = -1;
|
||||
unk_0x08.x = 0.0f;
|
||||
unk_0x08.y = 0.0f;
|
||||
unk_0x10.x = 0.0f;
|
||||
unk_0x10.y = 0.0f;
|
||||
mPointerPosition.x = 0.0f;
|
||||
mPointerPosition.y = 0.0f;
|
||||
mScrollOrigin.x = 0.0f;
|
||||
mScrollOrigin.y = 0.0f;
|
||||
mSpeed = 0.0f;
|
||||
mSoundFreq = 0.0f;
|
||||
}
|
||||
@@ -178,10 +178,10 @@ namespace ipl {
|
||||
|
||||
mState = chan;
|
||||
|
||||
unk_0x08.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
|
||||
unk_0x08.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
|
||||
mPointerPosition.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
|
||||
mPointerPosition.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
|
||||
|
||||
unk_0x10 = unk_0x08;
|
||||
mScrollOrigin = mPointerPosition;
|
||||
|
||||
System::getPointer()->setState(mState, Pointer::STATE_SCROLL);
|
||||
System::getPointer()->setScrollState(mState);
|
||||
@@ -199,20 +199,20 @@ namespace ipl {
|
||||
System::getPointer()->setScrollState(Pointer::NO_SCROLL);
|
||||
init();
|
||||
} else if (ctrl->isValidDpd()) {
|
||||
unk_0x08.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
|
||||
unk_0x08.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
|
||||
mPointerPosition.x = math::abs_clamp<float>(ctrl->getDpdPos().x, 1.f);
|
||||
mPointerPosition.y = math::abs_clamp<float>(ctrl->getDpdPos().y, 1.f);
|
||||
|
||||
mSpeed = _get();
|
||||
set_arw_param();
|
||||
} else {
|
||||
if (math::abs<float>(unk_0x08.x) < math::abs<float>(unk_0x08.y)) {
|
||||
if (math::abs<float>(mPointerPosition.x) < math::abs<float>(mPointerPosition.y)) {
|
||||
f32 newVal;
|
||||
if (unk_0x08.y < 0.0f) {
|
||||
if (mPointerPosition.y < 0.0f) {
|
||||
newVal = -1.0f;
|
||||
} else {
|
||||
newVal = 1.0f;
|
||||
}
|
||||
unk_0x08.y = newVal;
|
||||
mPointerPosition.y = newVal;
|
||||
mSpeed = _get();
|
||||
set_arw_param();
|
||||
}
|
||||
@@ -234,7 +234,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
f32 BScroller::_get() {
|
||||
f32 diff = unk_0x08.y - unk_0x10.y;
|
||||
f32 diff = mPointerPosition.y - mScrollOrigin.y;
|
||||
f32 result = 0.f;
|
||||
if (diff < -0.01f) {
|
||||
result = -10.0f * (diff * diff);
|
||||
@@ -259,7 +259,7 @@ namespace ipl {
|
||||
nw4r::ut::Rect rect;
|
||||
System::getProjectionRect(&rect);
|
||||
|
||||
f32 arrowLen = math::abs<float>(unk_0x10.y - unk_0x08.y) * rect.GetHeight();
|
||||
f32 arrowLen = math::abs<float>(mScrollOrigin.y - mPointerPosition.y) * rect.GetHeight();
|
||||
System::getPointer()->setArrowLength(arrowLen);
|
||||
|
||||
System::getPointer()->setCursorScrolling(math::abs<float>(mSpeed) > 0.0f);
|
||||
@@ -293,9 +293,9 @@ namespace ipl {
|
||||
mUpLimit = 0.0f;
|
||||
unk_0x3C = 0.0f;
|
||||
mScroll = 0.0f;
|
||||
unk_0x44 = 0.0f;
|
||||
unk_0x48 = 0.6f;
|
||||
unk_0x4C = 1.5f;
|
||||
mButtonScrollOrigin = 0.0f;
|
||||
mVelocityDecay = 0.6f;
|
||||
mScrollAcceleration = 1.5f;
|
||||
|
||||
anim.init(0.0f, 1.0f, 1.0f, 0.0f, 0.0f, 0, 1.0f);
|
||||
}
|
||||
@@ -319,7 +319,7 @@ namespace ipl {
|
||||
|
||||
switch (mState) {
|
||||
case Pointer::SCROLL_CON_UP: {
|
||||
unk_0x3C = unk_0x3C * unk_0x48 - unk_0x4C;
|
||||
unk_0x3C = unk_0x3C * mVelocityDecay - mScrollAcceleration;
|
||||
if (unk_0x3C > 0.0f) {
|
||||
unk_0x3C = 0.0f;
|
||||
}
|
||||
@@ -328,8 +328,8 @@ namespace ipl {
|
||||
break;
|
||||
}
|
||||
case Pointer::SCROLL_CON_DOWN: {
|
||||
unk_0x3C = unk_0x3C * unk_0x48;
|
||||
unk_0x3C += unk_0x4C;
|
||||
unk_0x3C = unk_0x3C * mVelocityDecay;
|
||||
unk_0x3C += mScrollAcceleration;
|
||||
if (unk_0x3C < 0.0f) {
|
||||
unk_0x3C = 0.0f;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ namespace ipl {
|
||||
break;
|
||||
}
|
||||
case Pointer::SCROLL_BTN_UP: {
|
||||
unk_0x44 = oldScroll;
|
||||
mButtonScrollOrigin = oldScroll;
|
||||
anim.init(0.0f, -300.0f, 20.0f, 0.0f, 0.0f, 0, 1.0f);
|
||||
anim.initFrame();
|
||||
anim.restart();
|
||||
@@ -346,7 +346,7 @@ namespace ipl {
|
||||
break;
|
||||
}
|
||||
case Pointer::SCROLL_BTN_DOWN: {
|
||||
unk_0x44 = oldScroll;
|
||||
mButtonScrollOrigin = oldScroll;
|
||||
anim.init(0.0f, 300.0f, 20.0f, 0.0f, 0.0f, 0, 1.0f);
|
||||
anim.initFrame();
|
||||
anim.restart();
|
||||
@@ -355,7 +355,7 @@ namespace ipl {
|
||||
}
|
||||
case Pointer::SCROLLING_BY_BTN: {
|
||||
anim.calc();
|
||||
mScroll = unk_0x44 + anim.get();
|
||||
mScroll = mButtonScrollOrigin + anim.get();
|
||||
|
||||
if (!anim.isPlaying()) {
|
||||
unk_0x3C = 0.0f;
|
||||
|
||||
351
tools/decomp-assist/rx20.renames.md
Normal file
351
tools/decomp-assist/rx20.renames.md
Normal file
@@ -0,0 +1,351 @@
|
||||
# rx20 rename evidence
|
||||
|
||||
Readability round on `agent/w1005/rx20`, based on `a02d711ef561721a901ce15e54e3d5f018645c41`.
|
||||
|
||||
Identifier substitutions only. Types, member order, expressions, string literals, function identities and symbol extents remain unchanged. Two static pane-table identifiers are also renamed in the 43U symbol metadata so objdiff continues to identify their data.
|
||||
|
||||
Counts below are identifier occurrences in code, including inactive preprocessor branches, excluding comments, strings and the real SDK field `field_rendering`. Stack-derived locals and placeholder enum constants are included.
|
||||
|
||||
| File | Before | After |
|
||||
| --- | ---: | ---: |
|
||||
| `include/iplwww/www_browser.h` | 8 | 7 |
|
||||
| `include/iplwww/www_window.h` | 5 | 4 |
|
||||
| `include/math/iplInterporation.h` | 108 | 0 |
|
||||
| `include/scene/channelSelect/iplChannelObj.h` | 20 | 0 |
|
||||
| `include/scene/channelSelect/iplChannelSelect.h` | 23 | 1 |
|
||||
| `include/scene/channelTitle/iplChannelTitle.h` | 12 | 0 |
|
||||
| `include/scene/setting/iplSetting.h` | 29 | 0 |
|
||||
| `include/system/iplChannelScriptManager.h` | 2 | 0 |
|
||||
| `include/utility/iplScroller.h` | 7 | 2 |
|
||||
| `src/iplwww/www_browser.cpp` | 36 | 24 |
|
||||
| `src/iplwww/www_window.cpp` | 53 | 25 |
|
||||
| `src/scene/channelSelect/iplChannelObj.cpp` | 125 | 0 |
|
||||
| `src/scene/channelSelect/iplChannelSelect.cpp` | 246 | 7 |
|
||||
| `src/scene/channelTitle/iplChannelTitle.cpp` | 62 | 0 |
|
||||
| `src/scene/sceneMisc/iplReboot.cpp` | 1 | 0 |
|
||||
| `src/scene/sceneMisc/iplRootScene.cpp` | 1 | 0 |
|
||||
| `src/scene/setting/iplAOSSThread.cpp` | 16 | 1 |
|
||||
| `src/scene/setting/iplSetting.cpp` | 302 | 0 |
|
||||
| `src/utility/iplUtility.cpp` | 80 | 13 |
|
||||
|
||||
## Retained identifiers
|
||||
|
||||
- `Scroller::unk_0x3C` is the scroll velocity. Its out-of-line `init` in protected `src/scene/sdChannelMemory/iplSDMemory.cpp` writes it, so the ownership rule prevents this rename.
|
||||
- `ChannelSelect::unkBool` and the pure virtual `AOSSThread::unk_0x2C` retain their function names under the explicit function-renaming prohibition. The latter has no implementation or calls establishing a semantic role.
|
||||
- `DISK_ANIM_UNKNOWN` and its related names identify the actual Unknown disk animations. They are meaningful asset names, not placeholders.
|
||||
- `ChannelObj::mbModuleFlag` has only a false constructor initialization. Its name states the module role without claiming unsupported behavior.
|
||||
|
||||
## Rename evidence
|
||||
|
||||
### setting
|
||||
|
||||
- `unk_0x5C` -> `mBrowserStopRequested`: calcFadeout sets this before SurfaceManager::StopThreadAsync; calcNormal stops dispatching browser input.
|
||||
- `unk_0x5D` -> `reservedAfterBrowserStop`: three alignment bytes have no named accesses in src, libs or include.
|
||||
- `unk_0x74` -> `mDialogState`: calcSetting dispatches keyboard, confirmation and parental-dialog states.
|
||||
- `unk_0x78` -> `mAPScanState`: scanAP dispatches AP scan and list-animation states 1 through 9.
|
||||
- `unk_0x7C` -> `mEULAState`: setUseEULA_ dispatches initialization, cancellation, launch and motor-stop states.
|
||||
- `unk_0x84` -> `mUSBAPState`: setUSBAP and cancelUSBAP dispatch initialization, completion and cancellation.
|
||||
- `unk_0x94` -> `mSafeModeDialogState`: calcSafeMode switches between opening and waiting for its error dialog.
|
||||
- `unk_0xBA` -> `reservedAfterSettingData`: two alignment bytes have no named accesses.
|
||||
- `unknown` -> `reservedHeader`: SettingAPScanList prefix has no named accesses; count and recordBuffer start after it.
|
||||
- `unk_0x908` -> `reservedBrowserWord`: word between browser-buffer pointers has no named accesses.
|
||||
- `unk_0x914` -> `mAPScrollOffset`: updateScroll increments or decrements it; setAPDraw subtracts it from each AP row.
|
||||
- `unk_0x918` -> `mAPAnimationIndex`: passed to mpMainLayout->getAnim while waiting for AP list animations.
|
||||
- `unk_0x91C` -> `mUiStatus`: four bytes store AP scroll direction, USB AP result, page-change status and parental-dialog presence.
|
||||
- `unk_0x92C` -> `mActionFrame`: counts sensor-bar, screen-mode and reboot frames and update-dialog steps.
|
||||
- `unk_0x92D` -> `reservedAfterActionFrame`: three alignment bytes have no named accesses.
|
||||
- `unk_0x930` -> `mSupportCode`: setConnectTestResult stores supportCode; makeSupportCode formats it.
|
||||
- `unk_0x938` -> `mInputText`: keyboard UTF-16 text buffer used by wcString, wcslen and UTF conversion.
|
||||
- `unk_0xB3A` -> `reservedAfterInputText`: byte after input text has no named accesses.
|
||||
- `unk_0xB5D` -> `reservedAfterResetFlag`: three alignment bytes have no named accesses.
|
||||
- `unk_0xB94` -> `mScreenModeChangeState`: updateScreenMode dispatches aspect, progressive and RGB60 changes.
|
||||
- `unk_0xB9C` -> `mInputDelayFrame`: counts to 10 before forwarding IR input and hover sounds.
|
||||
- `unk_0xBA8` -> `mConnectedControllerMask`: compared with getWpadConnectedMask and passed to isIncreaseConnectedWpad.
|
||||
- `unk_0xBAC` -> `mNetSettingResultSent`: guards the one-time setFuncResult call for netSettingArg.
|
||||
- `unk_0xBAD` -> `reservedAfterNetSettingResult`: three alignment bytes have no named accesses.
|
||||
- `unk_0xBB0` -> `reservedTail`: final 16 bytes have no named accesses.
|
||||
- `unk_0x58` -> `mSettingStorage`: opaque non-implementation declaration stores the same Setting member region.
|
||||
- `unk_0x00` -> `eventType`: ImeData is sent by WWW_EVT_IMECREATE; event type zero selects IME Created in Setting::calcNormal.
|
||||
- `unk_0x2C4` -> `mPageLoadStatus`: six BrowserWindow bytes track loading, texture copy, URL change and completed page display.
|
||||
- `ARG_UNK_5` -> `ARG_RESUME_SETUP`: RootScene selects it when setup is incomplete after an update; createBrowser opens the regional setup page.
|
||||
- `ARG_UNK_6` -> `ARG_DIRECT_PAGE`: initDirectUrl copies netSettingArg; createBrowser selects the named settings category.
|
||||
|
||||
### aoss
|
||||
|
||||
- `unk_0x02` -> `interfaceType`: matches AOSSInitInput.mode, copied into s_runtime.interfaceType.
|
||||
- `unk_0x04` -> `ssidLength`: matches AOSSInitInput.ssidLength, includes the Wii string terminator.
|
||||
- `unk_0x106` -> `connectionAttemptLimit`: matches options[0], copied to waitIntervals.limits.connection and compared to attemptCount.
|
||||
- `unk_0x108` -> `responseWaitCount`: matches options[1], copied to waitIntervals.limits.response and remainingWait.
|
||||
- `unk_0x10A` -> `requestAttemptLimit`: matches options[2], initializes attemptCount and bounds receivedPackets.
|
||||
- `unk_0x10C` -> `requestRetryDelay`: matches options[3], copied to retryDelay in the protocol loop.
|
||||
- `unk_0x10E` -> `socketTimeoutMs`: matches options[4], split into seconds and microseconds for socket polling.
|
||||
- `sAOSSUnk` -> `sAOSSReservedState`: static state word has no accesses.
|
||||
|
||||
### channel select
|
||||
|
||||
- `unk_0x16C` -> `mpThumbnailHeap`: backs the 0x212B8 frame heaps passed to ChannelObj.
|
||||
- `unk_0x17C` -> `mpChannelObjHeap`: placement-new heap for ChannelObj instances.
|
||||
- `unk_0x180` -> `mModuleState`: calcChannelModules transitions between available, calculating and stopped states.
|
||||
- `unk_0x185` -> `mbWaitForModuleStop`: unkBool blocks scene changes until the module state reaches 3.
|
||||
- `unk_0x18C` -> `mpPriorityModuleChanObj`: reserveSceneChangeDerived selects one channel for the next calcExtModule pass.
|
||||
- `unk_0x25C` -> `mbModuleHeapInUse`: getFreeModuleExHeap searches false entries; updateModuleExHeap sets allocation ownership.
|
||||
- `unk_0x2AC` -> `mDragRightScrollFrame`: 15 frames at the right arrow starts STATE_DRAG_SCROLL_RIGHT.
|
||||
- `unk_0x2B0` -> `mDragLeftScrollFrame`: 15 frames at the left arrow starts STATE_DRAG_SCROLL_LEFT.
|
||||
- `unk_0x2B4` -> `mReleaseWaitFrame`: calcNormalReleaseWait increments this until it exceeds 20.
|
||||
- `unk_0x2B8` -> `mbDragReleased`: loss of the controller pinch sets this and calcNormalDrag calls finishDrag.
|
||||
- `unk_0x2C0` -> `mpMovedChanObj`: channel object created or repositioned at the move destination, then inserted in mChanList.
|
||||
- `unk_0x2C4` -> `mpMoveThumbnailLayout`: my_IplTop_b layout drawn for the moved channel.
|
||||
- `unk_0x2C8` -> `mpMoveThumbnailAnim`: my_IplTop_b animation supplies the moved thumbnail frame.
|
||||
- `mscUnk0PaneNames` -> `mscPicturePaneNames`: table contains Picture_00 through Picture_04.
|
||||
- `mscUnk1PaneNames` -> `mscEdgePaneNames`: table contains Edge0 through Edge4.
|
||||
- `iStack_34` -> `screenTopLeft`: constructed from projection left and negative top.
|
||||
- `iStack_40` -> `channelTopLeft`: constructed from channel position minus thumbnail X and plus thumbnail Y.
|
||||
- `iStack_4C` -> `screenTopRight`: constructed from projection right and negative top.
|
||||
- `iStack_58` -> `channelTopRight`: constructed from channel position plus thumbnail X and Y.
|
||||
- `iStack_64` -> `screenBottomLeft`: constructed from projection left and negative bottom.
|
||||
- `iStack_70` -> `channelBottomLeft`: constructed from channel position minus thumbnail X and Y.
|
||||
- `iStack_7C` -> `screenBottomRight`: constructed from projection right and negative bottom.
|
||||
- `iStack_88` -> `channelBottomRight`: constructed from channel position plus thumbnail X and minus thumbnail Y.
|
||||
- `unk` -> `edgeDirection` in `ChannelSelect::sortChannelListByPage(`: -1 and +1 select which outer column to preserve during page sorting.
|
||||
- `unk` -> `pageOrEdgeIndex` in `ChannelSelect::isChannelInView(`: first holds mCurrentPage, then walks indices in the visible edge column.
|
||||
- `unk2` -> `currentPage` in `ChannelSelect::isChannelInCalc(`: subtracted from page to index the five relative page tables.
|
||||
- `unk` -> `pageOffset` in `ChannelSelect::isChannelInCalc(`: page minus currentPage selects the relative pane-name row.
|
||||
- `unk3` -> `currentPage` in `ChannelSelect::getChannelBasePane(int page`: subtracted from page to choose the relative pane-name row.
|
||||
- `unk` -> `zoomOut` in `ChannelSelect::initChanZoomParam(`: true interpolates from thumbnail corners to full-screen corners.
|
||||
- `int page, int unk);` -> `int page, int edgeDirection);`: matches the page-sorting implementation.
|
||||
- `int page, int index, int unk2)` -> `int page, int index, int currentPage)`: matches the page-relative visibility implementation.
|
||||
- `int page, int index, int unk3)` -> `int page, int index, int currentPage)`: matches the page-relative pane lookup.
|
||||
- `const math::VEC3& pos, BOOL unk)` -> `const math::VEC3& pos, BOOL zoomOut)`: matches the screen-directed zoom branch.
|
||||
- `mscUnk0PaneNames__Q33ipl5scene13ChannelSelect` -> `mscPicturePaneNames__Q33ipl5scene13ChannelSelect`: same object address and size; match the renamed pane-name table in source.
|
||||
- `mscUnk1PaneNames__Q33ipl5scene13ChannelSelect` -> `mscEdgePaneNames__Q33ipl5scene13ChannelSelect`: same object address and size; match the renamed pane-name table in source.
|
||||
|
||||
### channel object
|
||||
|
||||
- `unk_0x00` -> `mListLinkStorage`: mChanList uses intrusive link offset zero; SDChannelObj has mListLink in the same position.
|
||||
- `unk_0x58` -> `mCursorState`: setCursorAnim and calcCursorAnim dispatch cursor animation states.
|
||||
- `unk_0x5C` -> `mPendingCursorState`: setCursorAnim queues a state until the current animation completes.
|
||||
- `unk_0x68` -> `mBalloonState`: setBalloonAnim and calcBalloonAnim dispatch balloon states.
|
||||
- `unk_0x6C` -> `mPendingBalloonState`: queued balloon state is consumed when the current animation ends.
|
||||
- `unk_0x70` -> `mBalloonWaitFrame`: increments to 20 before balloon state 2 begins.
|
||||
- `unk_0x74` -> `mPointCount`: onPoint increments it and onLeft decrements it to balance focus events.
|
||||
- `unk_0x84` -> `mNewMessageState`: updateNew dispatches setupNew and timed refresh; SDChannelObj uses mNewMessageState.
|
||||
- `unk_0x88` -> `mNewMessageFrame`: updateNew counts 4200 frames between refreshes; same role as SDChannelObj::mNewMessageFrame.
|
||||
- `unk_0xF4` -> `mbModuleFlag`: module-adjacent boolean initialized false; no further source accesses establish a narrower role.
|
||||
- `temp_f2` -> `anchorX`: copied from vec.x in calcBalloon.
|
||||
- `temp_f5` -> `halfWidth`: half the balloon base pane width.
|
||||
- `val1` -> `rightMargin`: projection right minus balloon right edge.
|
||||
- `val2` -> `horizontalOffset`: translation needed to keep the balloon 60 units from the projection edge.
|
||||
- `val3` -> `leftMargin`: balloon left edge minus projection left.
|
||||
- `unk0` -> `canStartModule` in `ChannelObj::calcExtModule(`: allows a new module only after mModuleCount exceeds mMaxModuleCount.
|
||||
- `unk` -> `eventFlags` in `ChannelObj::onPoint(`: bits suppress cursor or balloon updates and control the focus count.
|
||||
- `unk` -> `eventFlags` in `ChannelObj::onLeft(`: bits suppress cursor or balloon updates and control the focus count.
|
||||
- `unk` -> `pinched` in `ChannelObj::onPinch(`: true sets focus and false clears focus.
|
||||
- `unk` -> `resetPointCount` in `ChannelObj::initCursorAnim(`: true resets mPointCount after resetting the cursor animation.
|
||||
- `unk` -> `resetPointCount` in `ChannelObj::initBalloonAnim(`: true resets mPointCount after resetting the balloon animation.
|
||||
- `unk` -> `state` in `ChannelObj::setCursorAnim(`: requested cursor animation state.
|
||||
- `unk` -> `animationIndex` in `ChannelObj::startCursorAnim(`: indexes mpCursorAnims.
|
||||
- `unk` -> `state` in `ChannelObj::setBalloonAnim(`: requested balloon animation state.
|
||||
- `bool unk0, bool unk1` -> `bool canStartModule, bool onSceneChange`: matches the implementation parameter role.
|
||||
- `onPoint(int unk)` -> `onPoint(int eventFlags)`: matches the implementation parameter role.
|
||||
- `onLeft(int unk)` -> `onLeft(int eventFlags)`: matches the implementation parameter role.
|
||||
- `onPinch(bool unk)` -> `onPinch(bool pinched)`: matches the implementation parameter role.
|
||||
- `initCursorAnim(bool unk)` -> `initCursorAnim(bool resetPointCount)`: matches the implementation parameter role.
|
||||
- `initBalloonAnim(bool unk)` -> `initBalloonAnim(bool resetPointCount)`: matches the implementation parameter role.
|
||||
- `setCursorAnim(int unk)` -> `setCursorAnim(int state)`: matches the implementation parameter role.
|
||||
- `startCursorAnim(int unk)` -> `startCursorAnim(int animationIndex)`: matches the implementation parameter role.
|
||||
- `setBalloonAnim(int unk)` -> `setBalloonAnim(int state)`: matches the implementation parameter role.
|
||||
- `unk_0x19` -> `isThumbnail`: true in ChannelObj thumbnail setup; false in ChannelTitle and SDChannelTitle banner setup.
|
||||
|
||||
### channel title
|
||||
|
||||
- `unk_0x88` -> `mBootWaitFrame`: incremented in STATE_BOOT_SCENE and compared with 100 / animation delta.
|
||||
- `unk_0x8C` -> `mStartButtonState`: changeStartButton and button events dispatch disabled, enabled and selected states; SDChannelTitle uses mStartButtonState.
|
||||
- `unk_0x90` -> `mbBannerStartPending`: set after binding a banner and cleared when BANNER_ANIM_START is played.
|
||||
- `unk_0x320` -> `reservedAfterDiskAnims`: four bytes after disk banner animations have no named accesses.
|
||||
- `unk_0x324` -> `mWiiDiskReady`: set to one when ChannelSelect already has a ready Wii disk and the title state becomes WII_DISK_IDLE.
|
||||
- `unk_0x360` -> `mbTmdReady`: getTmdTask and markTmdReadyTask set this; calcNormalWaitTmd waits for it.
|
||||
- `unk_0x370` -> `mbTmpTitleCleanupDone`: deleteTmpTitleContentTask sets this; boot waits for temporary title cleanup.
|
||||
- `unk_0x371` -> `mbTicketLimitReady`: getTicketLimitTask sets this after checking the ticket limits.
|
||||
- `unk_0x37C` -> `mbStartButtonFocusPlayed`: set after playing focus on button B while waiting to boot.
|
||||
- `unk_0x38C` -> `mModuleFrame`: incremented until module reload; used to time the banner sound fade.
|
||||
- `unk_0x390` -> `mModuleInterval`: 36000 frame threshold compared with mModuleFrame.
|
||||
- `unk` -> `skipConfirmation`: true goes straight to the Internet settings scene.
|
||||
- `CHANS_VM_ALT_SND_STATE_UNK1` -> `CHANS_VM_ALT_SND_STATE_FALLBACK`: ChannelTitle starts its normal banner sound when the script thread exits in this state.
|
||||
|
||||
### interpolation
|
||||
|
||||
- `var_f27` -> `frame`: read from mFrame in Hermite interpolation.
|
||||
- `var_f28` -> `inverseDuration`: computed as 1.0f / mMaxFrame.
|
||||
- `temp_f4` -> `frameSquared`: computed as frame times frame.
|
||||
- `temp_f7` -> `scaledCubic`: inverseDuration squared times frame cubed in the tangent basis.
|
||||
- `temp_f3` -> `tangentContribution`: sum of start and end tangent terms added to the interpolated position.
|
||||
- `var_f27` -> `maxFrame`: commented alternative initializes this from mMaxFrame.
|
||||
- `var_f28` -> `inverseDuration`: commented alternative uses reciprocal mMaxFrame.
|
||||
- `temp_f4` -> `frameSquared`: squared interpolation frame in the commented alternative.
|
||||
- `temp_f7` -> `scaledCubic`: scaled cubic term in the commented alternative.
|
||||
- `temp_f3` -> `tangentContribution`: sum of tangent terms in the commented alternative.
|
||||
- `sp28` -> `weightedEnd`: end point multiplied by the Hermite weight in the commented alternative.
|
||||
- `sp1C` -> `weightedStart`: start point multiplied by the Hermite weight in the commented alternative.
|
||||
|
||||
### scroller
|
||||
|
||||
- `unk_0x08` -> `mPointerPosition`: clamped current controller DPD position.
|
||||
- `unk_0x10` -> `mScrollOrigin`: pointer position captured when B is pressed; scrolling uses displacement from it.
|
||||
- `unk_0x44` -> `mButtonScrollOrigin`: scroll offset captured before the +/-300 button animation.
|
||||
- `unk_0x48` -> `mVelocityDecay`: multiplies the previous scroll velocity before acceleration.
|
||||
- `unk_0x4C` -> `mScrollAcceleration`: added or subtracted from scroll velocity for controller scrolling.
|
||||
|
||||
## Validation
|
||||
|
||||
- Captured the fresh baseline report, all 1027 source-object hashes and the ten touched translation units before edits.
|
||||
- First build: seven of the eight then-touched source objects were byte-identical. ChannelSelect differed only after the two static pane tables were renamed. Its objdiff data score fell from 2336 to 192 bytes until the two corresponding metadata identifiers were renamed; their addresses and sizes stayed unchanged.
|
||||
- After regenerating that target object, every unit measure in the full report was identical to the fresh baseline.
|
||||
- Token audit checks every edited file against the saved source and allows only the documented identifier pairs. Protected source paths remain unchanged.
|
||||
- The first full clean ten-unit gate passed with zero regressions, zero forbidden additions and zero readability warnings. DOL SHA1 is `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- The full object-hash audit also found changes in `iplNandSDWorker.o` and `iplNandSDCardManager.o`. Rebuilding each with the saved original headers reproduced its baseline hash exactly. Rebuilding with the renamed headers reproduced the new hash exactly. Only `.debug`, `.rela.debug` and debug symbol offsets differ; all allocated sections remain identical. Neither source file was edited.
|
||||
- Final verification includes both of those dependent units and a second full clean gate.
|
||||
|
||||
|
||||
## Final results
|
||||
|
||||
- `GATE PASS` from the final full, non-quick twelve-unit clean rebuild. Zero regressions, zero net forbidden patterns and zero readability warnings.
|
||||
- DOL SHA1 `26116613f624061ba99c8d1a299aaa6efa85670d`.
|
||||
- Every measure and every per-function record in the 1027-unit report is unchanged from the fresh baseline. All twelve pools are identical to their original objects.
|
||||
- Of 1027 source objects, 1024 are raw byte-identical. ChannelSelect has only the two documented object-symbol renames. The two dependent NAND objects have only debug metadata changes. Allocated sections and runtime symbols/relocations, with the two table names mapped, match the saved baseline exactly in all twelve verified units.
|
||||
- The ten edited translation units retain 478/479 instruction-exact functions, 120072/121160 matched code bytes and 16592/16592 matched data bytes. The existing `Setting::scanAP` match remains 99.20221%; this rename-only round does not alter its instruction scheduling.
|
||||
- Requested-file placeholder occurrences fell from 1003 to 22. The remainder is the protected Scroller field and the two preserved function names listed above. Across every edited code file, counts fell from 1136 to 84; placeholders outside the assigned scope were left alone except for required cross-tree references.
|
||||
- Evidence artifacts are under `build/rx20/`: `full-gate.log`, `full-gate-command.json`, `final-verification.log`, `rename-audit.log`, `related-check.log`, `scanAP.ctxdiff.log`, and the baseline reports and hashes.
|
||||
|
||||
| Unit | Instruction-exact before -> after | Matched code bytes before -> after | Matched data bytes before -> after | Fuzzy before -> after |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| `src/iplwww/www_browser` | 33/33 -> 33/33 | 5768/5768 -> 5768/5768 | 1368/1368 -> 1368/1368 | 100.0% -> 100.0% |
|
||||
| `src/iplwww/www_window` | 18/18 -> 18/18 | 3392/3392 -> 3392/3392 | 1264/1264 -> 1264/1264 | 100.0% -> 100.0% |
|
||||
| `src/scene/channelSelect/iplChannelObj` | 56/56 -> 56/56 | 10924/10924 -> 10924/10924 | 2216/2216 -> 2216/2216 | 100.0% -> 100.0% |
|
||||
| `src/scene/channelSelect/iplChannelSelect` | 102/102 -> 102/102 | 25668/25668 -> 25668/25668 | 2336/2336 -> 2336/2336 | 100.0% -> 100.0% |
|
||||
| `src/scene/channelTitle/iplChannelTitle` | 95/95 -> 95/95 | 28788/28788 -> 28788/28788 | 3144/3144 -> 3144/3144 | 100.0% -> 100.0% |
|
||||
| `src/scene/sceneMisc/iplReboot` | 4/4 -> 4/4 | 368/368 -> 368/368 | 96/96 -> 96/96 | 100.0% -> 100.0% |
|
||||
| `src/scene/sceneMisc/iplRootScene` | 4/4 -> 4/4 | 544/544 -> 544/544 | 80/80 -> 80/80 | 100.0% -> 100.0% |
|
||||
| `src/scene/setting/iplAOSSThread` | 10/10 -> 10/10 | 1892/1892 -> 1892/1892 | 88/88 -> 88/88 | 100.0% -> 100.0% |
|
||||
| `src/scene/setting/iplSetting` | 111/112 -> 111/112 | 36796/37884 -> 36796/37884 | 5696/5696 -> 5696/5696 | 99.97709% -> 99.97709% |
|
||||
| `src/utility/iplUtility` | 45/45 -> 45/45 | 5932/5932 -> 5932/5932 | 304/304 -> 304/304 | 100.0% -> 100.0% |
|
||||
| `src/system/iplNandSDWorker` | 7/203 -> 7/203 | 51428/51428 -> 51428/51428 | 12312/12312 -> 12312/12312 | 100.0% -> 100.0% |
|
||||
| `src/scene/channelEdit/iplNandSDCardManager` | 3/64 -> 3/64 | 11264/11264 -> 11264/11264 | 416/416 -> 416/416 | 100.0% -> 100.0% |
|
||||
|
||||
Final full gate output, copied verbatim:
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/iplwww/www_browser] pool: IDENTICAL
|
||||
[src/iplwww/www_browser] objdiff: code 5768/5768 data 1368/1368 functions 33/33 fuzzy 100.0000 linked code 5768
|
||||
[src/iplwww/www_browser] instruction-exact functions: 33/33
|
||||
[src/iplwww/www_browser] section .bss size 24 match 100.0
|
||||
[src/iplwww/www_browser] section .data size 848 match 100.0
|
||||
[src/iplwww/www_browser] section .sbss size 456 match 100.0
|
||||
[src/iplwww/www_browser] section .sdata size 40 match 100.0
|
||||
[src/iplwww/www_browser] section .text size 5768 match 100.0
|
||||
[src/iplwww/www_browser] baseline: code 5768/5768 data 1368 functions 33 fuzzy 100.0000
|
||||
[src/iplwww/www_window] pool: IDENTICAL
|
||||
[src/iplwww/www_window] objdiff: code 3392/3392 data 1264/1264 functions 18/18 fuzzy 100.0000 linked code 3392
|
||||
[src/iplwww/www_window] instruction-exact functions: 18/18
|
||||
[src/iplwww/www_window] section .data size 1256 match 100.0
|
||||
[src/iplwww/www_window] section .sdata size 8 match 100.0
|
||||
[src/iplwww/www_window] section .text size 3392 match 100.0
|
||||
[src/iplwww/www_window] baseline: code 3392/3392 data 1264 functions 18 fuzzy 100.0000
|
||||
[src/scene/channelSelect/iplChannelObj] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelObj] objdiff: code 10924/10924 data 2216/2216 functions 56/56 fuzzy 100.0000 linked code 10924
|
||||
[src/scene/channelSelect/iplChannelObj] instruction-exact functions: 56/56
|
||||
[src/scene/channelSelect/iplChannelObj] section .data size 1240 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .rodata size 784 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata size 120 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .sdata2 size 72 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] section .text size 10924 match 100.0
|
||||
[src/scene/channelSelect/iplChannelObj] baseline: code 10924/10924 data 2216 functions 56 fuzzy 100.0000
|
||||
[src/scene/channelSelect/iplChannelSelect] pool: IDENTICAL
|
||||
[src/scene/channelSelect/iplChannelSelect] objdiff: code 25668/25668 data 2336/2336 functions 102/102 fuzzy 100.0000 linked code 25668
|
||||
[src/scene/channelSelect/iplChannelSelect] instruction-exact functions: 102/102
|
||||
[src/scene/channelSelect/iplChannelSelect] section .data size 2144 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] section .rodata size 16 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] section .sbss size 8 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] section .sdata size 80 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] section .sdata2 size 88 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] section .text size 25668 match 100.0
|
||||
[src/scene/channelSelect/iplChannelSelect] baseline: code 25668/25668 data 2336 functions 102 fuzzy 100.0000
|
||||
[src/scene/channelTitle/iplChannelTitle] pool: IDENTICAL
|
||||
[src/scene/channelTitle/iplChannelTitle] objdiff: code 28788/28788 data 3144/3144 functions 95/95 fuzzy 100.0000 linked code 28788
|
||||
[src/scene/channelTitle/iplChannelTitle] instruction-exact functions: 95/95
|
||||
[src/scene/channelTitle/iplChannelTitle] section .bss size 440 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .data size 2384 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .rodata size 48 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .sdata size 240 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .sdata2 size 32 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] section .text size 28788 match 100.0
|
||||
[src/scene/channelTitle/iplChannelTitle] baseline: code 28788/28788 data 3144 functions 95 fuzzy 100.0000
|
||||
[src/scene/sceneMisc/iplReboot] pool: IDENTICAL
|
||||
[src/scene/sceneMisc/iplReboot] objdiff: code 368/368 data 96/96 functions 4/4 fuzzy 100.0000 linked code 368
|
||||
[src/scene/sceneMisc/iplReboot] instruction-exact functions: 4/4
|
||||
[src/scene/sceneMisc/iplReboot] section .data size 96 match 100.0
|
||||
[src/scene/sceneMisc/iplReboot] section .text size 368 match 100.0
|
||||
[src/scene/sceneMisc/iplReboot] baseline: code 368/368 data 96 functions 4 fuzzy 100.0000
|
||||
[src/scene/sceneMisc/iplRootScene] pool: IDENTICAL
|
||||
[src/scene/sceneMisc/iplRootScene] objdiff: code 544/544 data 80/80 functions 4/4 fuzzy 100.0000 linked code 544
|
||||
[src/scene/sceneMisc/iplRootScene] instruction-exact functions: 4/4
|
||||
[src/scene/sceneMisc/iplRootScene] section .data size 80 match 100.0
|
||||
[src/scene/sceneMisc/iplRootScene] section .text size 544 match 100.0
|
||||
[src/scene/sceneMisc/iplRootScene] baseline: code 544/544 data 80 functions 4 fuzzy 100.0000
|
||||
[src/scene/setting/iplAOSSThread] pool: IDENTICAL
|
||||
[src/scene/setting/iplAOSSThread] objdiff: code 1892/1892 data 88/88 functions 10/10 fuzzy 100.0000 linked code 1892
|
||||
[src/scene/setting/iplAOSSThread] instruction-exact functions: 10/10
|
||||
[src/scene/setting/iplAOSSThread] section .bss size 16 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .data size 48 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .sdata size 8 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] section .text size 1892 match 100.0
|
||||
[src/scene/setting/iplAOSSThread] baseline: code 1892/1892 data 88 functions 10 fuzzy 100.0000
|
||||
[src/scene/setting/iplSetting] pool: IDENTICAL
|
||||
[src/scene/setting/iplSetting] objdiff: code 36796/37884 data 5696/5696 functions 111/112 fuzzy 99.9771 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 111/112
|
||||
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
|
||||
[src/scene/setting/iplSetting] section .data size 4016 match 100.0
|
||||
[src/scene/setting/iplSetting] section .rodata size 640 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sbss size 16 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata size 504 match 100.0
|
||||
[src/scene/setting/iplSetting] section .sdata2 size 64 match 100.0
|
||||
[src/scene/setting/iplSetting] section .text size 37884 match 99.97709
|
||||
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 99.20221
|
||||
[src/scene/setting/iplSetting] baseline: code 36796/37884 data 5696 functions 111 fuzzy 99.9771
|
||||
[src/utility/iplUtility] pool: IDENTICAL
|
||||
[src/utility/iplUtility] objdiff: code 5932/5932 data 304/304 functions 45/45 fuzzy 100.0000 linked code 5932
|
||||
[src/utility/iplUtility] instruction-exact functions: 45/45
|
||||
[src/utility/iplUtility] section .data size 136 match 100.0
|
||||
[src/utility/iplUtility] section .sdata size 80 match 100.0
|
||||
[src/utility/iplUtility] section .sdata2 size 88 match 100.0
|
||||
[src/utility/iplUtility] section .text size 5932 match 100.0
|
||||
[src/utility/iplUtility] baseline: code 5932/5932 data 304 functions 45 fuzzy 100.0000
|
||||
[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/iplNandSDWorker] section .data size 12128 match 100.0
|
||||
[src/system/iplNandSDWorker] section .rodata size 48 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sbss size 8 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sdata size 96 match 100.0
|
||||
[src/system/iplNandSDWorker] section .sdata2 size 32 match 100.0
|
||||
[src/system/iplNandSDWorker] section .text size 51428 match 100.0
|
||||
[src/system/iplNandSDWorker] baseline: code 51428/51428 data 12312 functions 203 fuzzy 100.0000
|
||||
[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/channelEdit/iplNandSDCardManager] section .data size 400 match 100.0
|
||||
[src/scene/channelEdit/iplNandSDCardManager] section .sdata2 size 16 match 100.0
|
||||
[src/scene/channelEdit/iplNandSDCardManager] section .text size 11264 match 100.0
|
||||
[src/scene/channelEdit/iplNandSDCardManager] baseline: code 11264/11264 data 416 functions 64 fuzzy 100.0000
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 93.66808 -> 93.66808
|
||||
global fuzzy_match_percent: 99.79631 -> 99.79631
|
||||
global complete_code_percent: 79.26653 -> 79.26653
|
||||
global matched_data_percent: 99.99410 -> 99.99410
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
note: config touched: config/43U/symbols.txt (orchestrator reviews every config/symbols change)
|
||||
GATE PASS
|
||||
```
|
||||
Reference in New Issue
Block a user