Compare commits

...

1 Commits

Author SHA1 Message Date
coah
7001b7bd6f cleanup(ChannelSelect): rename pane/SE string labels
Rename lbl_* pane and sound-effect string symbols to scPaneName_/scSE_
names; add missing WSD_SELECT definition. Build stays byte-identical.
2026-10-01 17:28:37 -05:00
2 changed files with 44 additions and 43 deletions

View File

@@ -15940,19 +15940,19 @@ lbl_8164DCDF = .data:0x8164DCDF; // type:object size:0x35
jumptable_8164DD14 = .data:0x8164DD14; // type:object size:0x6C scope:local jumptable_8164DD14 = .data:0x8164DD14; // type:object size:0x6C scope:local
lbl_8164DD80 = .data:0x8164DD80; // type:object size:0x37 lbl_8164DD80 = .data:0x8164DD80; // type:object size:0x37
lbl_8164DDB7 = .data:0x8164DDB7; // type:object size:0xAD lbl_8164DDB7 = .data:0x8164DDB7; // type:object size:0xAD
lbl_8164DE64 = .data:0x8164DE64; // type:object size:0x9 data:string scPaneName_N_GCIcon = .data:0x8164DE64; // type:object size:0x9 data:string
lbl_8164DE6D = .data:0x8164DE6D; // type:object size:0x11 data:string scPaneName_N_DiscUpdateIcon = .data:0x8164DE6D; // type:object size:0x11 data:string
jumptable_8164DE80 = .data:0x8164DE80; // type:object size:0x1C scope:local jumptable_8164DE80 = .data:0x8164DE80; // type:object size:0x1C scope:local
lbl_8164DE9C = .data:0x8164DE9C; // type:object size:0xB data:string scSE_WSD_SELECT = .data:0x8164DE9C; // type:object size:0xB data:string
lbl_8164DEA7 = .data:0x8164DEA7; // type:object size:0x10 data:string lbl_8164DEA7 = .data:0x8164DEA7; // type:object size:0x10 data:string
lbl_8164DEB7 = .data:0x8164DEB7; // type:object size:0x114 lbl_8164DEB7 = .data:0x8164DEB7; // type:object size:0x114
lbl_8164DFCB = .data:0x8164DFCB; // type:object size:0x16 data:string scSE_WIPL_SE_CH_TARGETTING = .data:0x8164DFCB; // type:object size:0x16 data:string
lbl_8164DFE1 = .data:0x8164DFE1; // type:object size:0x10 data:string scSE_WIPL_SE_CH_HOLD = .data:0x8164DFE1; // type:object size:0x10 data:string
lbl_8164DFF1 = .data:0x8164DFF1; // type:object size:0xF data:string scSE_WIPL_SE_CH_SET = .data:0x8164DFF1; // type:object size:0xF data:string
lbl_8164E000 = .data:0x8164E000; // type:object size:0x14 data:string scSE_WIPL_SE_CH_NOT_MOVE = .data:0x8164E000; // type:object size:0x14 data:string
lbl_8164E014 = .data:0x8164E014; // type:object size:0x10 data:string lbl_8164E014 = .data:0x8164E014; // type:object size:0x10 data:string
lbl_8164E024 = .data:0x8164E024; // type:object size:0x14 data:string scSE_WIPL_SE_GRAY_BUTTON = .data:0x8164E024; // type:object size:0x14 data:string
lbl_8164E038 = .data:0x8164E038; // type:object size:0xF data:string scSE_WIPL_SE_DECIDE = .data:0x8164E038; // type:object size:0xF data:string
__vt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3> = .data:0x8164E048; // type:object size:0x20 __vt__Q33ipl4math29HermiteIntp<Q33ipl4math4VEC3> = .data:0x8164E048; // type:object size:0x20
__vt__Q33ipl5scene27CsChanSelSDMenuEventHandler = .data:0x8164E068; // type:object size:0x1C __vt__Q33ipl5scene27CsChanSelSDMenuEventHandler = .data:0x8164E068; // type:object size:0x1C
__vt__Q33ipl5scene27CsChanSelButtonEventHandler = .data:0x8164E084; // type:object size:0x1C __vt__Q33ipl5scene27CsChanSelButtonEventHandler = .data:0x8164E084; // type:object size:0x1C

