Compare commits

..

1 Commits

Author SHA1 Message Date
coah
4ff29296ab cleanup(Contest): name NAT detection callback
Rename iplContest_813D54F8 to onNatDetectionDone.
2026-10-01 18:14:18 -05:00
4 changed files with 55 additions and 55 deletions

View File

@@ -4441,7 +4441,7 @@ IPLContestAlloc = .text:0x813D5240; // type:function size:0x60
IPLContestFree = .text:0x813D52A0; // type:function size:0x64
sNHTTPReqCallback = .text:0x813D5304; // type:function size:0x1E0
sNHTTPCleanupCallback = .text:0x813D54E4; // type:function size:0x14
iplContest_813D54F8 = .text:0x813D54F8; // type:function size:0x6C
onNatDetectionDone = .text:0x813D54F8; // type:function size:0x6C
AddressToString = .text:0x813D5564; // type:function size:0xE4
DiscoverReachability = .text:0x813D5648; // type:function size:0xE0
DiscoverMapping = .text:0x813D5728; // type:function size:0xE4

View File

@@ -509,13 +509,13 @@ void Base::setLanguage(Language language) {
case UK:
setPredictMode(PM_En);
break;
case DE:
case FR:
setPredictMode(PM_De);
break;
case IT:
case DE:
setPredictMode(PM_It);
break;
case NL:
case IT:
setPredictMode(PM_Nl);
break;
case SP:
@@ -525,7 +525,7 @@ void Base::setLanguage(Language language) {
setPredictMode(PM_USSp);
}
break;
case FR:
case NL:
if (meDestination == DST_EU) {
setPredictMode(PM_Fr);
} else {
@@ -3470,7 +3470,7 @@ void NormalButtonAnmPane::onAnmEvent(AnmPaneEvent event) {
changeAnimation(ANM_Pushed);
}
switch (meState) {
case ANM_FadeIn:
case ANM_FocusOut:
if (event == PE_4) changeAnimation(ANM_Normal);
if (event == PE_1) changeAnimation(ANM_FocusIn);
break;
@@ -3484,7 +3484,7 @@ void NormalButtonAnmPane::onAnmEvent(AnmPaneEvent event) {
case ANM_RollOver:
if (event == PE_2) changeAnimation(ANM_FocusOut);
break;
case ANM_FocusOut:
case ANM_FadeIn:
if (event == PE_4) changeAnimation(ANM_Normal);
if (event == PE_1) changeAnimation(ANM_FocusIn);
break;

View File

@@ -48,7 +48,7 @@ void IPLContestGSFree(void* block);
void* IPLContestGSRealloc(void* oldBlock, u32 newSize);
void* IPLContestGSMemalign(u32 align, u32 size);
void iplContest_813D54F8(BOOL success, NAT nat);
void onNatDetectionDone(BOOL success, NAT nat);
void* IPLContestAlloc(int size);
void IPLContestFree(void* block, u32 _unused);
@@ -227,7 +227,7 @@ int IPLContestProcess() {
break;
}
case 2: {
NNStartNatDetection(iplContest_813D54F8);
NNStartNatDetection(onNatDetectionDone);
g_session.unk_0x030 = 3;
OSReport("Port mapping detectioning test has been started.\n");
g_session.detectStartTime = OSGetTime();
@@ -461,7 +461,7 @@ void sNHTTPCleanupCallback() {
g_session.state = 3;
}
void iplContest_813D54F8(gsi_bool success, NAT nat) {
void onNatDetectionDone(gsi_bool success, NAT nat) {
if (success) {
g_session.nat = nat;
g_session.unk_0x03c = 0;

View File

@@ -1037,52 +1037,52 @@ namespace ipl {
}
switch (mWorkerCommand) {
case 1:
case 0:
processWorkerCommands();
break;
case 0:
case 1:
handleNandTitleUsageComplete();
break;
case 2:
handleSDTitleList();
break;
case 4:
case 3:
handleSDMountComplete();
break;
case 5:
case 4:
handleSDTitleListResult();
break;
case 3:
case 5:
handleSDChannelUpdateComplete();
break;
case 7:
case 6:
handleCopyComplete();
break;
case 8:
case 7:
handleSDLocationUpdateComplete();
break;
case 9:
case 8:
handleSDLocationReadComplete();
break;
case 10:
case 9:
handleMoveComplete();
break;
case 11:
case 10:
handleBackupFitComplete();
break;
case 12:
case 11:
handleNandSDCleanupComplete();
break;
case 13:
case 12:
handleSDDeleteComplete();
break;
case 6:
case 13:
handleSDCardReady();
break;
case 15:
case 14:
handleCardCommand();
break;
case 14:
case 15:
break;
}
@@ -1749,79 +1749,79 @@ namespace ipl {
}
switch (state) {
case 1:
case 0:
processNormalInput();
break;
case 8:
case 9:
case 1:
setPageActionFrame();
break;
case 10:
case 11:
case 2:
finishPageScroll();
break;
case 5:
case 3:
createChildScene(0x23, this, NULL, this);
mState = 6;
break;
case 7:
case 4:
advancePageAnimation();
break;
case 12:
case 5:
mState = 13;
break;
case 14:
case 6:
initializeNormalPage();
break;
case 15:
case 7:
updateDragState();
break;
case 16:
case 8:
updateDragPageTransition();
break;
case 17:
case 9:
finishDragWait();
break;
case 18:
case 10:
finishDragPageTransition();
break;
case 19:
case 11:
applyChannelMove();
break;
case 20:
case 12:
finishChannelMove();
break;
case 21:
case 13:
resetDragPreview();
break;
case 22:
case 23:
case 14:
finishDragPageChange();
break;
case 24:
case 15:
handleFourPageDialog();
break;
case 25:
case 16:
flushSaveDataAndMountSD();
break;
case 26:
case 17:
handleThreePageDialog();
break;
case 27:
case 18:
finishCardDialog();
break;
case 28:
case 19:
finishDialogOperation();
break;
case 29:
case 20:
finishDialogTransition();
break;
case 0:
case 2:
case 3:
case 4:
case 6:
case 13:
case 21:
case 22:
case 23:
case 24:
case 25:
case 26:
case 27:
case 28:
case 29:
default:
break;
}