Compare commits
16 Commits
cleanup/ch
...
agent/asm2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c0bfe74e5a | ||
|
|
728bfa984b | ||
|
|
921234fdac | ||
|
|
9d6f9dce74 | ||
|
|
f1bcb9d78c | ||
|
|
efda1f0093 | ||
|
|
115bc95101 | ||
|
|
cbac1eda5a | ||
|
|
f0de86aa16 | ||
|
|
215f40f835 | ||
|
|
5b364355cd | ||
|
|
ea8e69528f | ||
|
|
2a5fbdb4b9 | ||
|
|
dd3cd80d9b | ||
|
|
3cbe527d23 | ||
|
|
3ab6d87c3d |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.37% | 87.84% | 62.33% | 92.06% |
|
||||
| 99.38% | 88.00% | 62.36% | 92.07% |
|
||||
|
||||
units 919/1027 complete, functions 12220/12563 matched.
|
||||
units 920/1027 complete, functions 12225/12563 matched.
|
||||
|
||||
decompiled = code with a C/C++ implementation (objdiff fuzzy), matched = byte-exact code, linked = code actually linked into the DOL, data = byte-exact data
|
||||
<!-- progress:end -->
|
||||
|
||||
@@ -3930,9 +3930,9 @@ isLimitOutChannel__Q33ipl5scene12ChannelTitleFv = .text:0x813B9F8C; // type:func
|
||||
dispTimeLimitWindow__Q33ipl5scene12ChannelTitleFv = .text:0x813B9FE0; // type:function size:0x104
|
||||
getTimeLimitString__Q33ipl5scene12ChannelTitleFPwUlUl = .text:0x813BA0E4; // type:function size:0x484
|
||||
getTmdTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA568; // type:function size:0x11C
|
||||
iplChannelTitle_813BA684__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA684; // type:function size:0xC
|
||||
markTmdReadyTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA684; // type:function size:0xC
|
||||
getTicketLimitTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA690; // type:function size:0xF4
|
||||
iplChannelTitle_813BA784__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA784; // type:function size:0xE0
|
||||
deleteTmpTitleContentTask__Q33ipl5scene12ChannelTitleFPv = .text:0x813BA784; // type:function size:0xE0
|
||||
isTimeLimitedTicket__Q33ipl5scene12ChannelTitleFP12ESTicketViewPUl = .text:0x813BA864; // type:function size:0xF4
|
||||
startGetTicketLimitTask__Q33ipl5scene12ChannelTitleFv = .text:0x813BA958; // type:function size:0x8C
|
||||
updateLockedMsg__Q33ipl5scene12ChannelTitleFi = .text:0x813BA9E4; // type:function size:0x16C
|
||||
@@ -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
|
||||
@@ -8879,8 +8879,8 @@ TMCJPEGDEC_move_ptr = .text:0x814EAD28; // type:function size:0xE4
|
||||
TMCJPEGDEC_load_buff = .text:0x814EAE0C; // type:function size:0x124
|
||||
TMCJPEGDEC_get_position = .text:0x814EAF30; // type:function size:0x10
|
||||
TMCJPEGDEC_chk_possible_size = .text:0x814EAF40; // type:function size:0x10
|
||||
TMCJPEG_814EAF50 = .text:0x814EAF50; // type:function size:0x1B8 scope:local
|
||||
TMCJPEG_814EB108 = .text:0x814EB108; // type:function size:0x198 scope:local
|
||||
refillJpegBufferAfterFF = .text:0x814EAF50; // type:function size:0x1B8 scope:local
|
||||
refillJpegBuffer = .text:0x814EB108; // type:function size:0x198 scope:local
|
||||
TMCJPEGDEC_init_buff_thumbnail = .text:0x814EB2A0; // type:function size:0x88
|
||||
TMCJPEGDEC_init_buff = .text:0x814EB328; // type:function size:0x10
|
||||
TMCJPEGDEC_rewind_ptr = .text:0x814EB338; // type:function size:0xA4
|
||||
@@ -17456,19 +17456,19 @@ __vt__Q49textinput8keyboard13cellphonetype23CellPhoneControlAnmPane = .data:0x81
|
||||
__vt__Q49textinput8keyboard13cellphonetype16CellPhoneAnmPane = .data:0x8165C730; // type:object size:0x28
|
||||
__vt__Q49textinput8keyboard13cellphonetype12EventHandler = .data:0x8165C758; // type:object size:0x20
|
||||
__vt__Q49textinput8keyboard13cellphonetype4Base = .data:0x8165C778; // type:object size:0xA8
|
||||
lbl_8165C820 = .data:0x8165C820; // type:object size:0xE data:string
|
||||
lbl_8165C830 = .data:0x8165C830; // type:object size:0x10 data:string
|
||||
scP_txtScrll_UP = .data:0x8165C820; // type:object size:0xE data:string
|
||||
scP_txtScrll_DOWN = .data:0x8165C830; // type:object size:0x10 data:string
|
||||
lbl_8165C840 = .data:0x8165C840; // type:object size:0x80
|
||||
lbl_8165C8C0 = .data:0x8165C8C0; // type:object size:0xC data:string
|
||||
lbl_8165C8CC = .data:0x8165C8CC; // type:object size:0x11 data:string
|
||||
lbl_8165C8E0 = .data:0x8165C8E0; // type:object size:0xD data:string
|
||||
lbl_8165C8F0 = .data:0x8165C8F0; // type:object size:0x10 data:string
|
||||
lbl_8165C900 = .data:0x8165C900; // type:object size:0x11 data:string
|
||||
lbl_8165C918 = .data:0x8165C918; // type:object size:0x10 data:string
|
||||
lbl_8165C928 = .data:0x8165C928; // type:object size:0x10 data:string
|
||||
lbl_8165C938 = .data:0x8165C938; // type:object size:0x11 data:string
|
||||
lbl_8165C950 = .data:0x8165C950; // type:object size:0x10 data:string
|
||||
lbl_8165C960 = .data:0x8165C960; // type:object size:0x10 data:string
|
||||
scN_JPNUSAEUR = .data:0x8165C8C0; // type:object size:0xC data:string
|
||||
scN_separateBarAll = .data:0x8165C8CC; // type:object size:0x11 data:string
|
||||
scT_2l_TextBox = .data:0x8165C8E0; // type:object size:0xD data:string
|
||||
scT_title_textJPN = .data:0x8165C8F0; // type:object size:0x10 data:string
|
||||
scN_separateBarKOR = .data:0x8165C900; // type:object size:0x11 data:string
|
||||
scT_2l_TextBoxKOR = .data:0x8165C918; // type:object size:0x10 data:string
|
||||
scT_title_textKOR = .data:0x8165C928; // type:object size:0x10 data:string
|
||||
scN_separateBarCHN = .data:0x8165C938; // type:object size:0x11 data:string
|
||||
scT_2l_TextBoxCHN = .data:0x8165C950; // type:object size:0x10 data:string
|
||||
scT_title_textCHN = .data:0x8165C960; // type:object size:0x10 data:string
|
||||
lbl_8165C970 = .data:0x8165C970; // type:object size:0x20 data:2byte
|
||||
jumptable_8165C990 = .data:0x8165C990; // type:object size:0xA0 scope:local
|
||||
jumptable_8165CA30 = .data:0x8165CA30; // type:object size:0x28 scope:local
|
||||
|
||||
@@ -293,8 +293,8 @@ namespace ipl {
|
||||
LOCKED_DIALOG_ANIM_MAX,
|
||||
};
|
||||
|
||||
static void iplChannelTitle_813BA684(void* work);
|
||||
static void iplChannelTitle_813BA784(void* work);
|
||||
static void markTmdReadyTask(void* work);
|
||||
static void deleteTmpTitleContentTask(void* work);
|
||||
static void getTmdTask(void* work);
|
||||
static void getTicketLimitTask(void* work);
|
||||
static BOOL isTimeLimitedTicket(ESTicketView * ticket, u32* remainTime = NULL);
|
||||
|
||||
@@ -26,6 +26,18 @@ namespace ipl {
|
||||
namespace savedata {
|
||||
extern "C" BOOL isTitleCached(void* manager, ESTitleId titleId);
|
||||
|
||||
struct ChannelSlot {
|
||||
u8 valid; // 0x00 (primaryType)
|
||||
u8 pad[3]; // 0x01
|
||||
s32 titleId; // 0x04 (sceneID)
|
||||
u8 rest[8]; // 0x08
|
||||
};
|
||||
|
||||
struct ChannelPage {
|
||||
u8 pad[0x30];
|
||||
ChannelSlot slots[MAX_CHANNEL_INDEX]; // 0x30
|
||||
};
|
||||
|
||||
class Manager {
|
||||
public:
|
||||
Manager(EGG::Heap* heap);
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include <tmc_jpeg_internal.h>
|
||||
|
||||
static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work);
|
||||
static s32 TMCJPEG_814EB108(TMCCJPEGDecWork* work);
|
||||
static s32 refillJpegBufferAfterFF(TMCCJPEGDecWork* work);
|
||||
static s32 refillJpegBuffer(TMCCJPEGDecWork* work);
|
||||
|
||||
s32 TMCJPEGDEC_init_ptr_buff(TMCCJPEGDecWork* work, void* param) {
|
||||
u32 readSize;
|
||||
@@ -52,7 +52,7 @@ s32 TMCJPEGDEC_get_byte(u8* dst, TMCCJPEGDecWork* work) {
|
||||
|
||||
if (work->pBufCur >= work->pBufEnd) {
|
||||
if (work->remaining != 0) {
|
||||
s32 r = TMCJPEG_814EB108(work);
|
||||
s32 r = refillJpegBuffer(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
@@ -69,7 +69,7 @@ s32 TMCJPEGDEC_get_byte(u8* dst, TMCCJPEGDecWork* work) {
|
||||
|
||||
if (cur >= work->pBufEnd) {
|
||||
if (work->remaining != 0) {
|
||||
s32 r = TMCJPEG_814EB108(work);
|
||||
s32 r = refillJpegBuffer(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
@@ -92,7 +92,7 @@ s32 TMCJPEGDEC_get_wbyte(u16* dst, TMCCJPEGDecWork* work) {
|
||||
|
||||
if (work->pBufCur >= work->pBufEnd) {
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r < 0) {
|
||||
goto br;
|
||||
} else {
|
||||
@@ -119,7 +119,7 @@ s32 TMCJPEGDEC_get_wbyte(u16* dst, TMCCJPEGDecWork* work) {
|
||||
}
|
||||
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r >= 0) {
|
||||
goto o1;
|
||||
}
|
||||
@@ -144,7 +144,7 @@ p2:
|
||||
goto r2;
|
||||
}
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r < 0)
|
||||
goto ez;
|
||||
else {
|
||||
@@ -166,7 +166,7 @@ r2:
|
||||
}
|
||||
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r < 0)
|
||||
goto ez;
|
||||
else {
|
||||
@@ -193,7 +193,7 @@ s32 TMCJPEGDEC_get_sbyte(u8* dst, u32 count, TMCCJPEGDecWork* work) {
|
||||
for (i = 0; i < count; i++) {
|
||||
if (work->pBufCur >= work->pBufEnd) {
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r < 0) {
|
||||
goto copy_byte;
|
||||
} else {
|
||||
@@ -214,7 +214,7 @@ s32 TMCJPEGDEC_get_sbyte(u8* dst, u32 count, TMCCJPEGDecWork* work) {
|
||||
goto r0;
|
||||
}
|
||||
if (work->remaining != 0) {
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r >= 0) {
|
||||
goto r0;
|
||||
}
|
||||
@@ -251,7 +251,7 @@ lp:
|
||||
if (work->remaining == 0) {
|
||||
goto er1;
|
||||
}
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r >= 0) {
|
||||
goto lc;
|
||||
}
|
||||
@@ -271,7 +271,7 @@ lc:
|
||||
if (work->remaining == 0) {
|
||||
goto er2;
|
||||
}
|
||||
r = TMCJPEG_814EB108(work);
|
||||
r = refillJpegBuffer(work);
|
||||
if (r >= 0) {
|
||||
goto ret0;
|
||||
}
|
||||
@@ -320,7 +320,7 @@ s32 TMCJPEGDEC_load_buff(TMCCJPEGDecWork* work) {
|
||||
if (work->remaining == 0) {
|
||||
break;
|
||||
}
|
||||
r = TMCJPEG_814EAF50(work);
|
||||
r = refillJpegBufferAfterFF(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
@@ -345,7 +345,7 @@ s32 TMCJPEGDEC_load_buff(TMCCJPEGDecWork* work) {
|
||||
if (work->remaining == 0) {
|
||||
break;
|
||||
}
|
||||
r = TMCJPEG_814EAF50(work);
|
||||
r = refillJpegBufferAfterFF(work);
|
||||
if (r < 0) {
|
||||
return r;
|
||||
}
|
||||
@@ -364,7 +364,7 @@ s32 TMCJPEGDEC_chk_possible_size(TMCCJPEGDecWork* work) {
|
||||
return work->pBufEnd - work->pBufCur;
|
||||
}
|
||||
|
||||
static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work) {
|
||||
static s32 refillJpegBufferAfterFF(TMCCJPEGDecWork* work) {
|
||||
u8 marker;
|
||||
u32 readSize;
|
||||
u8* dest;
|
||||
@@ -410,7 +410,7 @@ static s32 TMCJPEG_814EAF50(TMCCJPEGDecWork* work) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
static s32 TMCJPEG_814EB108(TMCCJPEGDecWork* work) {
|
||||
static s32 refillJpegBuffer(TMCCJPEGDecWork* work) {
|
||||
u8* end;
|
||||
u32 i, j;
|
||||
s32 readSize;
|
||||
|
||||
@@ -267,6 +267,14 @@ void KPADSetPosParam(s32 chan, f32 x, f32 y) {
|
||||
kpad->posParamY = y;
|
||||
}
|
||||
|
||||
extern const f32 sensorIntervalConversion;
|
||||
|
||||
static inline f32 object_interval_distance(f32 interval) {
|
||||
return interval / sensorIntervalConversion;
|
||||
}
|
||||
|
||||
const f32 sensorIntervalConversion = 0.383864f;
|
||||
|
||||
static void reset_kpad(KPADInside* kpad) {
|
||||
f32 upperY;
|
||||
f32 distanceValue;
|
||||
@@ -1570,7 +1578,7 @@ void KPADInit(void) {
|
||||
objectInterval = kp_obj_interval;
|
||||
enabled = OSDisableInterrupts();
|
||||
kp_obj_interval = objectInterval;
|
||||
distanceValue = objectInterval / 0.383864f;
|
||||
distanceValue = object_interval_distance(objectInterval);
|
||||
kp_err_dist_min = distanceValue;
|
||||
kp_dist_vv1 = distanceValue;
|
||||
OSRestoreInterrupts(enabled);
|
||||
|
||||
@@ -1174,8 +1174,8 @@ static inline s32 __nupGetBoot2Version(u16* version) {
|
||||
s32 result = ES_GetBoot2Version(&bootVersion);
|
||||
if (result == 0) {
|
||||
u16 checkedVersion = bootVersion;
|
||||
*version = checkedVersion;
|
||||
if (checkedVersion != bootVersion) { result = -0x1389; }
|
||||
if (checkedVersion == bootVersion) { *version = checkedVersion; }
|
||||
}
|
||||
return result;
|
||||
}
|
||||
@@ -1229,7 +1229,7 @@ extern "C" void* __nupOp(void* argument) {
|
||||
u32 needsAudit;
|
||||
char* auditData = 0;
|
||||
s32 result;
|
||||
u16 serverBootVersion = 0;
|
||||
u16 serverBootVersion;
|
||||
u16 bootTitleVersion;
|
||||
u16 systemMenuVersion;
|
||||
ESTitleId currentTitleId;
|
||||
@@ -1350,12 +1350,11 @@ extern "C" void* __nupOp(void* argument) {
|
||||
OSUnlockMutex(&context->mutex);
|
||||
for (i = 0; i < context->titleCount; i++) {
|
||||
NUPTitleInfo* title = &context->titles[i];
|
||||
ESTitleId titleId = title->titleId;
|
||||
if (titleId == 0x0000000100000001ULL) {
|
||||
if (context->titles[i].titleId == 0x0000000100000001ULL) {
|
||||
bootTitle = title;
|
||||
} else if (titleId == 0x0000000100000002ULL) {
|
||||
} else if (context->titles[i].titleId == 0x0000000100000002ULL) {
|
||||
menuTitle = title;
|
||||
} else if (titleId == currentTitleId) {
|
||||
} else if (context->titles[i].titleId == currentTitleId) {
|
||||
systemTitle = title;
|
||||
}
|
||||
if (bootTitle != 0 && menuTitle != 0 && systemTitle != 0) {
|
||||
|
||||
@@ -2947,6 +2947,7 @@ static s32 WAD_815C43E0(WADHashThreadArgs* args) {
|
||||
|
||||
static s32 _WADHash(WADStream* stream, u32 offset, u32 size, void* context, void* buffer,
|
||||
u32 chunkSize, void* secondBuffer, void* threadStack, u32 threadStackSize) {
|
||||
OSMutex* mutex;
|
||||
s32 result;
|
||||
u32 completed = 0;
|
||||
void* readBuffer;
|
||||
@@ -3005,7 +3006,6 @@ static s32 _WADHash(WADStream* stream, u32 offset, u32 size, void* context, void
|
||||
OSResumeThread(&thread);
|
||||
bufferIndex = 0;
|
||||
while (size != 0 && transfer.error == 0) {
|
||||
OSMutex* mutex;
|
||||
readSize = size > chunkSize ? chunkSize : size;
|
||||
mutex = &transfer.mutex[bufferIndex];
|
||||
OSLockMutex(mutex);
|
||||
@@ -3019,11 +3019,10 @@ static s32 _WADHash(WADStream* stream, u32 offset, u32 size, void* context, void
|
||||
readBuffer = transfer.buffers[bufferIndex];
|
||||
result = WADReadStream(stream, &readBuffer, readSize, offset + completed);
|
||||
if ((u32)result != readSize) {
|
||||
OSMutex* otherMutex = &transfer.mutex[bufferIndex ^ 1];
|
||||
OSLockMutex(otherMutex);
|
||||
OSLockMutex(&transfer.mutex[bufferIndex ^ 1]);
|
||||
OSCancelThread(&thread);
|
||||
OSJoinThread(&thread, 0);
|
||||
OSUnlockMutex(otherMutex);
|
||||
OSUnlockMutex(&transfer.mutex[bufferIndex ^ 1]);
|
||||
OSUnlockMutex(mutex);
|
||||
result = -3005;
|
||||
goto done;
|
||||
|
||||
@@ -94,7 +94,7 @@ extern CDBErr CDBDatabasePrivateCreateRecordAtOnce();
|
||||
extern CDBErr CDBDatabaseCreateRecordAtOnce();
|
||||
extern CDBErr CDBDatabaseCreateRecordAtOnceEx();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnceEx();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnceEx_();
|
||||
extern CDBErr CDBDatabasePrivateCreateRecordAtOnceEx_(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, int year, int month, int day, int hour, int min, int sec, u8* recordData, u32 recordDataSize, char* makerCode, char* gameCode);
|
||||
extern CDBErr CDBDatabaseCreateRecordImAtOnce_(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, OSTime time, u32 gameCode, u16 makerCode, void* recordData, u32 recordDataSize);
|
||||
extern CDBErr CDBDatabaseFindByKey();
|
||||
typedef struct {
|
||||
@@ -281,86 +281,38 @@ CDBErr CDBDatabasePrivateCreateRecordAtOnceEx(CDBDatabase* database, CDBRecord*
|
||||
return result;
|
||||
}
|
||||
|
||||
asm CDBErr CDBDatabasePrivateCreateRecordAtOnceEx_() {
|
||||
#ifdef __MWERKS__
|
||||
nofralloc
|
||||
stwu r1, -0x80(r1)
|
||||
mflr r0
|
||||
stw r0, 0x84(r1)
|
||||
addi r11, r1, 0x80
|
||||
bl _savegpr_18
|
||||
lwz r24, 0x9c(r1)
|
||||
mr r28, r3
|
||||
lwz r27, 0x88(r1)
|
||||
mr r29, r4
|
||||
lwz r26, 0x8c(r1)
|
||||
mr r30, r5
|
||||
lwz r22, 0x90(r1)
|
||||
mr r31, r6
|
||||
lwz r23, 0x94(r1)
|
||||
mr r18, r7
|
||||
lwz r25, 0x98(r1)
|
||||
mr r19, r8
|
||||
mr r20, r9
|
||||
mr r21, r10
|
||||
mr r3, r24
|
||||
bl CDBIsGameCodeStr
|
||||
cmpwi r3, 0x0
|
||||
bne L_81487844
|
||||
li r3, 0x4
|
||||
b L_814878EC
|
||||
L_81487844:
|
||||
mr r3, r25
|
||||
bl CDBIsMakerCodeStr
|
||||
cmpwi r3, 0x0
|
||||
bne L_8148785C
|
||||
li r3, 0x3
|
||||
b L_814878EC
|
||||
L_8148785C:
|
||||
mr r3, r25
|
||||
addi r4, r1, 0x10
|
||||
bl CDBConvMCStrToMCValue
|
||||
mr r3, r24
|
||||
addi r4, r1, 0x14
|
||||
bl CDBConvGCStrToGCValue
|
||||
li r0, 0x0
|
||||
stw r18, 0x2c(r1)
|
||||
addi r3, r1, 0x18
|
||||
stw r19, 0x28(r1)
|
||||
stw r20, 0x24(r1)
|
||||
stw r21, 0x20(r1)
|
||||
stw r27, 0x1c(r1)
|
||||
stw r26, 0x18(r1)
|
||||
stw r0, 0x38(r1)
|
||||
stw r0, 0x3c(r1)
|
||||
bl OSCalendarTimeToTicks
|
||||
lhz r26, 0x10(r1)
|
||||
mr r24, r4
|
||||
lwz r27, 0x14(r1)
|
||||
mr r25, r3
|
||||
bl CDBLock
|
||||
stw r22, 0x8(r1)
|
||||
mr r3, r28
|
||||
mr r4, r29
|
||||
mr r5, r30
|
||||
stw r23, 0xc(r1)
|
||||
mr r6, r31
|
||||
mr r8, r24
|
||||
mr r7, r25
|
||||
mr r9, r27
|
||||
mr r10, r26
|
||||
bl CDBDatabaseCreateRecordImAtOnce_
|
||||
mr r26, r3
|
||||
bl CDBUnlock
|
||||
mr r3, r26
|
||||
L_814878EC:
|
||||
addi r11, r1, 0x80
|
||||
bl _restgpr_18
|
||||
lwz r0, 0x84(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x80
|
||||
blr
|
||||
#endif
|
||||
CDBErr CDBDatabasePrivateCreateRecordAtOnceEx_(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, int year, int month, int day, int hour, int min, int sec, u8* recordData, u32 recordDataSize, char* makerCode, char* gameCode) {
|
||||
u32 gameCodeVal;
|
||||
u32 gameValue;
|
||||
u16 makerCodeVal;
|
||||
u16 makerValue;
|
||||
CDBErr result;
|
||||
OSTime time;
|
||||
OSCalendarTime cal;
|
||||
|
||||
if (!CDBIsGameCodeStr(gameCode)) {
|
||||
return CDB_ERROR_4;
|
||||
}
|
||||
if (!CDBIsMakerCodeStr(makerCode)) {
|
||||
return CDB_ERROR_3;
|
||||
}
|
||||
CDBConvMCStrToMCValue(makerCode, &makerValue);
|
||||
CDBConvGCStrToGCValue(gameCode, &gameValue);
|
||||
cal.year = year;
|
||||
cal.mon = month;
|
||||
cal.mday = day;
|
||||
cal.hour = hour;
|
||||
cal.min = min;
|
||||
cal.sec = sec;
|
||||
cal.msec = 0;
|
||||
cal.usec = 0;
|
||||
time = OSCalendarTimeToTicks(&cal);
|
||||
makerCodeVal = makerValue;
|
||||
gameCodeVal = gameValue;
|
||||
CDBLock();
|
||||
result = CDBDatabaseCreateRecordImAtOnce_(database, record, typeStr, fileTypeStr, time, gameCodeVal, makerCodeVal, recordData, recordDataSize);
|
||||
CDBUnlock();
|
||||
return result;
|
||||
}
|
||||
|
||||
CDBErr CDBDatabaseCreateRecordImAtOnce_(CDBDatabase* database, CDBRecord* record, const char* typeStr, const char* fileTypeStr, OSTime time, u32 gameCode, u16 makerCode, void* recordData, u32 recordDataSize) {
|
||||
|
||||
@@ -873,40 +873,48 @@ NWC24Err NWC24GetDlTask(NWC24DlTask* dlTask, NWC24DlId dlId) {
|
||||
return operationResult;
|
||||
}
|
||||
|
||||
static inline NWC24Err InitDlIteration(DlTaskIterationState* state, u32 sortMode) {
|
||||
memset(state, 0, sizeof(*state));
|
||||
state->comparisonValue = 0x7fffffff;
|
||||
state->selectedValue = (s32)0x80000001;
|
||||
state->sortMode = sortMode;
|
||||
state->comparisonId = 0xffffffff;
|
||||
state->initialized = 1;
|
||||
state->valid = 1;
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
NWC24Err NWC24PurgeOldestDlTask() {
|
||||
DlTaskIterationState state;
|
||||
NWC24File file;
|
||||
NWC24DlTask task;
|
||||
DlTaskListHeader* header;
|
||||
NWC24DlId taskId;
|
||||
NWC24DlTask* taskPointer;
|
||||
NWC24DlId selectedId;
|
||||
NWC24DlTask* taskPointer;
|
||||
NWC24Err result;
|
||||
NWC24Err closeResult;
|
||||
|
||||
memset(&state, 0, sizeof(state));
|
||||
state.sortMode = 0;
|
||||
state.comparisonValue = 0x7fffffff;
|
||||
state.selectedValue = (s32)0x80000001;
|
||||
state.comparisonId = 0xffffffff;
|
||||
state.initialized = 1;
|
||||
state.valid = 1;
|
||||
result = InitDlIteration(&state, 0);
|
||||
if (result < NWC24_OK) { return NWC24_OK; }
|
||||
|
||||
while ((result = NWC24IterateDlTaskEx((NWC24DlIterateWork*)&state, &taskId)) == NWC24_OK) {
|
||||
header = GetCachedDlHeader();
|
||||
if (taskId >= header->taskCount) { break; }
|
||||
}
|
||||
|
||||
if (result < NWC24_OK) {
|
||||
if (result == NWC24_ERR_DONE) { result = NWC24_ERR_FAILED; }
|
||||
return result;
|
||||
if (result >= NWC24_OK) {
|
||||
taskPointer = &task;
|
||||
selectedId = taskId;
|
||||
result = ReadDlTaskInline(taskPointer, selectedId);
|
||||
if (result < NWC24_OK) { return result; }
|
||||
taskPointer = &task;
|
||||
result = RemoveDlTask(taskPointer);
|
||||
if (result < NWC24_OK) { return result; }
|
||||
} else if (result == NWC24_ERR_DONE) {
|
||||
result = NWC24_ERR_FAILED;
|
||||
}
|
||||
|
||||
taskPointer = &task;
|
||||
selectedId = taskId;
|
||||
result = ReadDlTaskInline(taskPointer, selectedId);
|
||||
if (result < NWC24_OK) { return result; }
|
||||
return RemoveDlTask(taskPointer);
|
||||
return result;
|
||||
}
|
||||
NWC24Err NWC24ManageDlTaskListForMenu() {
|
||||
NWC24DlTask task;
|
||||
@@ -921,7 +929,9 @@ NWC24Err NWC24ManageDlTaskListForMenu() {
|
||||
result = ReadDlTaskInline(taskPointer, 2);
|
||||
if (result == NWC24_ERR_NOT_FOUND) { return NWC24_OK; }
|
||||
if (result < NWC24_OK) { return result; }
|
||||
return RemoveDlTask(&task);
|
||||
taskPointer = &task;
|
||||
result = RemoveDlTask(taskPointer);
|
||||
return result;
|
||||
}
|
||||
|
||||
NWC24Err NWC24GetDlOptOutFlags(NWC24DlTask* dlTask, u8* dlOptOutFlags) {
|
||||
|
||||
@@ -139,18 +139,18 @@ extern "C" asm void draw__Q39textinput11nw4rmanager6LayoutFv();
|
||||
extern "C" asm void searchPaneComponent__Q39textinput3gui11PaneManagerFPCc();
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
extern "C" const char lbl_8165C820[];
|
||||
extern "C" const char lbl_8165C830[];
|
||||
extern "C" const char lbl_8165C8C0[];
|
||||
extern "C" const char lbl_8165C8CC[];
|
||||
extern "C" const char lbl_8165C8E0[];
|
||||
extern "C" const char lbl_8165C8F0[];
|
||||
extern "C" const char lbl_8165C900[];
|
||||
extern "C" const char lbl_8165C918[];
|
||||
extern "C" const char lbl_8165C928[];
|
||||
extern "C" const char lbl_8165C938[];
|
||||
extern "C" const char lbl_8165C950[];
|
||||
extern "C" const char lbl_8165C960[];
|
||||
extern "C" const char scP_txtScrll_UP[];
|
||||
extern "C" const char scP_txtScrll_DOWN[];
|
||||
extern "C" const char scN_JPNUSAEUR[];
|
||||
extern "C" const char scN_separateBarAll[];
|
||||
extern "C" const char scT_2l_TextBox[];
|
||||
extern "C" const char scT_title_textJPN[];
|
||||
extern "C" const char scN_separateBarKOR[];
|
||||
extern "C" const char scT_2l_TextBoxKOR[];
|
||||
extern "C" const char scT_title_textKOR[];
|
||||
extern "C" const char scN_separateBarCHN[];
|
||||
extern "C" const char scT_2l_TextBoxCHN[];
|
||||
extern "C" const char scT_title_textCHN[];
|
||||
extern "C" const char lbl_816973A4[];
|
||||
extern "C" const char lbl_816973AC[];
|
||||
#pragma pop
|
||||
@@ -314,7 +314,7 @@ void Base::resetContextPredict_() {
|
||||
|
||||
static GXColor kanaBackground = {128, 255, 128, 255};
|
||||
static GXColor candidateBackground = {255, 210, 12, 255};
|
||||
const char* csScrollButtonAnimationTarget = lbl_8165C820;
|
||||
const char* csScrollButtonAnimationTarget = scP_txtScrll_UP;
|
||||
|
||||
struct InputFormAnimationFile {
|
||||
u32 id;
|
||||
@@ -337,14 +337,14 @@ extern "C" const InputFormAnimationFile csAninationFile__Q29textinput9inputform[
|
||||
#pragma section data_type ".rodata"
|
||||
extern "C" const VisiblePanes csVisiblePaneUEJ__Q29textinput9inputform = {
|
||||
1, 2,
|
||||
{lbl_8165C8C0, NULL, NULL, NULL},
|
||||
{scN_JPNUSAEUR, NULL, NULL, NULL},
|
||||
{"N_KOR", "N_CHN", NULL, NULL},
|
||||
};
|
||||
|
||||
extern "C" const VisiblePanes csVisiblePaneKOR__Q29textinput9inputform = {
|
||||
1, 2,
|
||||
{"N_KOR", NULL, NULL, NULL},
|
||||
{"N_CHN", lbl_8165C8C0, NULL, NULL},
|
||||
{"N_CHN", scN_JPNUSAEUR, NULL, NULL},
|
||||
};
|
||||
|
||||
extern "C" const void* csVisiblePaneCHN__Q29textinput9inputform[10] = {
|
||||
@@ -354,7 +354,7 @@ extern "C" const void* csVisiblePaneCHN__Q29textinput9inputform[10] = {
|
||||
0,
|
||||
0,
|
||||
"N_KOR",
|
||||
lbl_8165C8C0,
|
||||
scN_JPNUSAEUR,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
@@ -362,23 +362,23 @@ extern "C" const void* csVisiblePaneCHN__Q29textinput9inputform[10] = {
|
||||
|
||||
extern "C" const LanguagePaneData csLanguageDependencyDataUEJ__Q29textinput9inputform = {
|
||||
&csVisiblePaneUEJ__Q29textinput9inputform,
|
||||
lbl_8165C8CC,
|
||||
lbl_8165C8E0,
|
||||
lbl_8165C8F0,
|
||||
scN_separateBarAll,
|
||||
scT_2l_TextBox,
|
||||
scT_title_textJPN,
|
||||
};
|
||||
|
||||
extern "C" const LanguagePaneData csLanguageDependencyDataKOR__Q29textinput9inputform = {
|
||||
&csVisiblePaneKOR__Q29textinput9inputform,
|
||||
lbl_8165C900,
|
||||
lbl_8165C918,
|
||||
lbl_8165C928,
|
||||
scN_separateBarKOR,
|
||||
scT_2l_TextBoxKOR,
|
||||
scT_title_textKOR,
|
||||
};
|
||||
|
||||
extern "C" const LanguagePaneData csLanguageDependencyDataCHN__Q29textinput9inputform = {
|
||||
reinterpret_cast<const VisiblePanes*>(csVisiblePaneCHN__Q29textinput9inputform),
|
||||
lbl_8165C938,
|
||||
lbl_8165C950,
|
||||
lbl_8165C960,
|
||||
scN_separateBarCHN,
|
||||
scT_2l_TextBoxCHN,
|
||||
scT_title_textCHN,
|
||||
};
|
||||
#pragma section data_type ".data"
|
||||
|
||||
@@ -417,8 +417,8 @@ bool mbHyphen = true;
|
||||
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
extern "C" const char lbl_8165C820[] = "P_txtScrll_UP";
|
||||
extern "C" const char lbl_8165C830[] = "P_txtScrll_DOWN";
|
||||
extern "C" const char scP_txtScrll_UP[] = "P_txtScrll_UP";
|
||||
extern "C" const char scP_txtScrll_DOWN[] = "P_txtScrll_DOWN";
|
||||
struct ButtonAnimations {
|
||||
KeyType type;
|
||||
const char* paneName;
|
||||
@@ -428,27 +428,27 @@ struct ButtonAnimations {
|
||||
};
|
||||
|
||||
const ButtonAnimations csButtonAnimations[] = {
|
||||
{KT_NormalButton, lbl_8165C820, 8, NULL, {
|
||||
{KT_NormalButton, scP_txtScrll_UP, 8, NULL, {
|
||||
&csAninationFile__Q29textinput9inputform[0], &csAninationFile__Q29textinput9inputform[1],
|
||||
&csAninationFile__Q29textinput9inputform[2], &csAninationFile__Q29textinput9inputform[3],
|
||||
&csAninationFile__Q29textinput9inputform[4], &csAninationFile__Q29textinput9inputform[5],
|
||||
&csAninationFile__Q29textinput9inputform[6], &csAninationFile__Q29textinput9inputform[7]}},
|
||||
{KT_NormalButton, lbl_8165C830, 8, csScrollButtonAnimationTarget, {
|
||||
{KT_NormalButton, scP_txtScrll_DOWN, 8, csScrollButtonAnimationTarget, {
|
||||
&csAninationFile__Q29textinput9inputform[0], &csAninationFile__Q29textinput9inputform[1],
|
||||
&csAninationFile__Q29textinput9inputform[2], &csAninationFile__Q29textinput9inputform[3],
|
||||
&csAninationFile__Q29textinput9inputform[4], &csAninationFile__Q29textinput9inputform[5],
|
||||
&csAninationFile__Q29textinput9inputform[6], &csAninationFile__Q29textinput9inputform[7]}}
|
||||
};
|
||||
extern "C" const char lbl_8165C8C0[] = "N_JPNUSAEUR";
|
||||
extern "C" const char lbl_8165C8CC[] = "N_separateBarAll";
|
||||
extern "C" const char lbl_8165C8E0[] = "T_2l_TextBox";
|
||||
extern "C" const char lbl_8165C8F0[] = "T_title_textJPN";
|
||||
extern "C" const char lbl_8165C900[] = "N_separateBarKOR";
|
||||
extern "C" const char lbl_8165C918[] = "T_2l_TextBoxKOR";
|
||||
extern "C" const char lbl_8165C928[] = "T_title_textKOR";
|
||||
extern "C" const char lbl_8165C938[] = "N_separateBarCHN";
|
||||
extern "C" const char lbl_8165C950[] = "T_2l_TextBoxCHN";
|
||||
extern "C" const char lbl_8165C960[] = "T_title_textCHN";
|
||||
extern "C" const char scN_JPNUSAEUR[] = "N_JPNUSAEUR";
|
||||
extern "C" const char scN_separateBarAll[] = "N_separateBarAll";
|
||||
extern "C" const char scT_2l_TextBox[] = "T_2l_TextBox";
|
||||
extern "C" const char scT_title_textJPN[] = "T_title_textJPN";
|
||||
extern "C" const char scN_separateBarKOR[] = "N_separateBarKOR";
|
||||
extern "C" const char scT_2l_TextBoxKOR[] = "T_2l_TextBoxKOR";
|
||||
extern "C" const char scT_title_textKOR[] = "T_title_textKOR";
|
||||
extern "C" const char scN_separateBarCHN[] = "N_separateBarCHN";
|
||||
extern "C" const char scT_2l_TextBoxCHN[] = "T_2l_TextBoxCHN";
|
||||
extern "C" const char scT_title_textCHN[] = "T_title_textCHN";
|
||||
bool DeadKeyStream::sbCompatibleFilterEnabled = true;
|
||||
|
||||
inline bool DeadKeyStream::isCompatible(wchar_t character) {
|
||||
|
||||
@@ -2289,7 +2289,7 @@ namespace ipl {
|
||||
|
||||
unk_0x360 = false;
|
||||
|
||||
System::getTask1()->request(iplChannelTitle_813BA684, this, NULL);
|
||||
System::getTask1()->request(markTmdReadyTask, this, NULL);
|
||||
|
||||
mState = STATE_WAIT_TMD;
|
||||
} else {
|
||||
@@ -2301,7 +2301,7 @@ namespace ipl {
|
||||
|
||||
unk_0x360 = false;
|
||||
|
||||
System::getTask1()->request(iplChannelTitle_813BA684, this, NULL);
|
||||
System::getTask1()->request(markTmdReadyTask, this, NULL);
|
||||
|
||||
mState = STATE_WAIT_TMD;
|
||||
}
|
||||
@@ -2408,7 +2408,7 @@ namespace ipl {
|
||||
|
||||
if (mTmpTitleID != 0) {
|
||||
SCSetTmpTitleID(0);
|
||||
System::getTask1()->request(iplChannelTitle_813BA784, this, NULL);
|
||||
System::getTask1()->request(deleteTmpTitleContentTask, this, NULL);
|
||||
} else {
|
||||
unk_0x370 = true;
|
||||
}
|
||||
@@ -2673,7 +2673,7 @@ namespace ipl {
|
||||
chanTtl->unk_0x360 = true;
|
||||
}
|
||||
|
||||
void ChannelTitle::iplChannelTitle_813BA684(void* work) {
|
||||
void ChannelTitle::markTmdReadyTask(void* work) {
|
||||
ChannelTitle* chanTtl = static_cast<ChannelTitle*>(work);
|
||||
chanTtl->unk_0x360 = true;
|
||||
}
|
||||
@@ -2699,7 +2699,7 @@ namespace ipl {
|
||||
}
|
||||
#pragma pop
|
||||
|
||||
void ChannelTitle::iplChannelTitle_813BA784(void* work) {
|
||||
void ChannelTitle::deleteTmpTitleContentTask(void* work) {
|
||||
ChannelTitle* chanTtl = static_cast<ChannelTitle*>(work);
|
||||
|
||||
if (chanTtl->mTmpTitleID != 0) {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1037,52 +1037,52 @@ namespace ipl {
|
||||
}
|
||||
|
||||
switch (mWorkerCommand) {
|
||||
case 0:
|
||||
case 1:
|
||||
processWorkerCommands();
|
||||
break;
|
||||
case 1:
|
||||
case 0:
|
||||
handleNandTitleUsageComplete();
|
||||
break;
|
||||
case 2:
|
||||
handleSDTitleList();
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
handleSDMountComplete();
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
handleSDTitleListResult();
|
||||
break;
|
||||
case 5:
|
||||
case 3:
|
||||
handleSDChannelUpdateComplete();
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
handleCopyComplete();
|
||||
break;
|
||||
case 7:
|
||||
case 8:
|
||||
handleSDLocationUpdateComplete();
|
||||
break;
|
||||
case 8:
|
||||
case 9:
|
||||
handleSDLocationReadComplete();
|
||||
break;
|
||||
case 9:
|
||||
case 10:
|
||||
handleMoveComplete();
|
||||
break;
|
||||
case 10:
|
||||
case 11:
|
||||
handleBackupFitComplete();
|
||||
break;
|
||||
case 11:
|
||||
case 12:
|
||||
handleNandSDCleanupComplete();
|
||||
break;
|
||||
case 12:
|
||||
case 13:
|
||||
handleSDDeleteComplete();
|
||||
break;
|
||||
case 13:
|
||||
case 6:
|
||||
handleSDCardReady();
|
||||
break;
|
||||
case 14:
|
||||
case 15:
|
||||
handleCardCommand();
|
||||
break;
|
||||
case 15:
|
||||
case 14:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1749,79 +1749,79 @@ namespace ipl {
|
||||
}
|
||||
|
||||
switch (state) {
|
||||
case 0:
|
||||
case 1:
|
||||
processNormalInput();
|
||||
break;
|
||||
case 1:
|
||||
case 8:
|
||||
case 9:
|
||||
setPageActionFrame();
|
||||
break;
|
||||
case 2:
|
||||
case 10:
|
||||
case 11:
|
||||
finishPageScroll();
|
||||
break;
|
||||
case 3:
|
||||
case 5:
|
||||
createChildScene(0x23, this, NULL, this);
|
||||
mState = 6;
|
||||
break;
|
||||
case 4:
|
||||
case 7:
|
||||
advancePageAnimation();
|
||||
break;
|
||||
case 5:
|
||||
case 12:
|
||||
mState = 13;
|
||||
break;
|
||||
case 6:
|
||||
case 14:
|
||||
initializeNormalPage();
|
||||
break;
|
||||
case 7:
|
||||
case 15:
|
||||
updateDragState();
|
||||
break;
|
||||
case 8:
|
||||
case 16:
|
||||
updateDragPageTransition();
|
||||
break;
|
||||
case 9:
|
||||
case 17:
|
||||
finishDragWait();
|
||||
break;
|
||||
case 10:
|
||||
case 18:
|
||||
finishDragPageTransition();
|
||||
break;
|
||||
case 11:
|
||||
case 19:
|
||||
applyChannelMove();
|
||||
break;
|
||||
case 12:
|
||||
case 20:
|
||||
finishChannelMove();
|
||||
break;
|
||||
case 13:
|
||||
case 21:
|
||||
resetDragPreview();
|
||||
break;
|
||||
case 14:
|
||||
finishDragPageChange();
|
||||
break;
|
||||
case 15:
|
||||
handleFourPageDialog();
|
||||
break;
|
||||
case 16:
|
||||
flushSaveDataAndMountSD();
|
||||
break;
|
||||
case 17:
|
||||
handleThreePageDialog();
|
||||
break;
|
||||
case 18:
|
||||
finishCardDialog();
|
||||
break;
|
||||
case 19:
|
||||
finishDialogOperation();
|
||||
break;
|
||||
case 20:
|
||||
finishDialogTransition();
|
||||
break;
|
||||
case 21:
|
||||
case 22:
|
||||
case 23:
|
||||
finishDragPageChange();
|
||||
break;
|
||||
case 24:
|
||||
handleFourPageDialog();
|
||||
break;
|
||||
case 25:
|
||||
flushSaveDataAndMountSD();
|
||||
break;
|
||||
case 26:
|
||||
handleThreePageDialog();
|
||||
break;
|
||||
case 27:
|
||||
finishCardDialog();
|
||||
break;
|
||||
case 28:
|
||||
finishDialogOperation();
|
||||
break;
|
||||
case 29:
|
||||
finishDialogTransition();
|
||||
break;
|
||||
case 0:
|
||||
case 2:
|
||||
case 3:
|
||||
case 4:
|
||||
case 6:
|
||||
case 13:
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -230,34 +230,29 @@ namespace ipl {
|
||||
blr
|
||||
}
|
||||
|
||||
asm int Manager::getNumValidChannel() const {
|
||||
nofralloc
|
||||
li r9, 0
|
||||
li r10, 0
|
||||
li r4, 0
|
||||
li r0, 0xc
|
||||
getNumValidChannel_L1:
|
||||
add r8, r3, r4
|
||||
li r5, 0
|
||||
mtctr r0
|
||||
getNumValidChannel_L2:
|
||||
add r7, r8, r5
|
||||
lbz r6, 0x30(r7)
|
||||
cmpwi r6, 0
|
||||
beq getNumValidChannel_L3
|
||||
lwz r6, 0x34(r7)
|
||||
cmpwi r6, 0
|
||||
beq getNumValidChannel_L3
|
||||
addi r9, r9, 1
|
||||
getNumValidChannel_L3:
|
||||
addi r5, r5, 0x10
|
||||
bdnz getNumValidChannel_L2
|
||||
addi r10, r10, 1
|
||||
addi r4, r4, 0xc0
|
||||
cmpwi r10, 4
|
||||
blt getNumValidChannel_L1
|
||||
mr r3, r9
|
||||
blr
|
||||
int Manager::getNumValidChannel() const {
|
||||
const ChannelSlot* q;
|
||||
int dens = 12;
|
||||
const ChannelPage* p;
|
||||
int slot;
|
||||
int count = 0;
|
||||
int page;
|
||||
u8 flag;
|
||||
s32 val;
|
||||
for (page = 0; page < 4; page++) {
|
||||
p = (const ChannelPage*)((const u8*)this + page * 0xc0);
|
||||
for (slot = 0; slot < dens; slot++) {
|
||||
q = &p->slots[slot];
|
||||
flag = q->valid;
|
||||
if (flag != 0) {
|
||||
val = q->titleId;
|
||||
if (val != 0) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
return count;
|
||||
}
|
||||
|
||||
BOOL Manager::isResetAcceptable() {
|
||||
|
||||
@@ -674,7 +674,7 @@ int Rvl_decode_ash(u8* out, u8* in) {
|
||||
shifted = shifted - nodeVal;
|
||||
tmp15 = nodeVal >> 3;
|
||||
if (tmp15 == 0) {
|
||||
goto LAB_813325b8;
|
||||
goto copy_lit_tail;
|
||||
}
|
||||
do {
|
||||
*out = litPtr[-1];
|
||||
@@ -690,7 +690,7 @@ int Rvl_decode_ash(u8* out, u8* in) {
|
||||
tmp15 = tmp15 - 1;
|
||||
} while (tmp15 != 0);
|
||||
for (nodeVal = nodeVal & 7; nodeVal != 0; nodeVal = nodeVal - 1) {
|
||||
LAB_813325b8:
|
||||
copy_lit_tail:
|
||||
dst = litPtr - 1;
|
||||
litPtr = litPtr + 1;
|
||||
*out = *dst;
|
||||
|
||||
139
tools/decomp-assist/sol-med-structural-round12.attempts.md
Normal file
139
tools/decomp-assist/sol-med-structural-round12.attempts.md
Normal file
@@ -0,0 +1,139 @@
|
||||
# Structural round 12
|
||||
|
||||
Starting HEAD a348c9777aa65410b85f255be2a24363187d83aa
|
||||
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24InitDlTask | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} | objdiff 98.923615
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24IterateDlTask | {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} | objdiff 99.303795
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24UpdateDlTask | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} | objdiff 95.00395
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24PurgeOldestDlTask | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} | objdiff 87.11364
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24ManageDlTaskListForMenu | {'score': (12, 36), 'insns': (150, 152), 'diffs': 36} | objdiff 96.74342
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis NWC24iCheckDlHeaderConsistency | {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} | objdiff 98.77358
|
||||
libs/RevoEX/src/nwc24/NWC24Download | diagnosis AddTaskInternal | {'score': (20, 323), 'insns': (398, 401), 'diffs': 323} | objdiff 97.7182
|
||||
libs/RVL_SDK/src/nup/nup | diagnosis __nupParseServerInfo__FP14NUPContextInfoPcPcUx | {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} | objdiff 98.108406
|
||||
libs/RVL_SDK/src/nup/nup | diagnosis __nupBase64Encode__FPUcPUcUl | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} | objdiff 94.20635
|
||||
libs/RVL_SDK/src/nup/nup | diagnosis __nupGetBootVersion__FP14ESTitleVersion | {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} | objdiff None
|
||||
libs/RVL_SDK/src/nup/nup | diagnosis __nupGetTitleSize__FP12NUPTitleInfo | {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} | objdiff 99.100716
|
||||
libs/RVL_SDK/src/nup/nup | diagnosis __nupOp | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} | objdiff 99.25799
|
||||
src/scene/setting/iplSetting | diagnosis createBrowser__Q33ipl5scene7SettingFv | {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} | objdiff 98.8505
|
||||
src/scene/setting/iplSetting | diagnosis draw__Q33ipl5scene7SettingFv | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} | objdiff 91.525314
|
||||
src/scene/setting/iplSetting | diagnosis initKeyboard__Q33ipl5scene7SettingFPCc | {'score': (4, 195), 'insns': (215, 213), 'diffs': 195} | objdiff 98.38498
|
||||
src/scene/setting/iplSetting | diagnosis calcKeyboard__Q33ipl5scene7SettingFv | {'score': (15, 258), 'insns': (292, 290), 'diffs': 258} | objdiff 98.0
|
||||
src/scene/setting/iplSetting | diagnosis convertRevIP__Q33ipl5scene7SettingFPUcPCc | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} | objdiff 98.69863
|
||||
src/scene/setting/iplSetting | diagnosis scanAP__Q33ipl5scene7SettingFv | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 95.39338
|
||||
NWC24InitDlTask | initialize owner path with memset rather than aggregate stores | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (21, 136), 'insns': (132, 144), 'diffs': 136} | objdiff 85.9375 | pool True | lost [] | restored
|
||||
NWC24InitDlTask | owner identity stored in a scalarized high-low pair | BUILD FAIL | _RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nwc24/NWC24Download.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24Download.c # ---------------------------------------------- # 293: task->ownerId.high = ownerId.high; # Error: ^ # (10393) 'ownerId' is not a member of class 'struct ' # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
NWC24InitDlTask | reuse initial cached header for the final writable-task validation | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} | objdiff 98.923615 | pool True | lost [] | restored
|
||||
NWC24InitDlTask | owner identity stored in a scalarized high-low pair with real task fields | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} | objdiff 98.923615 | pool True | lost [] | restored
|
||||
NWC24InitDlTask | home path terminators use named null character shared with cached-header initialization | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} | objdiff 98.923615 | pool True | lost [] | restored
|
||||
NWC24InitDlTask | group writability cached as a separate boolean within final validation | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (2, 33), 'insns': (144, 144), 'diffs': 33} | objdiff 98.84722 | pool True | lost [] | restored
|
||||
NWC24InitDlTask | declaration search after path and validation structural trials | {'score': (0, 31), 'insns': (144, 144), 'diffs': 31} -> {'score': (0, 31), 'insns': (144, 144), 'diffs': 31}
|
||||
NWC24IterateDlTask | iterator uses a for-loop update with cached entry header | {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} -> {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} | objdiff 99.303795 | pool True | lost [] | restored
|
||||
NWC24IterateDlTask | entry header references are derived at each use from the cached work pointer | {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} -> {'score': (5, 51), 'insns': (78, 79), 'diffs': 51} | objdiff 95.44304 | pool True | lost [] | restored
|
||||
NWC24IterateDlTask | iteration validity checks share an inline task lookup boundary | {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} -> {'score': (12, 51), 'insns': (84, 79), 'diffs': 51} | objdiff 86.88608 | pool True | lost [] | restored
|
||||
NWC24IterateDlTask | declaration search after loop and validation trials | {'score': (0, 10), 'insns': (79, 79), 'diffs': 10} -> {'score': (0, 10), 'insns': (79, 79), 'diffs': 10}
|
||||
NWC24UpdateDlTask | writable group predicate initialized inside update-specific helper | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (11, 34), 'insns': (253, 253), 'diffs': 34} | objdiff 97.56917 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | update-specific permission helper with identifier output boundary for access time | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (11, 31), 'insns': (253, 253), 'diffs': 31} | objdiff 97.628456 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | permission and access boundaries with shifted retry bit as the first operand | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (11, 31), 'insns': (253, 253), 'diffs': 31} | objdiff 97.648224 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | nested writable-group predicate keeps explicit true assignment | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} | objdiff 95.00395 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | nested group check reads fields inside its task-pointer helper | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (5, 29), 'insns': (253, 253), 'diffs': 29} | objdiff 98.972336 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | nested group check plus retry-specific nonnull-header validation | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (5, 29), 'insns': (253, 253), 'diffs': 29} | objdiff 98.992096 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | iterator initializer fields in target order and shared iterator error tail | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (12, 49), 'insns': (172, 176), 'diffs': 49} | objdiff 95.82386 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | initializer plus separate deletion result inside nested validation branch | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (12, 49), 'insns': (171, 176), 'diffs': 49} | objdiff 96.02273 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | selected identifier captured before task pointer and deletion status checked explicitly | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (28, 81), 'insns': (168, 176), 'diffs': 81} | objdiff 87.795456 | pool True | lost [] | restored
|
||||
NWC24ManageDlTaskListForMenu | menu deletion uses separate deletion status with nested validation | {'score': (12, 36), 'insns': (150, 152), 'diffs': 36} -> {'score': (12, 36), 'insns': (149, 152), 'diffs': 36} | objdiff 96.97369 | pool True | lost [] | restored
|
||||
NWC24ManageDlTaskListForMenu | menu task pointer lifetime starts at deletion boundary | {'score': (12, 36), 'insns': (150, 152), 'diffs': 36} -> {'score': (0, 0), 'insns': (152, 152), 'diffs': 0} | objdiff 100.0 | pool True | lost [] | CANDIDATE
|
||||
NWC24ManageDlTaskListForMenu | menu deletion has its own validation and delete-result boundaries | BUILD FAIL | BUG=1 -DTARGET_RVL -ipa file -fp_contract off -lang=c -MMD -c libs/RevoEX/src/nwc24/NWC24Download.c -o build/43U/src/libs/RevoEX/src/nwc24 && "/usr/bin/python3" tools/transform_dep.py build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d build/43U/src/libs/RevoEX/src/nwc24/NWC24Download.d ### mwcceppc.exe Compiler: # File: libs\RevoEX\src\nwc24\NWC24Download.c # ---------------------------------------------- # 929: NWC24Err deletionResult = DeleteDlTask(dlTask); # Error: ^^^^^^^^ # (10141) expression syntax error # Too many errors printed, aborting program User break, cancelled... ninja: build stopped: subcommand failed.
|
||||
NWC24iCheckDlHeaderConsistency | repair loop inline helper receives stack task before header and repair parameters | {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} -> {'score': (5, 6), 'insns': (212, 212), 'diffs': 6} | objdiff 96.95283 | pool True | lost ['NWC24iOpenDlTaskList'] | restored
|
||||
NWC24iCheckDlHeaderConsistency | repair loop inline helper receives header and repair before the stack task | {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} -> {'score': (5, 6), 'insns': (212, 212), 'diffs': 6} | objdiff 96.95283 | pool True | lost ['NWC24iOpenDlTaskList'] | restored
|
||||
NWC24iCheckDlHeaderConsistency | header loop captures repair flag only when an entry is found | {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} -> {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} | objdiff 98.77358 | pool True | lost [] | restored
|
||||
NWC24iCheckDlHeaderConsistency | declaration search after inline-loop and parameter lifetime trials | {'score': (2, 3), 'insns': (212, 212), 'diffs': 3} -> {'score': (2, 3), 'insns': (212, 212), 'diffs': 3}
|
||||
AddTaskInternal | URL length error returned before scheme validation helper work | {'score': (20, 323), 'insns': (398, 401), 'diffs': 323} -> {'score': (23, 302), 'insns': (394, 401), 'diffs': 302} | objdiff 96.720695 | pool True | lost [] | restored
|
||||
AddTaskInternal | free slot counter remains wide and is narrowed explicitly at entry indexing | {'score': (20, 323), 'insns': (398, 401), 'diffs': 323} -> {'score': (10, 324), 'insns': (400, 401), 'diffs': 324} | objdiff 98.81546 | pool True | lost [] | restored
|
||||
AddTaskInternal | add loop handles successful free-slot lookup as its own branch | {'score': (20, 323), 'insns': (398, 401), 'diffs': 323} -> {'score': (26, 322), 'insns': (398, 401), 'diffs': 322} | objdiff 96.80299 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | fresh stack-task pointer assignment separates read and delete lifetimes after initializer | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (5, 24), 'insns': (174, 176), 'diffs': 24} | objdiff 98.63636 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | fresh delete pointer and read identifier declared before the pointer | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (5, 16), 'insns': (174, 176), 'diffs': 16} | objdiff 98.86364 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | fresh delete pointer with read identifier initialized before read pointer | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (5, 24), 'insns': (174, 176), 'diffs': 24} | objdiff 98.63636 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | initializer and read/delete task lifetimes inside successful iterator branch | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (0, 8), 'insns': (176, 176), 'diffs': 8} | objdiff 99.77273 | pool True | lost [] | restored
|
||||
NWC24PurgeOldestDlTask | successful iterator branch with selected id declared before task pointer | {'score': (29, 95), 'insns': (167, 176), 'diffs': 95} -> {'score': (0, 0), 'insns': (176, 176), 'diffs': 0} | objdiff 100.0 | pool True | lost [] | CANDIDATE
|
||||
NWC24UpdateDlTask | update permission and retry structural refinement group-order | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} | objdiff 95.02371 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | update permission and retry structural refinement retry-arguments | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (5, 29), 'insns': (253, 253), 'diffs': 29} | objdiff 98.992096 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | update permission and retry structural refinement cached-work | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (0, 26), 'insns': (253, 253), 'diffs': 26} | objdiff 99.48617 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | update permission and retry structural refinement retry-result | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (5, 29), 'insns': (253, 253), 'diffs': 29} | objdiff 98.992096 | pool True | lost [] | restored
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx | tag lookup splits each failure check at its own inline-helper boundary | {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} -> {'score': (83, 471), 'insns': (496, 452), 'diffs': 471} | objdiff 87.88717 | pool True | lost [] | restored
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx | tag lookup initializes cursor from response and declares end before start | {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} -> {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} | objdiff 98.108406 | pool True | lost [] | restored
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx | tag range and next cursor computed before output parameter stores | {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} -> {'score': (18, 161), 'insns': (452, 452), 'diffs': 161} | objdiff 94.358406 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | base64 alphabet accessed through an ordinary named constant pointer | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (16, 42), 'insns': (59, 63), 'diffs': 42} | objdiff 77.93651 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | base64 counter and accumulator use a named scalar state pair | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (44, 73), 'insns': (74, 63), 'diffs': 73} | objdiff 46.349205 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | base64 byte accumulation combines shift and read in one expression | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (9, 23), 'insns': (63, 63), 'diffs': 23} | objdiff 94.04762 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | cached retry work and permission helper receives explicit write flag | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (0, 26), 'insns': (253, 253), 'diffs': 26} | objdiff 99.48617 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | cached retry work and permission group flags captured before group id | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (0, 26), 'insns': (253, 253), 'diffs': 26} | objdiff 99.48617 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | cached retry work and group field captured by output identifier boundary | {'score': (19, 250), 'insns': (249, 253), 'diffs': 250} -> {'score': (0, 26), 'insns': (253, 253), 'diffs': 26} | objdiff 99.48617 | pool True | lost [] | restored
|
||||
__nupGetBootVersion__FP14ESTitleVersion | owned title loop captures requested title id before comparisons | {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} -> {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} | objdiff None | pool True | lost [] | restored
|
||||
__nupGetBootVersion__FP14ESTitleVersion | installed count captured after TMD success and refreshed after ES content listing | {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} -> {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} | objdiff None | pool True | lost [] | restored
|
||||
__nupGetBootVersion__FP14ESTitleVersion | boot title version conversion written at its actual call boundary | {'score': (0, 17), 'insns': (163, 163), 'diffs': 17} -> {'score': (4, 26), 'insns': (163, 163), 'diffs': 26} | objdiff None | pool True | lost [] | restored
|
||||
__nupGetTitleSize__FP12NUPTitleInfo | progress increment follows ticket TMD and content-map overhead allocation | {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} -> {'score': (4, 26), 'insns': (139, 139), 'diffs': 26} | objdiff 94.352516 | pool True | lost [] | restored
|
||||
__nupGetTitleSize__FP12NUPTitleInfo | rounded TMD allocation retained in an explicit 32-bit byte count | {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} -> {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} | objdiff 99.100716 | pool True | lost [] | restored
|
||||
__nupGetTitleSize__FP12NUPTitleInfo | size-specific installed content helper declares index before pointer | {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} -> {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} | objdiff 99.100716 | pool True | lost [] | restored
|
||||
__nupOp | boot output initialized within width-valid successful branch instead of caller | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (0, 19), 'insns': (438, 438), 'diffs': 19} | objdiff 99.748856 | pool True | lost [] | restored
|
||||
__nupOp | system title selection uses requested title as first equality operand | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} | objdiff 99.28082 | pool True | lost [] | restored
|
||||
__nupOp | title selection loop uses a dedicated index lifetime | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} | objdiff 99.25799 | pool True | lost [] | restored
|
||||
NWC24UpdateDlTask | declaration search after retry branch and permission lifetime repairs | {'score': (0, 26), 'insns': (253, 253), 'diffs': 26} -> {'score': (0, 26), 'insns': (253, 253), 'diffs': 26}
|
||||
__nupParseServerInfo__FP14NUPContextInfoPcPcUx | declaration search after structural trials in __nupParseServerInfo | {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} -> {'score': (0, 148), 'insns': (452, 452), 'diffs': 148} | exit 0
|
||||
setUpdate_NoUpdateDialog___Q33ipl5scene7SettingFv | instruction comparator reports two relative branch differences but raw bytes identical True, 120 bytes; objdiff exact 100; no source tuning needed
|
||||
__nupBase64Encode__FPUcPUcUl | declaration search after structural trials in __nupBase64Encode | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} | exit 0
|
||||
__nupGetTitleSize__FP12NUPTitleInfo | declaration search after structural trials in __nupGetTitleSize | {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} -> {'score': (0, 22), 'insns': (139, 139), 'diffs': 22} | exit 0
|
||||
__nupOp | declaration search after structural trials in __nupOp | {'score': (0, 19), 'insns': (438, 438), 'diffs': 19} -> {'score': (0, 19), 'insns': (438, 438), 'diffs': 19} | exit 0
|
||||
createBrowser__Q33ipl5scene7SettingFv | direct-page fallback keeps case seven separate from the default branch | {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} -> {'score': (15, 111), 'insns': (303, 301), 'diffs': 111} | objdiff 98.75083 | pool True | lost [] | restored
|
||||
createBrowser__Q33ipl5scene7SettingFv | direct-page search index declared with URL buffers before region lookup | {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} -> {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} | objdiff 98.8505 | pool True | lost [] | restored
|
||||
createBrowser__Q33ipl5scene7SettingFv | URL root table copied with character-pointer indexing rather than temporary page index | {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} -> {'score': (15, 114), 'insns': (299, 301), 'diffs': 114} | objdiff 98.8505 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render mode assignment begins after the local object declaration | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (34, 570), 'insns': (629, 632), 'diffs': 570} | objdiff 97.69462 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | window-null branch precedes the field load and scroll direction uses signed boolean result | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (77, 567), 'insns': (595, 632), 'diffs': 567} | objdiff 92.17405 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render-mode copy uses typed scalar fields sample pairs and seven filter bytes | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (76, 537), 'insns': (632, 632), 'diffs': 537} | objdiff 91.01899 | pool True | lost [] | restored
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc | row and string defaults are assigned only in the switch default branch | {'score': (4, 195), 'insns': (215, 213), 'diffs': 195} -> {'score': (19, 156), 'insns': (216, 213), 'diffs': 156} | objdiff 97.89202 | pool True | lost [] | restored
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc | keyboard validation result initialized immediately before its validation switch | {'score': (4, 195), 'insns': (215, 213), 'diffs': 195} -> {'score': (4, 199), 'insns': (215, 213), 'diffs': 199} | objdiff 97.10329 | pool True | lost [] | restored
|
||||
initKeyboard__Q33ipl5scene7SettingFPCc | dictionary pointers captured before obtaining the memo form | {'score': (4, 195), 'insns': (215, 213), 'diffs': 195} -> {'score': (4, 194), 'insns': (215, 213), 'diffs': 194} | objdiff 98.4554 | pool True | lost [] | restored
|
||||
calcKeyboard__Q33ipl5scene7SettingFv | text pointer copied to an initialized commit pointer after each form switch | {'score': (15, 258), 'insns': (292, 290), 'diffs': 258} -> {'score': (15, 258), 'insns': (292, 290), 'diffs': 258} | objdiff 98.0 | pool True | lost [] | restored
|
||||
calcKeyboard__Q33ipl5scene7SettingFv | asterisk replacement loop separates byte store from index update | {'score': (15, 258), 'insns': (292, 290), 'diffs': 258} -> {'score': (9, 274), 'insns': (291, 290), 'diffs': 274} | objdiff 98.63793 | pool True | lost [] | restored
|
||||
calcKeyboard__Q33ipl5scene7SettingFv | form text defaults are assigned inside each switch default clause | {'score': (15, 258), 'insns': (292, 290), 'diffs': 258} -> {'score': (21, 267), 'insns': (294, 290), 'diffs': 267} | objdiff 97.27586 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | component count initialized after UTF conversion when parsing begins | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (2, 21), 'insns': (73, 73), 'diffs': 21} | objdiff 95.945206 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | output cursor index and component boundary declared at entry | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 15), 'insns': (73, 73), 'diffs': 15} | objdiff 98.630135 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | character parser uses continue for non-delimiter characters | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} | objdiff 98.69863 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | animation booleans compared through signed integer readiness | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (9, 12), 'insns': (272, 272), 'diffs': 12} | objdiff 98.31618 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | case-seven animation index captured before flag store with signed readiness | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (6, 7), 'insns': (272, 272), 'diffs': 7} | objdiff 99.14706 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | case-nine layout and animation index lifetimes acquired together before readiness | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (6, 7), 'insns': (272, 272), 'diffs': 7} | objdiff 99.14706 | pool True | lost [] | restored
|
||||
__nupOp | validated boot conversion with title selection direct | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (0, 19), 'insns': (438, 438), 'diffs': 19} | objdiff 99.748856 | pool True | lost [] | restored
|
||||
__nupOp | validated boot conversion with title selection reference | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (0, 19), 'insns': (438, 438), 'diffs': 19} | objdiff 99.748856 | pool True | lost [] | restored
|
||||
__nupOp | validated boot conversion with title selection array | {'score': (4, 47), 'insns': (438, 438), 'diffs': 47} -> {'score': (0, 0), 'insns': (438, 438), 'diffs': 0} | objdiff 100.0 | pool True | lost [] | CANDIDATE
|
||||
__nupOp | output initialization review: ES_GetBoot2Version writes bootVersion only for IPC_RESULT_OK (0), with negative IPC error constants in private/ipc/types.h; the inline conversion writes the caller output on successful width validation. Target stores that output only after the second width comparison. No value is read on an error path. Array title access removes the extra u64 lifetime and matches all 438 instructions.
|
||||
draw__Q33ipl5scene7SettingFv | render-mode assignment plus window scroll and geometry repair branches | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (29, 567), 'insns': (629, 632), 'diffs': 567} | objdiff 98.34335 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render-mode assignment plus window scroll and geometry repair texture-guards | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (29, 567), 'insns': (629, 632), 'diffs': 567} | objdiff 98.34335 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render-mode assignment plus window scroll and geometry repair right-first | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (35, 568), 'insns': (629, 632), 'diffs': 568} | objdiff 97.870255 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render-mode assignment plus window scroll and geometry repair left-expression | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (22, 241), 'insns': (632, 632), 'diffs': 241} | objdiff 97.658226 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render-mode assignment plus window scroll and geometry repair both-edges | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (62, 629), 'insns': (631, 632), 'diffs': 629} | objdiff 93.610756 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | captured index before layout and animation helper signed | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (6, 7), 'insns': (272, 272), 'diffs': 7} | objdiff 99.14706 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | captured index before layout and animation helper output | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (26, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 96.224266 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | captured index before layout and animation helper invert | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (28, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 95.15809 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | captured index before layout and animation helper bool-int | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (28, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 95.15809 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | explicit leading declarations and parsing lifetime index-first | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 8), 'insns': (73, 73), 'diffs': 8} | objdiff 99.31507 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | explicit leading declarations and parsing lifetime array-cursor | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (9, 56), 'insns': (71, 73), 'diffs': 56} | objdiff 92.46575 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | explicit leading declarations and parsing lifetime cursor-before-index | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 10), 'insns': (73, 73), 'diffs': 10} | objdiff 99.178085 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | explicit leading declarations and parsing lifetime cursor-address | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 10), 'insns': (73, 73), 'diffs': 10} | objdiff 99.178085 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | explicit leading declarations and parsing lifetime count-before-component | {'score': (0, 16), 'insns': (73, 73), 'diffs': 16} -> {'score': (0, 10), 'insns': (73, 73), 'diffs': 10} | objdiff 99.178085 | pool True | lost [] | restored
|
||||
convertRevIP__Q33ipl5scene7SettingFPUcPCc | declaration search after structural trials in Setting::convertRevIP | {'score': (0, 8), 'insns': (73, 73), 'diffs': 8} -> {'score': (0, 8), 'insns': (73, 73), 'diffs': 8} | exit 0
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form early-store | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (30, 569), 'insns': (629, 632), 'diffs': 569} | objdiff 97.93987 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form loop-store | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (28, 567), 'insns': (631, 632), 'diffs': 567} | objdiff 98.33544 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form switch-store | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (36, 565), 'insns': (635, 632), 'diffs': 565} | objdiff 96.957275 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form integer-left | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (22, 241), 'insns': (632, 632), 'diffs': 241} | objdiff 97.658226 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form left-width | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (21, 240), 'insns': (632, 632), 'diffs': 240} | objdiff 97.52057 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form left-last | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (43, 568), 'insns': (629, 632), 'diffs': 568} | objdiff 96.60918 | pool True | lost [] | restored
|
||||
draw__Q33ipl5scene7SettingFv | render assignment with scroll and rectangle form integer-extents | {'score': (82, 570), 'insns': (595, 632), 'diffs': 570} -> {'score': (52, 616), 'insns': (635, 632), 'diffs': 616} | objdiff 93.55538 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | sextet temporaries follow first then second source order order-only | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} | objdiff 94.20635 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | sextet temporaries follow first then second source order reset-after-first | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} | objdiff 94.20635 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | sextet temporaries follow first then second source order contiguous | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (15, 46), 'insns': (60, 63), 'diffs': 46} | objdiff 81.269844 | pool True | lost [] | restored
|
||||
__nupBase64Encode__FPUcPUcUl | sextet temporaries follow first then second source order reset-before | {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} -> {'score': (9, 21), 'insns': (63, 63), 'diffs': 21} | objdiff 94.20635 | pool True | lost [] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | private guarded animation readiness implementation bool-branch | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (28, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 95.15809 | pool True | lost ['changeVideoMode__Q33ipl5scene7SettingFv', 'isAnimating__Q33ipl5scene7SettingFv', 'isWaitPlaying__Q33ipl5scene7SettingFv', 'setUpdate_ConnectTestRun___Q33ipl5scene7SettingFv'] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | private guarded animation readiness implementation integer-branch | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (28, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 95.15809 | pool True | lost ['changeVideoMode__Q33ipl5scene7SettingFv', 'isAnimating__Q33ipl5scene7SettingFv', 'isWaitPlaying__Q33ipl5scene7SettingFv'] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | private guarded animation readiness implementation integer-ternary | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (26, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 96.224266 | pool True | lost ['isAnimating__Q33ipl5scene7SettingFv'] | restored
|
||||
scanAP__Q33ipl5scene7SettingFv | private guarded animation readiness implementation integer-equality | {'score': (53, 160), 'insns': (266, 272), 'diffs': 160} -> {'score': (26, 160), 'insns': (266, 272), 'diffs': 160} | objdiff 96.224266 | pool True | lost [] | restored
|
||||
|
||||
Final audit: 15 objdiff-open functions; each has at least three distinct successful source attempts and source snapshots. Unowned report changes: 0. Final full gate: GATE PASS.
|
||||
@@ -0,0 +1,53 @@
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 8140/12496 data 80/80 functions 25/30 fuzzy 99.1521 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 25/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 99.15205
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 99.303795
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 95.00395
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 97.7182
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 6828/12496 data 80 functions 23 fuzzy 98.2676
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 7496/10764 data 1720/1720 functions 19/23 fuzzy 93.4430 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 19/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 93.442955
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 98.108406
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 94.20635
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 99.100716
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 5744/10764 data 1720 functions 18 fuzzy 93.3222
|
||||
[src/scene/setting/iplSetting] pool: IDENTICAL
|
||||
[src/scene/setting/iplSetting] objdiff: code 30760/37884 data 1040/5696 functions 106/112 fuzzy 99.1581 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 105/112
|
||||
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
|
||||
[src/scene/setting/iplSetting] section .data size 4016 match 5.146636
|
||||
[src/scene/setting/iplSetting] section .rodata size 640 match 32.25412
|
||||
[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.15806
|
||||
[src/scene/setting/iplSetting] below 100: createBrowser__Q33ipl5scene7SettingFv 98.8505
|
||||
[src/scene/setting/iplSetting] below 100: draw__Q33ipl5scene7SettingFv 91.525314
|
||||
[src/scene/setting/iplSetting] below 100: initKeyboard__Q33ipl5scene7SettingFPCc 98.38498
|
||||
[src/scene/setting/iplSetting] below 100: calcKeyboard__Q33ipl5scene7SettingFv 98.0
|
||||
[src/scene/setting/iplSetting] below 100: convertRevIP__Q33ipl5scene7SettingFPUcPCc 98.69863
|
||||
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 95.39338
|
||||
[src/scene/setting/iplSetting] baseline: code 30760/37884 data 1040 functions 106 fuzzy 99.1581
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 87.68906 -> 87.79135
|
||||
global fuzzy_match_percent: 99.36968 -> 99.37380
|
||||
global complete_code_percent: 61.81448 -> 61.81448
|
||||
global matched_data_percent: 91.26920 -> 91.26920
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
126
tools/decomp-assist/sol-med-structural-round12.report.md
Normal file
126
tools/decomp-assist/sol-med-structural-round12.report.md
Normal file
@@ -0,0 +1,126 @@
|
||||
# Structural round 12 final report
|
||||
|
||||
Matching-only pass in the current worktree. No linking configuration, symbols, assembly, shared-header changes, remote operations or other worktrees were retained.
|
||||
|
||||
## Final full gate
|
||||
|
||||
Command:
|
||||
|
||||
```text
|
||||
python3 /mnt/drive2/projects/wii-ipl-workers/_restore0928-tools/gate.py libs/RevoEX/src/nwc24/NWC24Download libs/RVL_SDK/src/nup/nup src/scene/setting/iplSetting
|
||||
```
|
||||
|
||||
```text
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 8140/12496 data 80/80 functions 25/30 fuzzy 99.1521 linked code 0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 25/30
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 99.15205
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 98.923615
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 99.303795
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 95.00395
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 97.7182
|
||||
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 6828/12496 data 80 functions 23 fuzzy 98.2676
|
||||
[libs/RVL_SDK/src/nup/nup] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/nup/nup] objdiff: code 7496/10764 data 1720/1720 functions 19/23 fuzzy 93.4430 linked code 0
|
||||
[libs/RVL_SDK/src/nup/nup] instruction-exact functions: 19/23
|
||||
[libs/RVL_SDK/src/nup/nup] section .data size 1592 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .rodata size 88 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sbss size 8 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .sdata size 32 match 100.0
|
||||
[libs/RVL_SDK/src/nup/nup] section .text size 10764 match 93.442955
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupParseServerInfo__FP14NUPContextInfoPcPcUx 98.108406
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupBase64Encode__FPUcPUcUl 94.20635
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetBootVersion__FP14ESTitleVersion None
|
||||
[libs/RVL_SDK/src/nup/nup] below 100: __nupGetTitleSize__FP12NUPTitleInfo 99.100716
|
||||
[libs/RVL_SDK/src/nup/nup] baseline: code 5744/10764 data 1720 functions 18 fuzzy 93.3222
|
||||
[src/scene/setting/iplSetting] pool: IDENTICAL
|
||||
[src/scene/setting/iplSetting] objdiff: code 30760/37884 data 1040/5696 functions 106/112 fuzzy 99.1581 linked code 0
|
||||
[src/scene/setting/iplSetting] instruction-exact functions: 105/112
|
||||
[src/scene/setting/iplSetting] section .bss size 456 match 100.0
|
||||
[src/scene/setting/iplSetting] section .data size 4016 match 5.146636
|
||||
[src/scene/setting/iplSetting] section .rodata size 640 match 32.25412
|
||||
[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.15806
|
||||
[src/scene/setting/iplSetting] below 100: createBrowser__Q33ipl5scene7SettingFv 98.8505
|
||||
[src/scene/setting/iplSetting] below 100: draw__Q33ipl5scene7SettingFv 91.525314
|
||||
[src/scene/setting/iplSetting] below 100: initKeyboard__Q33ipl5scene7SettingFPCc 98.38498
|
||||
[src/scene/setting/iplSetting] below 100: calcKeyboard__Q33ipl5scene7SettingFv 98.0
|
||||
[src/scene/setting/iplSetting] below 100: convertRevIP__Q33ipl5scene7SettingFPUcPCc 98.69863
|
||||
[src/scene/setting/iplSetting] below 100: scanAP__Q33ipl5scene7SettingFv 95.39338
|
||||
[src/scene/setting/iplSetting] baseline: code 30760/37884 data 1040 functions 106 fuzzy 99.1581
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 87.68906 -> 87.79135
|
||||
global fuzzy_match_percent: 99.36968 -> 99.37380
|
||||
global complete_code_percent: 61.81448 -> 61.81448
|
||||
global matched_data_percent: 91.26920 -> 91.26920
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
```
|
||||
|
||||
## Before -> after
|
||||
|
||||
| Unit | Instruction exact | Objdiff exact functions | Objdiff exact code bytes | Objdiff data bytes |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | 23/30 -> 25/30 | 23/30 -> 25/30 | 6828 -> 8140 / 12496 | 80 -> 80 / 80 |
|
||||
| libs/RVL_SDK/src/nup/nup | 18/23 -> 19/23 | 18/23 -> 19/23 | 5744 -> 7496 / 10764 | 1720 -> 1720 / 1720 |
|
||||
| src/scene/setting/iplSetting | 105/112 -> 105/112 | 106/112 -> 106/112 | 30760 -> 30760 / 37884 | 1040 -> 1040 / 5696 |
|
||||
|
||||
Starting HEAD: `a348c9777aa65410b85f255be2a24363187d83aa`. Fresh start report: `/tmp/sol-med-structural12/start-report.json`; fresh final report: `/tmp/sol-med-structural12/final-report.json`. All 1024 unowned units retain identical measures, function records and section records to the starting report.
|
||||
|
||||
## Exact improvements and commits
|
||||
|
||||
| Commit | Source | Result | Full gate evidence |
|
||||
| --- | --- | --- | --- |
|
||||
| `8913ba0c` | `libs/RevoEX/src/nwc24/NWC24Download.c` | `NWC24ManageDlTaskListForMenu`: 150/152 -> 152/152; objdiff 100.0; ctxdiff 0. Fresh task-pointer assignment separates read and delete lifetimes. | `/tmp/sol-med-structural12/menu-full-gate.txt` |
|
||||
| `785f85ad` | `libs/RevoEX/src/nwc24/NWC24Download.c` | `NWC24PurgeOldestDlTask`: 167/176 -> 176/176; objdiff 100.0; ctxdiff 0. Real iterator initializer boundary, selected-ID declaration order and successful-iteration read/delete lifetimes. | `/tmp/sol-med-structural12/purge-full-gate.txt` |
|
||||
| `7cbf242f` | `libs/RVL_SDK/src/nup/nup.cpp` | `__nupOp`: 438/438 with 47 differences -> 438/438 with 0; objdiff 100.0. Width-valid boot output store plus direct context-title access. | `/tmp/sol-med-structural12/op-full-gate.txt` |
|
||||
|
||||
Each improvement passed a full clean 43U gate before its local commit. Every pool, including string offsets, remains identical. The final full gate independently rebuilt all three units and confirms zero baseline regressions, zero forbidden additions, zero readability warnings and the original DOL SHA-1. Setting remains unchanged; fuzzy-only experiments were restored.
|
||||
|
||||
The boot-version local in `__nupOp` is an output parameter initialized by the successful getter. `ES_GetBoot2Version` writes its output only for `IPC_RESULT_OK` (0); `private/ipc/types.h` defines negative IPC errors. The inline conversion initializes the caller output after width validation and the caller exits on a negative result. This does not read an uninitialized value on the API success/error paths.
|
||||
|
||||
## Remaining nonmatching functions
|
||||
|
||||
Percentages below describe the retained final source. Better partial candidates are rejected snapshots, not claimed gains. Structural and positional scores come from declsearch; the instruction count comes from disassembly. Every remaining function has at least three successful, distinct logged source attempts and three source snapshots.
|
||||
|
||||
| Unit | Exact symbol | Objdiff percent | Instructions; score; attempts | Remaining difference |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | `NWC24InitDlTask` | 98.923615 | 144/144; (0, 31); 5 attempts, 5 snapshots | 144/144 instructions; cached header, owner halves and home-path zero register allocation differ. Five source forms plus a 71-build declaration search did not change the register plateau. |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | `NWC24IterateDlTask` | 99.303795 | 79/79; (0, 10); 3 attempts, 3 snapshots | 79/79 instructions; cached work/header registers are exchanged. Three loop/header/helper forms and a 36-build declaration search did not produce exact allocation. |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | `NWC24UpdateDlTask` | 95.003950 | 249/253; (19, 250); 13 attempts, 13 snapshots | 249/253 instructions; permission helper boundaries, retry-header branch and saved-register/frame allocation differ. Thirteen source trials reduced the best rejected candidate to 253/253 and register-only score (0,26), 99.48617%; its declaration search did not improve. |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | `NWC24iCheckDlHeaderConsistency` | 98.773580 | 212/212; (2, 3); 3 attempts, 3 snapshots | 212/212 instructions; three prologue instructions initialize the stack-task pointer after the two parameter aliases rather than before them. Two inline-loop argument orders regressed NWC24iOpenDlTaskList and were restored; repair-alias and declaration search also failed. |
|
||||
| libs/RevoEX/src/nwc24/NWC24Download | `AddTaskInternal` | 97.718200 | 398/401; (20, 323); 3 attempts, 3 snapshots | 398/401 instructions; URL failure/helper boundaries, free-slot narrowing and inline retry bookkeeping differ. A wide free-slot counter reached 400/401, 98.81546%, with structural differences remaining; all three candidates were restored. |
|
||||
| libs/RVL_SDK/src/nup/nup | `__nupParseServerInfo__FP14NUPContextInfoPcPcUx` | 98.108406 | 452/452; (0, 148); 3 attempts, 3 snapshots | 452/452 instructions; register allocation across repeated inline tag searches differs. Split checks, cursor declarations and output-store temporaries were tried before a 36-build declaration search; no exact candidate. |
|
||||
| libs/RVL_SDK/src/nup/nup | `__nupBase64Encode__FPUcPUcUl` | 94.206350 | 63/63; (9, 21); 7 attempts, 7 snapshots | 63/63 instructions; first/second sextet extraction, table load/store scheduling and byte-count register differ. Seven distinct source trials plus declaration search did not match; swapping first/second source declarations compiled to the same mismatch. |
|
||||
| libs/RVL_SDK/src/nup/nup | `__nupGetBootVersion__FP14ESTitleVersion` | None (unpaired) | 163/163; (0, 17); 3 attempts, 3 snapshots | 163/163 instructions after manual alias pairing; 17 register differences in title/content loops. Target symbol omits the context parameter present in the implementation and target ABI. Three title-ID/count/conversion trials were restored. No rename, symbol or configuration change. |
|
||||
| libs/RVL_SDK/src/nup/nup | `__nupGetTitleSize__FP12NUPTitleInfo` | 99.100716 | 139/139; (0, 22); 3 attempts, 3 snapshots | 139/139 instructions; wide-size addition and installed-content lookup register allocation differ. Progress order, explicit rounded size and helper declarations were tried before declaration search; no exact candidate. |
|
||||
| src/scene/setting/iplSetting | `createBrowser__Q33ipl5scene7SettingFv` | 98.850500 | 299/301; (15, 114); 3 attempts, 3 snapshots | 299/301 instructions; 0x200 frame versus target 0x210, saved-register allocation and direct-page switch branches differ. The target has explicit case seven and an unreachable default retaining r30; safe default variants retain extra instructions. Three explicit branch/declaration/index trials were restored. |
|
||||
| src/scene/setting/iplSetting | `draw__Q33ipl5scene7SettingFv` | 91.525314 | 595/632; (82, 570); 15 attempts, 15 snapshots | 595/632 instructions; render-mode initialization emits a block copy instead of target typed assignment, scroll-store branches and side-rectangle integer/float scheduling also differ. Fifteen trials found a rejected 629/632, 98.34335% candidate using ordinary render-mode assignment and corrected branches; rectangle variants remained structural mismatches. |
|
||||
| src/scene/setting/iplSetting | `initKeyboard__Q33ipl5scene7SettingFPCc` | 98.384980 | 215/213; (4, 195); 3 attempts, 3 snapshots | 215/213 instructions; defined row/string fallback values add instructions and affect frame/register allocation. Default-branch assignments, validation lifetime and dictionary temporaries were tried. No uninitialized fallback values were introduced. |
|
||||
| src/scene/setting/iplSetting | `calcKeyboard__Q33ipl5scene7SettingFv` | 98.000000 | 292/290; (15, 258); 3 attempts, 3 snapshots | 292/290 instructions; defined form-text defaults and asterisk-loop index/store scheduling differ. Initialized commit pointer, separate store/update and explicit switch defaults were tried. No uninitialized form-text values were introduced. |
|
||||
| src/scene/setting/iplSetting | `convertRevIP__Q33ipl5scene7SettingFPUcPCc` | 98.698630 | 73/73; (0, 16); 8 attempts, 8 snapshots | 73/73 instructions; ASCII buffer, output cursor, index and terminator register allocation differ. Eight source trials plus a 23-build declaration search left the best rejected candidate at eight register differences, 99.31507%. |
|
||||
| src/scene/setting/iplSetting | `scanAP__Q33ipl5scene7SettingFv` | 95.393380 | 266/272; (53, 160); 11 attempts, 8 snapshots | 266/272 instructions; animation BOOL materialization, case-seven flag/index order and case-nine layout/index scheduling differ. Eleven distinct source trials reached a rejected 272/272 candidate with seven differences, 99.14706%; three branches use bgt instead of target bne, with four load-order differences. Guarded header experiments regressed other exact functions and were fully restored. |
|
||||
|
||||
## Measurement uncertainties
|
||||
|
||||
- `__nupGetBootVersion__FP14ESTitleVersion` is unpaired in objdiff because the source symbol includes `NUPContextInfo*`. Manual pairing proves 163/163 instructions and 17 register differences; no percentage was invented and no symbol was renamed.
|
||||
- `setUpdate_NoUpdateDialog___Q33ipl5scene7SettingFv` is already objdiff 100.0 and its 120 raw code bytes match. The odiff comparator used by the gate interprets the CR operand of two conditional branches as an immediate and subtracts the function address, reporting two false branch differences. This explains instruction exact 105/112 versus objdiff 106/112 in Setting; the function was left untouched.
|
||||
- Setting data remains 1040/5696: original zero-filled weak vtable/inline sections from DOL extraction prevent complete object data matching. No data padding, symbol-address pinning or link work was attempted. The full gate verifies the unchanged linked DOL, which does not claim this nonmatching unit is linked.
|
||||
|
||||
## Files and evidence
|
||||
|
||||
- Source: `libs/RevoEX/src/nwc24/NWC24Download.c`, `libs/RVL_SDK/src/nup/nup.cpp`.
|
||||
- Attempt log: `tools/decomp-assist/sol-med-structural-round12.attempts.md`.
|
||||
- Full final gate: `tools/decomp-assist/sol-med-structural-round12.final-gate.txt`.
|
||||
- This report: `tools/decomp-assist/sol-med-structural-round12.report.md`.
|
||||
- Target assembly, baseline/variant diffs, distinct source snapshots and declaration-search output remain under `/tmp/sol-med-structural12/`.
|
||||
- Earlier untracked round 8, 9 and 11 records were preserved.
|
||||
Reference in New Issue
Block a user