View File

@@ -131,15 +131,15 @@ namespace ipl {
extern "C" char mscBasePaneNames__Q33ipl5scene13ChannelSelect[]; extern "C" char mscBasePaneNames__Q33ipl5scene13ChannelSelect[];
extern "C" char mscClockPaneNames__Q33ipl5scene13ChannelSelect[]; extern "C" char mscClockPaneNames__Q33ipl5scene13ChannelSelect[];
extern "C" u32 mscMaskPaneName__Q33ipl5scene13ChannelSelect; extern "C" u32 mscMaskPaneName__Q33ipl5scene13ChannelSelect;
extern "C" char lbl_8164DFE1[]; extern "C" char scSE_WIPL_SE_CH_HOLD[];
extern "C" char lbl_8164DE64[]; extern "C" char scPaneName_N_GCIcon[];
extern "C" char lbl_8164DE6D[]; extern "C" char scPaneName_N_DiscUpdateIcon[];
extern "C" char lbl_8164DE9C[]; extern "C" char scSE_WSD_SELECT[];
extern "C" char lbl_8164DFCB[]; extern "C" char scSE_WIPL_SE_CH_TARGETTING[];
extern "C" char lbl_8164DFF1[]; extern "C" char scSE_WIPL_SE_CH_SET[];
extern "C" char lbl_8164E000[]; extern "C" char scSE_WIPL_SE_CH_NOT_MOVE[];
extern "C" char lbl_8164E024[]; extern "C" char scSE_WIPL_SE_GRAY_BUTTON[];
extern "C" char lbl_8164E038[]; extern "C" char scSE_WIPL_SE_DECIDE[];
extern "C" void draw__Q33ipl6layout6ObjectFPQ34nw4r3lyt4Pane(); extern "C" void draw__Q33ipl6layout6ObjectFPQ34nw4r3lyt4Pane();
extern "C" void SetVisible__Q34nw4r3lyt4PaneFb(); extern "C" void SetVisible__Q34nw4r3lyt4PaneFb();
extern "C" void drawChannelThumbnails__Q33ipl5scene13ChannelSelectFv(); extern "C" void drawChannelThumbnails__Q33ipl5scene13ChannelSelectFv();
@@ -855,8 +855,8 @@ namespace ipl {
mpDiskInOutLyt->finishBinding(); mpDiskInOutLyt->finishBinding();
} }
extern "C" char lbl_8164DE64[] = "N_GCIcon"; extern "C" char scPaneName_N_GCIcon[] = "N_GCIcon";
extern "C" char lbl_8164DE6D[] = "N_DiscUpdateIcon"; extern "C" char scPaneName_N_DiscUpdateIcon[] = "N_DiscUpdateIcon";
extern "C" void* jumptable_8164DE80[7] = { extern "C" void* jumptable_8164DE80[7] = {
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x4C), (void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x4C),
(void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x21C), (void*)((const char*)updateDiskState__Q33ipl5scene13ChannelSelectFv + 0x21C),
@@ -1359,8 +1359,8 @@ namespace ipl {
cmpwi r0, 0x1 cmpwi r0, 0x1
beq updateDiskState_813AD2C8 beq updateDiskState_813AD2C8
lwz r3, 0x94(r3) lwz r3, 0x94(r3)
lis r29, lbl_8164DE64@ha lis r29, scPaneName_N_GCIcon@ha
addi r4, r29, lbl_8164DE64@l addi r4, r29, scPaneName_N_GCIcon@l
li r5, 0x1 li r5, 0x1
lwz r3, 0x14(r3) lwz r3, 0x14(r3)
lwz r12, 0x0(r3) lwz r12, 0x0(r3)
@@ -1370,8 +1370,8 @@ namespace ipl {
li r4, 0x1 li r4, 0x1
bl SetVisible__Q34nw4r3lyt4PaneFb bl SetVisible__Q34nw4r3lyt4PaneFb
lwz r3, 0x94(r31) lwz r3, 0x94(r31)
lis r30, lbl_8164DE6D@ha lis r30, scPaneName_N_DiscUpdateIcon@ha
addi r4, r30, lbl_8164DE6D@l addi r4, r30, scPaneName_N_DiscUpdateIcon@l
li r5, 0x1 li r5, 0x1
lwz r3, 0x14(r3) lwz r3, 0x14(r3)
lwz r12, 0x0(r3) lwz r12, 0x0(r3)
@@ -1419,7 +1419,7 @@ namespace ipl {
bne updateDiskState_813AD134 bne updateDiskState_813AD134
lwz r3, 0x84(r28) lwz r3, 0x84(r28)
li r0, 0x0 li r0, 0x0
addi r4, r29, lbl_8164DE64@l addi r4, r29, scPaneName_N_GCIcon@l
li r5, 0x1 li r5, 0x1
stb r0, 0x1b81(r3) stb r0, 0x1b81(r3)
lwz r3, 0x94(r31) lwz r3, 0x94(r31)
@@ -1431,7 +1431,7 @@ namespace ipl {
li r4, 0x0 li r4, 0x0
bl SetVisible__Q34nw4r3lyt4PaneFb bl SetVisible__Q34nw4r3lyt4PaneFb
lwz r3, 0x94(r31) lwz r3, 0x94(r31)
addi r4, r30, lbl_8164DE6D@l addi r4, r30, scPaneName_N_DiscUpdateIcon@l
li r5, 0x1 li r5, 0x1
lwz r3, 0x14(r3) lwz r3, 0x14(r3)
lwz r12, 0x0(r3) lwz r12, 0x0(r3)
@@ -2087,10 +2087,11 @@ namespace ipl {
mpMoveLytDrop->getAnim()->initAnmFrame(); mpMoveLytDrop->getAnim()->initAnmFrame();
} }
extern "C" char lbl_8164DFCB[] = "WIPL_SE_CH_TARGETTING"; extern "C" char scSE_WSD_SELECT[] = "WSD_SELECT";
extern "C" char lbl_8164DFE1[] = "WIPL_SE_CH_HOLD"; extern "C" char scSE_WIPL_SE_CH_TARGETTING[] = "WIPL_SE_CH_TARGETTING";
extern "C" char lbl_8164DFF1[] = "WIPL_SE_CH_SET"; extern "C" char scSE_WIPL_SE_CH_HOLD[] = "WIPL_SE_CH_HOLD";
extern "C" char lbl_8164E000[] = "WIPL_SE_CH_NOT_MOVE"; extern "C" char scSE_WIPL_SE_CH_SET[] = "WIPL_SE_CH_SET";
extern "C" char scSE_WIPL_SE_CH_NOT_MOVE[] = "WIPL_SE_CH_NOT_MOVE";
void ChannelSelect::calcNormalGrab() { void ChannelSelect::calcNormalGrab() {
Button* button = getButton(); Button* button = getButton();
@@ -2167,7 +2168,7 @@ namespace ipl {
for (int i = 0; i < MAX_CHANNEL_INDEX; i++) { for (int i = 0; i < MAX_CHANNEL_INDEX; i++) {
mpGui->initPane(getChannelBasePane(i)); mpGui->initPane(getChannelBasePane(i));
} }
snd::getSystem()->startSE(lbl_8164DE9C); snd::getSystem()->startSE(scSE_WSD_SELECT);
return; return;
} }
} }
@@ -2193,7 +2194,7 @@ namespace ipl {
for (int i = 0; i < MAX_CHANNEL_INDEX; i++) { for (int i = 0; i < MAX_CHANNEL_INDEX; i++) {
mpGui->initPane(getChannelBasePane(i)); mpGui->initPane(getChannelBasePane(i));
} }
snd::getSystem()->startSE(lbl_8164DE9C); snd::getSystem()->startSE(scSE_WSD_SELECT);
return; return;
} }
} }
@@ -2357,7 +2358,7 @@ namespace ipl {
case ::gui::EventHandler::ON_POINT: { case ::gui::EventHandler::ON_POINT: {
if (isReleasableArea(mCurrentPage, id) || (mCurrentPage == mMoveOldPage && id == mMoveOldIndex)) { if (isReleasableArea(mCurrentPage, id) || (mCurrentPage == mMoveOldPage && id == mMoveOldIndex)) {
searchList(mCurrentPage, id)->onPoint(2); searchList(mCurrentPage, id)->onPoint(2);
snd::getSystem()->startSE(lbl_8164DFCB); snd::getSystem()->startSE(scSE_WIPL_SE_CH_TARGETTING);
con->rumble(1); con->rumble(1);
break; break;
} }
@@ -2438,7 +2439,7 @@ namespace ipl {
mbModuleSceneChange = true; mbModuleSceneChange = true;
unk_0x185 = true; unk_0x185 = true;
snd::getSystem()->startSEwithPos(lbl_8164DFE1, mDragPos.x); snd::getSystem()->startSEwithPos(scSE_WIPL_SE_CH_HOLD, mDragPos.x);
mState = STATE_NORMAL_GRAB; mState = STATE_NORMAL_GRAB;
} }
@@ -2450,13 +2451,13 @@ namespace ipl {
mpMoveLytDrop->GetRootPane()->SetTranslate(translate); mpMoveLytDrop->GetRootPane()->SetTranslate(translate);
mpMoveLytDrop->getAnim(0)->play(); mpMoveLytDrop->getAnim(0)->play();
snd::getSystem()->startSEwithPos(lbl_8164DFF1, mDragPos.x); snd::getSystem()->startSEwithPos(scSE_WIPL_SE_CH_SET, mDragPos.x);
mpMoveLytMask->getAnim(1)->play(); mpMoveLytMask->getAnim(1)->play();
mState = STATE_NORMAL_MOVE_CHAN_IN; mState = STATE_NORMAL_MOVE_CHAN_IN;
} else { } else {
snd::getSystem()->startSEwithPos(lbl_8164E000, mDragPos.x); snd::getSystem()->startSEwithPos(scSE_WIPL_SE_CH_NOT_MOVE, mDragPos.x);
mState = STATE_NORMAL_RELEASE_WAIT; mState = STATE_NORMAL_RELEASE_WAIT;
} }
@@ -2519,8 +2520,8 @@ namespace ipl {
} }
} }
extern "C" char lbl_8164E024[] = "WIPL_SE_GRAY_BUTTON"; extern "C" char scSE_WIPL_SE_GRAY_BUTTON[] = "WIPL_SE_GRAY_BUTTON";
extern "C" char lbl_8164E038[] = "WIPL_SE_DECIDE"; extern "C" char scSE_WIPL_SE_DECIDE[] = "WIPL_SE_DECIDE";
void ChannelSelectEventHandler::onEvent(u32 compId, u32 event, void* data) { void ChannelSelectEventHandler::onEvent(u32 compId, u32 event, void* data) {
gui::PaneComponent* component = static_cast<gui::PaneComponent*>(mpManager->getComponent(compId)); gui::PaneComponent* component = static_cast<gui::PaneComponent*>(mpManager->getComponent(compId));
@@ -2561,7 +2562,7 @@ namespace ipl {
case ::gui::EventHandler::ON_POINT: { case ::gui::EventHandler::ON_POINT: {
if (mpInstance->mState == ChannelSelect::STATE_NORMAL && chanObj->isValid()) { if (mpInstance->mState == ChannelSelect::STATE_NORMAL && chanObj->isValid()) {
chanObj->onPoint(0); chanObj->onPoint(0);
snd::getSystem()->startSE(lbl_8164DFCB); snd::getSystem()->startSE(scSE_WIPL_SE_CH_TARGETTING);
con->rumble(1); con->rumble(1);
} }
break; break;
@@ -2599,13 +2600,13 @@ namespace ipl {
if (System::isSafeMode()) { if (System::isSafeMode()) {
System::getDialog()->callBtn0(MESG_CHAN_SEL_SAFE_MODE, 180); System::getDialog()->callBtn0(MESG_CHAN_SEL_SAFE_MODE, 180);
mpInstance->mState = ChannelSelect::STATE_NORMAL_SAFE_MODE_DIALOG; mpInstance->mState = ChannelSelect::STATE_NORMAL_SAFE_MODE_DIALOG;
snd::getSystem()->startSE(lbl_8164E024); snd::getSystem()->startSE(scSE_WIPL_SE_GRAY_BUTTON);
} else { } else {
mpInstance->setSomething(); mpInstance->setSomething();
mpInstance->mState = ChannelSelect::STATE_START_BOARD_SCENE; mpInstance->mState = ChannelSelect::STATE_START_BOARD_SCENE;
mpInstance->tryToStartBoardScene(); mpInstance->tryToStartBoardScene();
TVRCManager::getHandle()->setEnable(FALSE); TVRCManager::getHandle()->setEnable(FALSE);
snd::getSystem()->startSE(lbl_8164E038); snd::getSystem()->startSE(scSE_WIPL_SE_DECIDE);
} }
} else if (Button::cmpButtonName(paneName, Button::BTN_SETTING) == 0) { } else if (Button::cmpButtonName(paneName, Button::BTN_SETTING) == 0) {
button->setEventHandler(NULL); button->setEventHandler(NULL);
@@ -2615,7 +2616,7 @@ namespace ipl {
System::getFader()->fadeOut(); System::getFader()->fadeOut();
TVRCManager::getHandle()->setEnable(FALSE); TVRCManager::getHandle()->setEnable(FALSE);
mpInstance->mState = ChannelSelect::STATE_START_SETTING_SCENE; mpInstance->mState = ChannelSelect::STATE_START_SETTING_SCENE;
snd::getSystem()->startSE(lbl_8164E038); snd::getSystem()->startSE(scSE_WIPL_SE_DECIDE);
} else if (Button::cmpButtonName(paneName, Button::BTN_ARROW_LEFT) == 0 && mpInstance->mCurrentPage > 0) { } else if (Button::cmpButtonName(paneName, Button::BTN_ARROW_LEFT) == 0 && mpInstance->mCurrentPage > 0) {
button->animation(Button::IDANIM_ARROW_LEFT_SELECT); button->animation(Button::IDANIM_ARROW_LEFT_SELECT);
mpInstance->preparePageScrolling(ChannelSelect::STATE_PREP_LEFT_PAGE_SCROLL); mpInstance->preparePageScrolling(ChannelSelect::STATE_PREP_LEFT_PAGE_SCROLL);
@@ -2650,7 +2651,7 @@ namespace ipl {
System::getFader()->fadeOut(); System::getFader()->fadeOut();
TVRCManager::getHandle()->setEnable(FALSE); TVRCManager::getHandle()->setEnable(FALSE);
mpInstance->mState = ChannelSelect::STATE_START_SD_MENU_SCENE; mpInstance->mState = ChannelSelect::STATE_START_SD_MENU_SCENE;
snd::getSystem()->startSE(lbl_8164E038); snd::getSystem()->startSE(scSE_WIPL_SE_DECIDE);
} }
} }
break; break;