Compare commits
1 Commits
agent/bitt
...
cleanup/ip
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18326569a4 |
@@ -53,9 +53,9 @@ Progress
|
||||
<!-- progress:start -->
|
||||
| Decompiled | Matched | Linked | Data |
|
||||
|:---:|:---:|:---:|:---:|
|
||||
| 99.38% | 88.09% | 62.52% | 92.12% |
|
||||
| 99.38% | 88.00% | 62.37% | 92.07% |
|
||||
|
||||
units 921/1027 complete, functions 12232/12563 matched.
|
||||
units 920/1027 complete, functions 12226/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 -->
|
||||
|
||||
@@ -688,13 +688,13 @@ src/scene/memoryCard/iplMemoryCard.cpp:
|
||||
.text start:0x813C9DCC end:0x813CC1FC
|
||||
.rodata start:0x81610368 end:0x81610480
|
||||
.data start:0x81651D30 end:0x81652640
|
||||
.sdata2 start:0x81694A68 end:0x81694A78
|
||||
.sdata2 start:0x81694A68 end:0x81694A80
|
||||
.sdata start:0x81696C78 end:0x81696CA0
|
||||
|
||||
src/scene/memoryCard/iplMemoryCardBase.cpp:
|
||||
.text start:0x813CC1FC end:0x813CD034
|
||||
.data start:0x81652640 end:0x816526D0
|
||||
.sdata2 start:0x81694A78 end:0x81694A88
|
||||
.sdata2 start:0x81694A80 end:0x81694A88
|
||||
|
||||
src/scene/memoryCard/iplMemoryCardManager.cpp:
|
||||
.text start:0x813CD034 end:0x813CE548
|
||||
@@ -3551,12 +3551,12 @@ libs/RVL_SDK/src/bte/l2c_csm.c:
|
||||
|
||||
libs/RVL_SDK/src/bte/l2c_link.c:
|
||||
.text start:0x815AC630 end:0x815AD7BC
|
||||
.data start:0x8168E930 end:0x8168EBA0
|
||||
.data start:0x8168E930 end:0x8168EB68
|
||||
|
||||
libs/RVL_SDK/src/bte/l2c_main.c:
|
||||
.bss start:0x811725E0 end:0x81172DC8
|
||||
.text start:0x815AD7BC end:0x815AE7EC
|
||||
.data start:0x8168EBA0 end:0x8168EEA0
|
||||
.data start:0x8168EB68 end:0x8168EEA0
|
||||
|
||||
libs/RVL_SDK/src/bte/l2c_utils.c:
|
||||
.text start:0x815AE7EC end:0x815B06B0
|
||||
|
||||
@@ -22275,8 +22275,8 @@ lbl_81697394 = .sdata:0x81697394; // type:object size:0x4 data:wstring
|
||||
lbl_81697398 = .sdata:0x81697398; // type:object size:0x4
|
||||
lbl_8169739C = .sdata:0x8169739C; // type:object size:0x4
|
||||
lbl_816973A0 = .sdata:0x816973A0; // type:object size:0x4 data:4byte
|
||||
scN_KOR = .sdata:0x816973A4; // type:object size:0x6 data:string
|
||||
scN_CHN = .sdata:0x816973AC; // type:object size:0x6 data:string
|
||||
lbl_816973A4 = .sdata:0x816973A4; // type:object size:0x6 data:string
|
||||
lbl_816973AC = .sdata:0x816973AC; // type:object size:0x6 data:string
|
||||
sbCompatibleFilterEnabled__Q39textinput9inputform13DeadKeyStream = .sdata:0x816973B2; // type:object size:0x1 data:byte
|
||||
mbHyphen__Q29textinput9inputform = .sdata:0x816973B3; // type:object size:0x1 data:byte
|
||||
lbl_816973B4 = .sdata:0x816973B4; // type:object size:0x4
|
||||
|
||||
@@ -934,7 +934,7 @@ config.libs = [
|
||||
Object(Matching, "keyboard/tiDebug.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiGUIManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiHKBManager.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiHwKeyboard.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiHwKeyboard.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiLayout.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(Matching, "keyboard/tiLayoutGather.cpp", extra_cflags=["-O4,p"]),
|
||||
Object(NonMatching, "keyboard/tiKoreanInput.cpp", extra_cflags=["-O4,p"]), # for 4.3K
|
||||
|
||||
@@ -149,7 +149,6 @@ namespace textinput {
|
||||
void Update();
|
||||
|
||||
u32 GetModifierState() const;
|
||||
void SetCountry(u8 country);
|
||||
void SetModifierState(u32, u32);
|
||||
|
||||
#if defined(TI_CELLPHONE_HKB_KEYSET)
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace textinput {
|
||||
#else
|
||||
~HWKeyboard();
|
||||
#endif
|
||||
#if defined(TIMANAGER_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
|
||||
#ifdef TIMANAGER_IMPLEMENTATION
|
||||
void setLanguage(Destination destination, Language language);
|
||||
#endif
|
||||
|
||||
@@ -49,7 +49,6 @@ namespace textinput {
|
||||
void controlKeyTriggeredHandler(input::HKBManager);
|
||||
|
||||
Manager *mgr() { return mpManager; }
|
||||
const Manager *mgr() const { return mpManager; }
|
||||
|
||||
Manager* mpManager; // 0x10
|
||||
u8 field_0x14; // 0x14
|
||||
|
||||
@@ -309,8 +309,8 @@ namespace ipl {
|
||||
return mbArrowVisible[i];
|
||||
}
|
||||
|
||||
void setSuppressNewMailAnm(bool flag) {
|
||||
mbSuppressNewMailAnm = flag;
|
||||
void setUnk_0x105(bool flag) {
|
||||
unk_0x105 = flag;
|
||||
}
|
||||
|
||||
protected:
|
||||
@@ -354,7 +354,7 @@ namespace ipl {
|
||||
ANIM_MAX,
|
||||
};
|
||||
|
||||
int mAnimWait;
|
||||
int unk_0x54;
|
||||
|
||||
layout::Object* mpLayout; // 0x58
|
||||
nand::LayoutFile* mpLayoutFile; // 0x5C
|
||||
@@ -373,8 +373,8 @@ namespace ipl {
|
||||
|
||||
BOOL mbHovered[BTN_MAX]; // 0xD8
|
||||
|
||||
bool mbNewMailAnm;
|
||||
bool mbSuppressNewMailAnm;
|
||||
bool unk_0x104;
|
||||
bool unk_0x105;
|
||||
|
||||
utility::timer mTimer; // 0x108
|
||||
bool mbEnabled; // 0x110
|
||||
|
||||
@@ -95,9 +95,9 @@ namespace ipl {
|
||||
|
||||
public:
|
||||
nw4r::ut::List mDateList; // 0x84
|
||||
nw4r::ut::List mDrawList;
|
||||
nw4r::ut::List unk_0x90;
|
||||
bool mbScrolling; // 0x9C
|
||||
vBOOL mbSearchTaskRunning;
|
||||
vBOOL unk_0xA0;
|
||||
BOOL mbTaskCanceled; // 0xA4
|
||||
vBOOL mbBackToBoardAlt; // 0xA8
|
||||
bool mbAsian; // 0xAC
|
||||
|
||||
@@ -68,8 +68,8 @@ namespace ipl {
|
||||
vBOOL mbAppearMsg; // 0x0C
|
||||
|
||||
private:
|
||||
u32 mFocusState;
|
||||
int mPendingFocusCmd;
|
||||
u32 unk_0x10;
|
||||
int unk_0x14;
|
||||
layout::Object* mpLayout; // 0x18
|
||||
gui::PaneManager* mpGui; // 0x1C
|
||||
layout::PaneAnimator* mpCurrentPaneAnim; // 0x20
|
||||
@@ -77,7 +77,7 @@ namespace ipl {
|
||||
|
||||
public:
|
||||
utility::Date* mpDate; // 0x38
|
||||
u32 mPointCount;
|
||||
u32 unk_0x3C;
|
||||
|
||||
static const char* mscAnimPanes[ANIM_PANE_MAX];
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace ipl {
|
||||
};
|
||||
|
||||
virtual BOOL isResetAcceptable() const {
|
||||
return mbResetAcceptable;
|
||||
return unk_0x7D;
|
||||
}
|
||||
|
||||
virtual void prepare();
|
||||
@@ -108,7 +108,7 @@ namespace ipl {
|
||||
static const int mToFace_Duration = 20;
|
||||
|
||||
bool mbClosing; // 0x7C
|
||||
bool mbResetAcceptable;
|
||||
bool unk_0x7D;
|
||||
|
||||
wchar_t* mWCString; // 0x80
|
||||
|
||||
|
||||
@@ -152,7 +152,7 @@ namespace ipl {
|
||||
BOOL is_working();
|
||||
|
||||
#ifdef IPL_SD_CHANNEL_SELECT_CPP
|
||||
void requestCancel() { mbCancel = true; }
|
||||
void requestCancel() { unk_0x04 = true; }
|
||||
#endif
|
||||
|
||||
WIISaveBannerFile* get_cached_nand_save_banner(ESTitleId titleId);
|
||||
@@ -531,7 +531,7 @@ namespace ipl {
|
||||
static void wad_backup_progress_callback(u32 completed, u32 total, BOOL done);
|
||||
|
||||
Work* myWork; // 0x00
|
||||
bool mbCancel; // 0x04
|
||||
bool unk_0x04; // 0x04
|
||||
|
||||
static const char* c_banner_file_name;
|
||||
static const char* c_nocopy_folder_name;
|
||||
|
||||
@@ -64,8 +64,8 @@ typedef struct {
|
||||
u16 mcuYCount; // 0x10
|
||||
u16 mcuXCount2; // 0x12
|
||||
u32 unk_0x14;
|
||||
u8 remX; // 0x18
|
||||
u8 remY; // 0x19
|
||||
u8 unk_0x18;
|
||||
u8 unk_0x19;
|
||||
u8 compCount; // 0x1A
|
||||
u8 scanCompCount; // 0x1B
|
||||
u8 blockCount[4]; // 0x1C
|
||||
@@ -143,8 +143,8 @@ struct TMCCJPEGDecWork_t {
|
||||
u16 mcuYCount; // 0x1800
|
||||
u16 mcuXCount2; // 0x1802
|
||||
u32 unk_0x1804;
|
||||
u8 remX; // 0x1808
|
||||
u8 remY; // 0x1809
|
||||
u8 unk_0x1808;
|
||||
u8 unk_0x1809;
|
||||
u8 compCount; // 0x180A
|
||||
u8 scanCompCount; // 0x180B
|
||||
u8 blockCount[4]; // 0x180C
|
||||
|
||||
@@ -59,8 +59,8 @@ s32 TMCJPEGDEC_Setsize(TMCCJPEGDecWork* work) {
|
||||
state->stepY = (state->scaleFactor + work->mcuXRem - 1) / state->scaleFactor;
|
||||
state->jpegWidth = ((s32)(work->frameWidth + state->scaleFactor) - 1) / state->scaleFactor;
|
||||
state->jpegHeight = (state->scaleFactor + work->frameHeight - 1) / state->scaleFactor;
|
||||
state->stepXExt = (state->scaleFactor + work->remX - 1) / state->scaleFactor;
|
||||
state->stepYExt = (state->scaleFactor + work->remY - 1) / state->scaleFactor;
|
||||
state->stepXExt = (state->scaleFactor + work->unk_0x1808 - 1) / state->scaleFactor;
|
||||
state->stepYExt = (state->scaleFactor + work->unk_0x1809 - 1) / state->scaleFactor;
|
||||
|
||||
state->dataSizeX = (state->stepXExt != 0) ? (state->maxX - 1) * state->stepX : (state->maxX + 1) * state->stepX;
|
||||
state->dataSizeY = (state->stepYExt != 0) ? (state->maxY - 1) * state->stepY : (state->maxY + 1) * state->stepY;
|
||||
|
||||
@@ -562,8 +562,8 @@ s32 TMCJPEGDEC_scan_varinit(TMCCJPEGDecWork* work) {
|
||||
remX = p->frameWidth % p->mcuXCount;
|
||||
remY = p->frameHeight % p->mcuXRem;
|
||||
|
||||
p->remX = remX;
|
||||
p->remY = remY;
|
||||
p->unk_0x18 = remX;
|
||||
p->unk_0x19 = remY;
|
||||
|
||||
p->mcuYCount = p->mcuYCount + ((u8)remX != 0 ? 1 : 0);
|
||||
p->mcuXCount2 = p->mcuXCount2 + ((u8)remY != 0 ? 1 : 0);
|
||||
@@ -1919,8 +1919,8 @@ static s32 TMCJPEGDEC_parse_sof(TMCCJPEGDecWork* work) {
|
||||
remX = fw - mcuCountX * mcuX;
|
||||
remY = fh - mcuCountY * mcuY;
|
||||
|
||||
work->remX = remX;
|
||||
work->remY = remY;
|
||||
work->unk_0x1808 = remX;
|
||||
work->unk_0x1809 = remY;
|
||||
|
||||
{
|
||||
u16 xr = (remX != 0) ? 1 : 0;
|
||||
|
||||
@@ -215,9 +215,9 @@ struct __zi8_work_data_s {
|
||||
ziU32 unk_0x0C;
|
||||
ziU32 unk_0x10;
|
||||
ziU16 unk_0x14;
|
||||
ziU8 cangjieEnabled; // 0x16
|
||||
ziU8 unk_0x16;
|
||||
ziU8 unk_0x17;
|
||||
ziU8 subLanguage; // 0x18
|
||||
ziU8 unk_0x18;
|
||||
ziU8 unk_0x19;
|
||||
ziU16 unk_0x1A;
|
||||
ziU8 unk_0x1C[3];
|
||||
@@ -258,7 +258,7 @@ struct __zi8_work_data_s {
|
||||
ziU8 unk_0x330[8];
|
||||
ziU32 unk_0x338;
|
||||
ziU8 unk_0x33C[0x1FC];
|
||||
ziU8 language; // 0x538
|
||||
ziU8 unk_0x538;
|
||||
ziU8 unk_0x539;
|
||||
ziU8 unk_0x53A[0x40];
|
||||
ziWChar unk_0x57A[0x641];
|
||||
|
||||
@@ -55,7 +55,7 @@ ziU32 Zi8GetTableData(ziU8 lang, ziU8 tableIdx, ziU8 memberId ZI_NEED_WORK) {
|
||||
if (langIdx-- != 0) {
|
||||
tableData = ZI_WORK->langEntries[langIdx].tableData;
|
||||
if ((lang == ZI8_LANG_ZH) && (tableData[3] >= 4) &&
|
||||
((ZI_WORK->subLanguage == 1) || (ZI_WORK->subLanguage == 0x80) || (ZI_WORK->subLanguage == 0x40))) {
|
||||
((ZI_WORK->unk_0x18 == 1) || (ZI_WORK->unk_0x18 == 0x80) || (ZI_WORK->unk_0x18 == 0x40))) {
|
||||
offset = ((tableData[0x8B] << 0x10) + (tableData[0x8C] << 8) + tableData[0x8D]);
|
||||
if (offset != 0) {
|
||||
tableData += offset;
|
||||
|
||||
@@ -430,7 +430,7 @@ static int zi8InternalGetZH(ziGetParam* request, ZiChineseOptions* options, ziPt
|
||||
if (getMode != 7 && getMode != 10 && getMode != 8 && getMode != 9) {
|
||||
Zi8PrepareMatch(request, &match, 0, work);
|
||||
} else {
|
||||
if (!((struct __zi8_work_data_s*)work)->cangjieEnabled || request->elementCount > 6) {
|
||||
if (!((struct __zi8_work_data_s*)work)->unk_0x16 || request->elementCount > 6) {
|
||||
resultFallback = 0;
|
||||
goto engine_finish;
|
||||
}
|
||||
@@ -1151,7 +1151,7 @@ context_word_lookup:
|
||||
if (ordinalIndex == 0xFFFF) goto context_results_done;
|
||||
record = records + ordinalIndex * 12;
|
||||
phoneticGroups = phraseTable + ((record[9] & 15) << 16 | (record[11] | record[10] << 8));
|
||||
if (((struct __zi8_work_data_s*)work)->cangjieEnabled) {
|
||||
if (((struct __zi8_work_data_s*)work)->unk_0x16) {
|
||||
switch (phoneticGroups[0] & 7) {
|
||||
case 2: phoneticGroups += 2; break;
|
||||
case 3: case 4: phoneticGroups += 3; break;
|
||||
@@ -1965,7 +1965,7 @@ component_retry:
|
||||
((ZiChineseWork*)work)->duplicateOrdinals[((ZiChineseWork*)work)->duplicateIndex] = ordinalIndex;
|
||||
relatedRecord = records + ordinalIndex * 12;
|
||||
phoneticGroups = phraseTable + ((relatedRecord[9] & 15) << 16 | (relatedRecord[11] | relatedRecord[10] << 8));
|
||||
if (((struct __zi8_work_data_s*)work)->cangjieEnabled) {
|
||||
if (((struct __zi8_work_data_s*)work)->unk_0x16) {
|
||||
switch (phoneticGroups[0] & 7) {
|
||||
case 2: phoneticGroups += 2; break;
|
||||
case 3: case 4: phoneticGroups += 3; break;
|
||||
|
||||
@@ -164,7 +164,7 @@ static ziBool Zi8AlphaSignature(ziGetParam* parameters, ziBool countOnly ZI_NEED
|
||||
if (parameters->maxCandidates < length) length = parameters->maxCandidates;
|
||||
parameters->letters = length;
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
ZI_WORK->language = parameters->language;
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
parameters->candidates[0] = 0xfff0;
|
||||
output = (ziWChar*)&ZI_WORK->unk_0x338;
|
||||
}
|
||||
@@ -490,8 +490,8 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
ZI_WORK->unk_0x00 = '\0';
|
||||
}
|
||||
}
|
||||
ZI_WORK->subLanguage = parameters->subLanguage;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
ZI_WORK->unk_0x18 = parameters->subLanguage;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1,ZI_WORK) & 2;
|
||||
options->maxCount = ZI_WORK->unk_0x10;
|
||||
options->maxWordLength = ZI_WORK->unk_0x0A;
|
||||
ZI_WORK->unk_0x0A = -1;
|
||||
@@ -558,7 +558,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
else if ((parameters->language == 1) &&
|
||||
((((parameters->getMode == 7 || (parameters->getMode == 8)) || (parameters->getMode == 10)) || (parameters->getMode == 9)))) {
|
||||
if (ZI_WORK->cangjieEnabled != '\0') {
|
||||
if (ZI_WORK->unk_0x16 != '\0') {
|
||||
candidateCount = Zi8GetChineseCandidates(parameters,options,ZI_WORK);
|
||||
} else {
|
||||
error = 0x708;
|
||||
@@ -582,7 +582,7 @@ ziU32 Zi8GetCandidatesOrCount(ziGetParam* parameters, ZiCandidateOptions* option
|
||||
}
|
||||
}
|
||||
else {
|
||||
ZI_WORK->language = parameters->language;
|
||||
ZI_WORK->unk_0x538 = parameters->language;
|
||||
if ((parameters->getOptions & 0x80) == 0) {
|
||||
saved.restoreCandidates = 1;
|
||||
saved.savedOptions = parameters->getOptions;
|
||||
|
||||
@@ -42,13 +42,13 @@ ziU8 Zi8InitializeDynamic(ziLanguageEntry* langEntries ZI_NEED_WORK) {
|
||||
return 0;
|
||||
}
|
||||
ZI_WORK->unk_0x1874 = 0x2D;
|
||||
ZI_WORK->language = 0;
|
||||
ZI_WORK->unk_0x538 = 0;
|
||||
ZI_WORK->unk_0x1C[3] = 0;
|
||||
ZI_WORK->unk_0x141A = 0x100;
|
||||
Zi8SetLatinSearchOrder(0, 0, ZI_WORK);
|
||||
ZADP_Zi8SetPDremoveOpt(1, ZI_WORK);
|
||||
ZI_WORK->unk_0x17 = 5;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, ZI_WORK) & 2;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1, ZI_WORK) & 2;
|
||||
ZI_WORK->unk_0x1B28.bits.msb = 1;
|
||||
ZI_WORK->unk_0x1B2C.bits.msb = 1;
|
||||
zyFuzzy = ZI_WORK->unk_0x1B2C.word;
|
||||
|
||||
@@ -24,17 +24,17 @@ ziU8 Zi8GetZHCharSet(ziPtr workData) {
|
||||
return 0;
|
||||
}
|
||||
if (Zi8GetTableCount(1, 10, workData) != 0) {
|
||||
bak = ((struct __zi8_work_data_s*)workData)->subLanguage;
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = 1;
|
||||
bak = ((struct __zi8_work_data_s*)workData)->unk_0x18;
|
||||
((struct __zi8_work_data_s*)workData)->unk_0x18 = 1;
|
||||
addr = Zi8GetTableAddress(1, 10, workData);
|
||||
p = (ziU8*)addr;
|
||||
v0 = (ziU16)((ziU16)p[0] | ((ziU16)p[1] << 8));
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = 0;
|
||||
((struct __zi8_work_data_s*)workData)->unk_0x18 = 0;
|
||||
addr = Zi8GetTableAddress(1, 10, workData);
|
||||
p = (ziU8*)addr;
|
||||
v1 = (ziU16)((ziU16)p[2] | ((ziU16)p[3] << 8));
|
||||
v2 = (ziU16)((ziU16)p[4] | ((ziU16)p[5] << 8));
|
||||
((struct __zi8_work_data_s*)workData)->subLanguage = bak;
|
||||
((struct __zi8_work_data_s*)workData)->unk_0x18 = bak;
|
||||
if (v0 != 0) {
|
||||
if (v0 > 0x4E20) {
|
||||
charSet |= 8;
|
||||
|
||||
@@ -139,7 +139,7 @@ ziU32 Zi8SecMatchChar(ziPtr nodeAddress, ziU8* dictionaryAddress, ziMatchParam*
|
||||
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, ZI_WORK);
|
||||
data += ((ziU8*)nodeAddress)[0xB] + (((ziU8*)nodeAddress)[0xA] << 8) + ((((ziU8*)nodeAddress)[9] & 0xF) << 16);
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
switch (data[0] & 7) {
|
||||
case 2:
|
||||
data += 2;
|
||||
@@ -346,7 +346,7 @@ match_code:
|
||||
traversal.soundIndex = initialCode;
|
||||
}
|
||||
sound = (ziU8*)(tableAddress + ((node[9] & 0xF) * 0x10000 + (node[0xB] + node[0xA] * 0x100)));
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
switch (sound[0] & 7) {
|
||||
case 2:
|
||||
sound += 2;
|
||||
|
||||
@@ -37,7 +37,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
p = (ziU8*)(table2 +
|
||||
(((e[9] & 0xF) << 16) |
|
||||
(e[0xB] | (e[0xA] << 8))));
|
||||
if (WORKP->cangjieEnabled != 0) {
|
||||
if (WORKP->unk_0x16 != 0) {
|
||||
switch (p[0] & 7) {
|
||||
case 2:
|
||||
p += 2;
|
||||
@@ -65,7 +65,7 @@ ziU16 Zi8Uni2Ptr(ziU16 ch, ziE12* buf ZI_NEED_WORK) {
|
||||
}
|
||||
}
|
||||
e = (ziU8*)table;
|
||||
if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->subLanguage) {
|
||||
if (WORKP->unk_0x1B18 != ZI8_NULL && WORKP->unk_0x1B24 == WORKP->unk_0x18) {
|
||||
if ((ziU16)ch >= WORKP->unk_0x1B1C && (ziU16)ch <= WORKP->unk_0x1B1E) {
|
||||
i = (ziU16)(ch - WORKP->unk_0x1B1C);
|
||||
goto map;
|
||||
|
||||
@@ -103,10 +103,10 @@ ziBool Zi8IsWordW(ziWChar* word, ziU8 language ZI_NEED_WORK) {
|
||||
if (length == 1) return 1;
|
||||
count = --length;
|
||||
ordinals[count] |= 0x8000;
|
||||
ZI_WORK->cangjieEnabled = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
ZI_WORK->unk_0x16 = Zi8GetFormatVersion(1, __zi8_work_data) & 2;
|
||||
entry = (ziChineseEntry*)Zi8GetTableAddress(1, 0, __zi8_work_data) + ordinals[0];
|
||||
data = (ziU8*)Zi8GetTableAddress(1, 1, __zi8_work_data) + ((entry->offsetHigh & 15) << 16 | ((entry->offsetLow[0] << 8) | entry->offsetLow[1]));
|
||||
if (ZI_WORK->cangjieEnabled != 0) {
|
||||
if (ZI_WORK->unk_0x16 != 0) {
|
||||
switch (*data & 7) {
|
||||
case 2:
|
||||
offset = 2;
|
||||
|
||||
@@ -19,21 +19,21 @@ typedef struct CXUncompContextRL {
|
||||
u8* outData; // 0x00
|
||||
int outDataLen; // 0x04
|
||||
u32 size; // 0x08
|
||||
u16 length; // 0x0C
|
||||
u8 flags; // 0x0E
|
||||
u8 hdrLen; // 0x0F
|
||||
u16 unk_0x0C; // 0x0C
|
||||
u8 unk_0x0e; // 0x0E
|
||||
u8 unk_0x0f; // 0x0F
|
||||
} CXUncompContextRL;
|
||||
|
||||
typedef struct CXUncompContextLZ {
|
||||
u8* outData; // 0x00
|
||||
int outDataLen; // 0x04
|
||||
u32 size; // 0x08
|
||||
int length; // 0x0C
|
||||
u8 lengthBytesLeft; // 0x10
|
||||
u8 flags; // 0x11
|
||||
u8 flagsLeft; // 0x12
|
||||
u8 hdrLen; // 0x13
|
||||
u8 lzType; // 0x14
|
||||
int unk_0x0C; // 0x0C
|
||||
u8 unk_0x10; // 0x10
|
||||
u8 unk_0x11; // 0x11
|
||||
u8 unk_0x12; // 0x12
|
||||
u8 unk_0x13; // 0x13
|
||||
u8 unk_0x14; // 0x14
|
||||
u8 padding[3];
|
||||
} CXUncompContextLZ;
|
||||
|
||||
@@ -52,10 +52,10 @@ typedef struct CXUncompContextHuffman {
|
||||
u32 size; // 0x08
|
||||
CXHuffmanDecodeTableEntry* decodeTable; // 0x0C
|
||||
u32 bits; // 0x10
|
||||
u32 wordBuffer; // 0x14
|
||||
u32 unk_0x14; // 0x14
|
||||
s16 decodeTableSize; // 0x18
|
||||
u8 bitsLeft; // 0x1A
|
||||
u8 wordBits; // 0x1B
|
||||
u8 unk_0x1b; // 0x1B
|
||||
u8 depth; // 0x1C
|
||||
u8 hdrLen; // 0x1D
|
||||
u8 padding[2]; // 0x1E
|
||||
|
||||
@@ -67,17 +67,14 @@ BOOL AXFXChorusExpSettings(AXFX_CHORUS_EXP* fx) {
|
||||
OSRestoreInterrupts(enabled);
|
||||
return result;
|
||||
}
|
||||
static void __FreeDelayLine(AXFX_CHORUS_EXP* fx) {
|
||||
void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx) {
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
u32 channel;
|
||||
fx->active |= 1;
|
||||
for (channel = 0; channel < 3; channel++) {
|
||||
if (fx->delay.line[channel] != NULL) __AXFXFree(fx->delay.line[channel]);
|
||||
fx->delay.line[channel] = NULL;
|
||||
}
|
||||
}
|
||||
void AXFXChorusExpShutdown(AXFX_CHORUS_EXP* fx) {
|
||||
BOOL enabled = OSDisableInterrupts();
|
||||
fx->active |= 1;
|
||||
__FreeDelayLine(fx);
|
||||
OSRestoreInterrupts(enabled);
|
||||
}
|
||||
void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
|
||||
@@ -121,11 +118,10 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
|
||||
fx->history[0][history] = fx->delay.line[0][source];
|
||||
fx->history[1][history] = fx->delay.line[1][source];
|
||||
fx->history[2][history] = fx->delay.line[2][source];
|
||||
history++;
|
||||
history &= 3;
|
||||
history = (history + 1) & 3;
|
||||
source++;
|
||||
whole--;
|
||||
if (source >= fx->delay.size) source = 0;
|
||||
whole--;
|
||||
}
|
||||
fx->delay.lastPos = position & 0xFFFF0000;
|
||||
coefficients = __AXFXGetSrcCoef((fraction >> 9) & 0x7F);
|
||||
@@ -133,18 +129,14 @@ void AXFXChorusExpCallback(AXFX_BUFFERUPDATE* update, AXFX_CHORUS_EXP* fx) {
|
||||
f32 filtered = 0.0f;
|
||||
f32 dry;
|
||||
filtered += coefficients[0] * fx->history[channel][history];
|
||||
history++;
|
||||
history &= 3;
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[1] * fx->history[channel][history];
|
||||
history++;
|
||||
history &= 3;
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[2] * fx->history[channel][history];
|
||||
history++;
|
||||
history &= 3;
|
||||
history = (history + 1) & 3;
|
||||
filtered += coefficients[3] * fx->history[channel][history];
|
||||
history++;
|
||||
history &= 3;
|
||||
if (fx->busIn != NULL) dry = *output[channel] + *input[channel]++;
|
||||
history = (history + 1) & 3;
|
||||
if (fx->busIn != NULL) dry = *input[channel]++ + *output[channel];
|
||||
else dry = *output[channel];
|
||||
fx->delay.line[channel][fx->delay.inPos] = dry + filtered * fx->feedback;
|
||||
*output[channel]++ = filtered * fx->outGain;
|
||||
|
||||
@@ -7,21 +7,21 @@ static inline CXHuffmanDecodeTableEntry* GetNextNode(CXHuffmanDecodeTableEntry*,
|
||||
void CXInitUncompContextRL(CXUncompContextRL* context, u8* data) {
|
||||
context->outData = data;
|
||||
context->outDataLen = 0;
|
||||
context->flags = 0;
|
||||
context->length = 0;
|
||||
context->hdrLen = 8;
|
||||
context->unk_0x0e = 0;
|
||||
context->unk_0x0C = 0;
|
||||
context->unk_0x0f = 8;
|
||||
context->size = 0;
|
||||
}
|
||||
|
||||
void CXInitUncompContextLZ(CXUncompContextLZ* context, u8* data) {
|
||||
context->outData = data;
|
||||
context->outDataLen = 0;
|
||||
context->flags = 0;
|
||||
context->flagsLeft = 0;
|
||||
context->length = 0;
|
||||
context->lengthBytesLeft = 3;
|
||||
context->hdrLen = 8;
|
||||
context->lzType = 0;
|
||||
context->unk_0x11 = 0;
|
||||
context->unk_0x12 = 0;
|
||||
context->unk_0x0C = 0;
|
||||
context->unk_0x10 = 3;
|
||||
context->unk_0x13 = 8;
|
||||
context->unk_0x14 = 0;
|
||||
context->size = 0;
|
||||
}
|
||||
|
||||
@@ -31,8 +31,8 @@ void CXInitUncompContextHuffman(CXUncompContextHuffman* context, u8* data) {
|
||||
context->depth = 0;
|
||||
context->decodeTableSize = -1;
|
||||
context->decodeTable = context->decodeTableData;
|
||||
context->wordBuffer = 0;
|
||||
context->wordBits = 0;
|
||||
context->unk_0x14 = 0;
|
||||
context->unk_0x1b = 0;
|
||||
context->bits = 0;
|
||||
context->bitsLeft = 0;
|
||||
context->hdrLen = 8;
|
||||
@@ -42,9 +42,9 @@ void CXInitUncompContextHuffman(CXUncompContextHuffman* context, u8* data) {
|
||||
CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u32 size) {
|
||||
const u8* pSrc = src;
|
||||
|
||||
if (context->hdrLen) {
|
||||
if (context->unk_0x0f) {
|
||||
int a;
|
||||
if (context->hdrLen == 8) {
|
||||
if (context->unk_0x0f == 8) {
|
||||
if ((*pSrc & CX_COMPRESSION_TYPE_MASK) != CX_COMPRESSION_TYPE_RUN_LENGTH) {
|
||||
return CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
}
|
||||
@@ -54,22 +54,22 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
|
||||
}
|
||||
}
|
||||
|
||||
a = CXiReadHeader(&context->hdrLen, &context->outDataLen, pSrc, size, context->size);
|
||||
a = CXiReadHeader(&context->unk_0x0f, &context->outDataLen, pSrc, size, context->size);
|
||||
|
||||
pSrc += a;
|
||||
size -= a;
|
||||
|
||||
if (!size) {
|
||||
return !context->hdrLen ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
return !context->unk_0x0f ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
while (context->outDataLen > 0) {
|
||||
if (!(context->flags & 0x80)) {
|
||||
while (context->length) {
|
||||
if (!(context->unk_0x0e & 0x80)) {
|
||||
while (context->unk_0x0C) {
|
||||
*context->outData++ = *pSrc++;
|
||||
|
||||
context->length--;
|
||||
context->unk_0x0C--;
|
||||
context->outDataLen--;
|
||||
size--;
|
||||
|
||||
@@ -77,14 +77,14 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
|
||||
return context->outDataLen;
|
||||
}
|
||||
}
|
||||
} else if (context->length) {
|
||||
} else if (context->unk_0x0C) {
|
||||
u8 b = *pSrc++;
|
||||
size--;
|
||||
|
||||
while (context->length) {
|
||||
while (context->unk_0x0C) {
|
||||
*context->outData++ = b;
|
||||
|
||||
context->length--;
|
||||
context->unk_0x0C--;
|
||||
context->outDataLen--;
|
||||
}
|
||||
|
||||
@@ -93,22 +93,22 @@ CXStreamingResult CXReadUncompRL(CXUncompContextRL* context, const void* src, u3
|
||||
}
|
||||
}
|
||||
|
||||
context->flags = *pSrc++;
|
||||
context->unk_0x0e = *pSrc++;
|
||||
size--;
|
||||
context->length = context->flags & 0x7f;
|
||||
context->unk_0x0C = context->unk_0x0e & 0x7f;
|
||||
|
||||
if (context->flags & 0x80) {
|
||||
context->length += 3;
|
||||
if (context->unk_0x0e & 0x80) {
|
||||
context->unk_0x0C += 3;
|
||||
} else {
|
||||
context->length += 1;
|
||||
context->unk_0x0C += 1;
|
||||
}
|
||||
|
||||
if (context->length > context->outDataLen) {
|
||||
if (context->unk_0x0C > context->outDataLen) {
|
||||
if (!context->size) {
|
||||
return CX_STREAMING_ERR_BAD_FILE_SIZE;
|
||||
}
|
||||
|
||||
context->length = context->outDataLen;
|
||||
context->unk_0x0C = context->outDataLen;
|
||||
}
|
||||
|
||||
if (size) {
|
||||
@@ -160,39 +160,39 @@ static int CXiReadHeader(u8* pHdrLen, int* pOutLen, const u8* pSrc, int srcSize,
|
||||
CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u32 size) {
|
||||
const u8* pSrc = src;
|
||||
|
||||
if (context->hdrLen) {
|
||||
if (context->unk_0x13) {
|
||||
int a;
|
||||
if (context->hdrLen == 8) {
|
||||
if (context->unk_0x13 == 8) {
|
||||
if ((*pSrc & CX_COMPRESSION_TYPE_MASK) != CX_COMPRESSION_TYPE_LZ) {
|
||||
return CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
}
|
||||
|
||||
context->lzType = *pSrc & 0x0F;
|
||||
context->unk_0x14 = *pSrc & 0x0F;
|
||||
|
||||
if (context->lzType != 0 && context->lzType != 1) {
|
||||
if (context->unk_0x14 != 0 && context->unk_0x14 != 1) {
|
||||
return CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
a = CXiReadHeader(&context->hdrLen, &context->outDataLen, pSrc, size, context->size);
|
||||
a = CXiReadHeader(&context->unk_0x13, &context->outDataLen, pSrc, size, context->size);
|
||||
|
||||
pSrc += a;
|
||||
size -= a;
|
||||
|
||||
if (!size) {
|
||||
return !context->hdrLen ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
return !context->unk_0x13 ? context->outDataLen : CX_STREAMING_ERR_BAD_FILE_TYPE;
|
||||
}
|
||||
}
|
||||
|
||||
while (context->outDataLen > 0) {
|
||||
while (context->flagsLeft) {
|
||||
while (context->unk_0x12) {
|
||||
s32 a;
|
||||
|
||||
if (!size) {
|
||||
return context->outDataLen;
|
||||
}
|
||||
|
||||
if (!(context->flags & 0x80)) {
|
||||
if (!(context->unk_0x11 & 0x80)) {
|
||||
*context->outData++ = *pSrc++;
|
||||
context->outDataLen--;
|
||||
|
||||
@@ -201,38 +201,38 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
|
||||
goto there;
|
||||
}
|
||||
|
||||
while (context->lengthBytesLeft) {
|
||||
context->lengthBytesLeft--;
|
||||
while (context->unk_0x10) {
|
||||
context->unk_0x10--;
|
||||
|
||||
if (!context->lzType) {
|
||||
context->length = *pSrc++;
|
||||
context->length += 0x30;
|
||||
context->lengthBytesLeft = 0;
|
||||
if (!context->unk_0x14) {
|
||||
context->unk_0x0C = *pSrc++;
|
||||
context->unk_0x0C += 0x30;
|
||||
context->unk_0x10 = 0;
|
||||
} else {
|
||||
switch (context->lengthBytesLeft) {
|
||||
switch (context->unk_0x10) {
|
||||
case 2: {
|
||||
context->length = *pSrc++;
|
||||
context->unk_0x0C = *pSrc++;
|
||||
|
||||
if (context->length >> 4 == 1) {
|
||||
context->length = (context->length & 0x0F) << 16;
|
||||
context->length += 0x1110;
|
||||
} else if (context->length >> 4 == 0) {
|
||||
context->length = (context->length & 0x0F) << 8;
|
||||
context->length += 0x110;
|
||||
context->lengthBytesLeft = 1;
|
||||
if (context->unk_0x0C >> 4 == 1) {
|
||||
context->unk_0x0C = (context->unk_0x0C & 0x0F) << 16;
|
||||
context->unk_0x0C += 0x1110;
|
||||
} else if (context->unk_0x0C >> 4 == 0) {
|
||||
context->unk_0x0C = (context->unk_0x0C & 0x0F) << 8;
|
||||
context->unk_0x0C += 0x110;
|
||||
context->unk_0x10 = 1;
|
||||
} else {
|
||||
context->length += 0x10;
|
||||
context->lengthBytesLeft = 0;
|
||||
context->unk_0x0C += 0x10;
|
||||
context->unk_0x10 = 0;
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
context->length += *pSrc++ << 8;
|
||||
context->unk_0x0C += *pSrc++ << 8;
|
||||
break;
|
||||
}
|
||||
case 0: {
|
||||
context->length += *pSrc++;
|
||||
context->unk_0x0C += *pSrc++;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -244,26 +244,26 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
|
||||
}
|
||||
}
|
||||
|
||||
a = (context->length & 0x0F) << 8;
|
||||
context->length >>= 4;
|
||||
a = (context->unk_0x0C & 0x0F) << 8;
|
||||
context->unk_0x0C >>= 4;
|
||||
|
||||
a = (a | *pSrc++) + 1;
|
||||
size--;
|
||||
context->lengthBytesLeft = 3;
|
||||
context->unk_0x10 = 3;
|
||||
|
||||
if (context->length > context->outDataLen) {
|
||||
if (context->unk_0x0C > context->outDataLen) {
|
||||
if (!context->size) {
|
||||
return CX_STREAMING_ERR_BAD_FILE_SIZE;
|
||||
}
|
||||
|
||||
context->length = context->outDataLen;
|
||||
context->unk_0x0C = context->outDataLen;
|
||||
}
|
||||
|
||||
while (context->length > 0) {
|
||||
while (context->unk_0x0C > 0) {
|
||||
*context->outData = context->outData[-a];
|
||||
context->outData++;
|
||||
context->outDataLen--;
|
||||
context->length--;
|
||||
context->unk_0x0C--;
|
||||
}
|
||||
|
||||
there:
|
||||
@@ -271,16 +271,16 @@ CXStreamingResult CXReadUncompLZ(CXUncompContextLZ* context, const void* src, u3
|
||||
goto out;
|
||||
}
|
||||
|
||||
context->flags <<= 1;
|
||||
context->flagsLeft--;
|
||||
context->unk_0x11 <<= 1;
|
||||
context->unk_0x12--;
|
||||
}
|
||||
|
||||
if (!size) {
|
||||
return context->outDataLen;
|
||||
}
|
||||
|
||||
context->flags = *pSrc++;
|
||||
context->flagsLeft = 8;
|
||||
context->unk_0x11 = *pSrc++;
|
||||
context->unk_0x12 = 8;
|
||||
size--;
|
||||
}
|
||||
|
||||
@@ -369,16 +369,16 @@ CXStreamingResult CXReadUncompHuffman(CXUncompContextHuffman* context, const voi
|
||||
continue;
|
||||
}
|
||||
|
||||
context->wordBuffer >>= context->depth;
|
||||
context->wordBuffer |= context->decodeTable->raw << (32 - context->depth);
|
||||
context->unk_0x14 >>= context->depth;
|
||||
context->unk_0x14 |= context->decodeTable->raw << (32 - context->depth);
|
||||
context->decodeTable = context->decodeTableData + 1;
|
||||
context->wordBits += context->depth;
|
||||
context->unk_0x1b += context->depth;
|
||||
|
||||
if (context->wordBits == 32) {
|
||||
*context->outData = CXiConvertEndian32_(context->wordBuffer);
|
||||
if (context->unk_0x1b == 32) {
|
||||
*context->outData = CXiConvertEndian32_(context->unk_0x14);
|
||||
context->outData++;
|
||||
context->outDataLen -= 4;
|
||||
context->wordBits = 0;
|
||||
context->unk_0x1b = 0;
|
||||
|
||||
if (context->outDataLen <= 0) {
|
||||
goto out;
|
||||
|
||||
@@ -322,8 +322,6 @@ pf_s32 PFCLUSTER_CombineFiles(PFCLUSTER_ENT_ITER* p_first_iter, PFCLUSTER_ENT_IT
|
||||
pf_u32 first_spare_clusters;
|
||||
pf_u32 second_spare_clusters;
|
||||
pf_u32 excess_clusters;
|
||||
pf_s32 second_allocated_clusters;
|
||||
pf_u32 capacity_clusters;
|
||||
pf_u32 first_end_cluster;
|
||||
pf_u32 first_spare_cluster;
|
||||
pf_u32 second_spare_cluster;
|
||||
@@ -372,10 +370,8 @@ pf_s32 PFCLUSTER_CombineFiles(PFCLUSTER_ENT_ITER* p_first_iter, PFCLUSTER_ENT_IT
|
||||
if (*p_second_iter->ffd.p_start_cluster != 0) {
|
||||
second_spare_clusters = p_second_iter->ffd.last_cluster.max_chain_index + 1 - second_used_clusters;
|
||||
}
|
||||
second_allocated_clusters = second_used_clusters + second_spare_clusters;
|
||||
capacity_clusters = -1U / cluster_size + 1;
|
||||
if (capacity_clusters < first_used_clusters + second_allocated_clusters) {
|
||||
excess_clusters = first_used_clusters + second_allocated_clusters - capacity_clusters;
|
||||
if (-1U / cluster_size + 1 < (second_used_clusters + second_spare_clusters) + first_used_clusters) {
|
||||
excess_clusters = (second_used_clusters + second_spare_clusters) + first_used_clusters - (-1U / cluster_size + 1);
|
||||
err = PFFAT_TraceClustersChain(&p_second_iter->ffd, second_spare_cluster,
|
||||
cluster_size * ((p_second_iter->ffd.last_cluster.max_chain_index + 1 - excess_clusters) - second_used_clusters),
|
||||
&end_cluster, &spare_cluster);
|
||||
@@ -538,7 +534,7 @@ pf_s32 PFCLUSTER_DivideFile(PFCLUSTER_ENT_ITER* p_source_iter, PFCLUSTER_ENT_ITE
|
||||
|
||||
pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
|
||||
pf_u32 cluster_index, pf_u32 num_clusters, pf_u32* p_inserted_clusters) {
|
||||
pf_u32 requested_size;
|
||||
pf_s32 err;
|
||||
pf_u32 previous_cluster;
|
||||
pf_u32 next_cluster;
|
||||
pf_u32 success_size;
|
||||
@@ -548,7 +544,7 @@ pf_s32 PFCLUSTER_InsertCluster(PFCLUSTER_ENT_ITER* p_iter, PF_DIR_ENT* p_ent,
|
||||
pf_u32 allocated_size;
|
||||
pf_u32 first_cluster;
|
||||
pf_u32 last_cluster;
|
||||
pf_s32 err;
|
||||
pf_u32 requested_size;
|
||||
pf_u32 file_clusters;
|
||||
pf_u32 remainder;
|
||||
pf_u32 extra_size;
|
||||
|
||||
@@ -54,9 +54,9 @@ typedef struct _CDBAttrBuf {
|
||||
|
||||
typedef struct _CDBAttr {
|
||||
CDBAttrBuf buf; // 0x00
|
||||
BOOL dirty; // 0x400
|
||||
BOOL wiiIdDirty; // 0x404
|
||||
BOOL wiiIdValid; // 0x408
|
||||
BOOL unk_0x400; // 0x400
|
||||
BOOL unk_0x404; // 0x404
|
||||
BOOL unk_0x408; // 0x408
|
||||
} CDBAttr;
|
||||
|
||||
#pragma pack(pop)
|
||||
|
||||
@@ -44,8 +44,8 @@ typedef struct NWC24MsgObjPrivate {
|
||||
#else
|
||||
NWC24UserId fromId; // 0x20
|
||||
#endif
|
||||
u32 date; // 0x28
|
||||
u32 receivedDate; // 0x2C
|
||||
u32 unk_0x28;
|
||||
u32 unk_0x2C;
|
||||
NWC24Data unk_0x30;
|
||||
NWC24Data unk_0x38;
|
||||
NWC24Data subject; // 0x40
|
||||
|
||||
@@ -55,9 +55,9 @@ CDBErr CDBAttrCheckAttrBuf(CDBAttr* attr) {
|
||||
|
||||
void CDBAttrInit(CDBAttr* attr) {
|
||||
memset(&attr->buf, 0, sizeof(CDBAttrBuf));
|
||||
attr->wiiIdValid = FALSE;
|
||||
attr->dirty = FALSE;
|
||||
attr->wiiIdDirty = FALSE;
|
||||
attr->unk_0x408 = FALSE;
|
||||
attr->unk_0x400 = FALSE;
|
||||
attr->unk_0x404 = FALSE;
|
||||
}
|
||||
|
||||
CDBErr CDBAttrCreateOnNAND(CDBAttr* attr, const char* desc, u32 lastModifiedDate) {
|
||||
@@ -89,7 +89,7 @@ CDBErr CDBAttrCreateOnNAND(CDBAttr* attr, const char* desc, u32 lastModifiedDate
|
||||
|
||||
err = CDB_ERROR_OK;
|
||||
|
||||
attr->dirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
}
|
||||
|
||||
if (err != CDB_ERROR_OK) {
|
||||
@@ -98,11 +98,11 @@ CDBErr CDBAttrCreateOnNAND(CDBAttr* attr, const char* desc, u32 lastModifiedDate
|
||||
|
||||
attrLastModifiedDate = lastModifiedDate;
|
||||
memcpy(&attr->buf.lastModifiedDate, &attrLastModifiedDate, sizeof(u32));
|
||||
attr->dirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
|
||||
attrModifiedCount = 0;
|
||||
memcpy(&attr->buf.cdbID.modifiedCount, &attrModifiedCount, sizeof(u32));
|
||||
attr->dirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
|
||||
GenCDBIdNumber(&cdbNum);
|
||||
attrCdbIDNum = cdbNum;
|
||||
@@ -110,12 +110,12 @@ CDBErr CDBAttrCreateOnNAND(CDBAttr* attr, const char* desc, u32 lastModifiedDate
|
||||
|
||||
attrWiiID = CDBGetWiiId();
|
||||
memcpy(&attr->buf.wiiId, &attrWiiID, sizeof(u64));
|
||||
attr->wiiIdValid = TRUE;
|
||||
attr->unk_0x408 = TRUE;
|
||||
|
||||
err = CDB_ERROR_OK;
|
||||
|
||||
attr->dirty = TRUE;
|
||||
attr->wiiIdDirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
attr->unk_0x404 = TRUE;
|
||||
|
||||
return err;
|
||||
}
|
||||
@@ -123,7 +123,7 @@ CDBErr CDBAttrCreateOnNAND(CDBAttr* attr, const char* desc, u32 lastModifiedDate
|
||||
CDBErr CDBAttrSetModifiedDate(CDBAttr* attr, u32 modifiedDate) {
|
||||
u32 value = modifiedDate;
|
||||
memcpy(&attr->buf.lastModifiedDate, &value, sizeof(u32));
|
||||
attr->dirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
|
||||
return CDB_ERROR_OK;
|
||||
}
|
||||
@@ -131,7 +131,7 @@ CDBErr CDBAttrSetModifiedDate(CDBAttr* attr, u32 modifiedDate) {
|
||||
CDBErr CDBAttrSetModifiedCount(CDBAttr* attr, u32 modifiedCount) {
|
||||
u32 value = modifiedCount;
|
||||
memcpy(&attr->buf.cdbID.modifiedCount, &value, sizeof(u32));
|
||||
attr->dirty = TRUE;
|
||||
attr->unk_0x400 = TRUE;
|
||||
|
||||
return CDB_ERROR_OK;
|
||||
}
|
||||
@@ -151,7 +151,7 @@ CDBErr CDBAttrGetIDNumber(CDBAttr* attr, CDBId* cdbID) {
|
||||
CDBErr CDBAttrSetWiiId(CDBAttr* attr, u64 wiiId) {
|
||||
u64 value = wiiId;
|
||||
memcpy(&attr->buf.wiiId, &value, sizeof(u64));
|
||||
attr->wiiIdDirty = TRUE;
|
||||
attr->unk_0x404 = TRUE;
|
||||
|
||||
return CDB_ERROR_OK;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ CDBErr CDBRecordFileReadAttrBuf(CDBRecord* record) {
|
||||
return err;
|
||||
}
|
||||
|
||||
recordFile->attr.wiiIdValid = TRUE;
|
||||
recordFile->attr.unk_0x408 = TRUE;
|
||||
|
||||
return CDB_ERROR_OK;
|
||||
}
|
||||
@@ -34,12 +34,12 @@ CDBErr CDBRecordFileWriteAttrBuf(CDBRecord* record) {
|
||||
return CDB_ERROR_27;
|
||||
}
|
||||
|
||||
if (recordFile->attr.dirty && !recordFile->attr.wiiIdDirty) {
|
||||
if (recordFile->attr.unk_0x400 && !recordFile->attr.unk_0x404) {
|
||||
err = CDBFWriteAttrOnlyLeadChunk(&recordFile->bridgeFile, &recordFile->attr, record->key.location);
|
||||
if (err != CDB_ERROR_OK) {
|
||||
return err;
|
||||
}
|
||||
} else if (recordFile->attr.dirty || recordFile->attr.wiiIdDirty) {
|
||||
} else if (recordFile->attr.unk_0x400 || recordFile->attr.unk_0x404) {
|
||||
err = CDBFWriteAttr(&recordFile->bridgeFile, &recordFile->attr, record->key.location);
|
||||
if (err != CDB_ERROR_OK) {
|
||||
return err;
|
||||
|
||||
@@ -783,7 +783,7 @@ static NWC24Err DuplicationCheck(MBCHeader* header, const NWC24MsgObjPrivate* ms
|
||||
continue;
|
||||
}
|
||||
if (msg->unk_0x1C != 0 && entry->crc == msg->unk_0x1C && entry->type == msg->type && entry->length == msg->length &&
|
||||
entry->flags == msg->unk_0x10 && (s32)entry->date == (s32)msg->date) {
|
||||
entry->flags == msg->unk_0x10 && (s32)entry->date == (s32)msg->unk_0x28) {
|
||||
duplicateId = entry->msgId;
|
||||
duplicateOffset = offset;
|
||||
continue;
|
||||
@@ -962,8 +962,8 @@ static NWC24Err CopyMsgObjToMBCFmt(const NWC24MsgObjPrivate* msg, MBCEntry* entr
|
||||
entry->crc = msg->unk_0x1C;
|
||||
entry->fromIdHigh = msg->fromIdHigh;
|
||||
entry->fromIdLow = msg->fromIdLow;
|
||||
entry->date = msg->date;
|
||||
entry->receivedDate = msg->receivedDate;
|
||||
entry->date = msg->unk_0x28;
|
||||
entry->receivedDate = msg->unk_0x2C;
|
||||
entry->numTo = msg->numTo;
|
||||
entry->numAttached = msg->numAttached;
|
||||
entry->groupId = msg->groupId;
|
||||
@@ -1009,8 +1009,8 @@ static NWC24Err CopyMsgObjToPrvFmt(const MBCEntry* entry, NWC24MsgObjPrivate* ms
|
||||
msg->unk_0x1C = entry->crc;
|
||||
msg->fromIdHigh = entry->fromIdHigh;
|
||||
msg->fromIdLow = entry->fromIdLow;
|
||||
msg->date = entry->date;
|
||||
msg->receivedDate = entry->receivedDate;
|
||||
msg->unk_0x28 = entry->date;
|
||||
msg->unk_0x2C = entry->receivedDate;
|
||||
msg->numTo = entry->numTo;
|
||||
msg->numAttached = entry->numAttached;
|
||||
msg->groupId = entry->groupId;
|
||||
|
||||
@@ -158,7 +158,7 @@ static inline NWC24Err WriteMessageIdField(NWC24MsgObjPrivate* msg) {
|
||||
Mail_memset(buffer, 0, 1024);
|
||||
Mail_strcpy(buffer, "Message-Id: <");
|
||||
Mail_memset(idText, 0, 32);
|
||||
Mail_sprintf(idText, "%05X%08X%08X%08X", msg->msgId, (u32)(myId >> 32), (u32)myId, msg->date);
|
||||
Mail_sprintf(idText, "%05X%08X%08X%08X", msg->msgId, (u32)(myId >> 32), (u32)myId, msg->unk_0x28);
|
||||
Mail_strcat(buffer, idText);
|
||||
Mail_strcat(buffer, domain);
|
||||
Mail_strcat(buffer, ">\r\n");
|
||||
@@ -312,7 +312,7 @@ static NWC24Err NWC24CommitMsgInternal(NWC24MsgObjPrivate* msg, NWC24MBoxType ty
|
||||
}
|
||||
CHECK_WRITE(WriteExtraFields(msg));
|
||||
Mail_memset(MultiPartDivider, 0, 40);
|
||||
Mail_sprintf(MultiPartDivider, "Boundary-NWC24-%08X%05X", msg->date, msg->msgId);
|
||||
Mail_sprintf(MultiPartDivider, "Boundary-NWC24-%08X%05X", msg->unk_0x28, msg->msgId);
|
||||
buffer = NWC24WorkP->stringWork;
|
||||
Mail_memset(buffer, 0, 1024);
|
||||
Mail_strcpy(buffer, "MIME-Version: 1.0\r\n");
|
||||
@@ -654,9 +654,9 @@ static NWC24Err WriteDateField(NWC24MsgObjPrivate* msg) {
|
||||
date.sec = calendar.sec;
|
||||
if (date.month > 12)
|
||||
return NWC24_ERR_FORMAT;
|
||||
NWC24iDateToMinutes(&msg->date, &date);
|
||||
NWC24iDateToMinutes(&msg->unk_0x28, &date);
|
||||
if (msg->type & 0x1000000)
|
||||
NWC24iMinutesToDate(&date, msg->receivedDate);
|
||||
NWC24iMinutesToDate(&date, msg->unk_0x2C);
|
||||
buffer = NWC24WorkP->stringWork;
|
||||
Mail_memset(buffer, 0, 1024);
|
||||
Mail_sprintf(buffer, "Date: %02d %s %d %02d:%02d:%02d -0000\r\n", date.day, months[date.month - 1], date.year, date.hour, date.min, date.sec);
|
||||
|
||||
@@ -46,9 +46,9 @@ NWC24Err NWC24InitMsgObj(NWC24MsgObj* msg, NWC24MsgType type) {
|
||||
return NWC24_ERR_INVALID_VALUE;
|
||||
}
|
||||
|
||||
msgObj->date = 0;
|
||||
msgObj->unk_0x28 = 0;
|
||||
msgObj->type |= 0x200000;
|
||||
msgObj->receivedDate = 0;
|
||||
msgObj->unk_0x2C = 0;
|
||||
|
||||
NWC24GetMyUserId(&msgObj->fromId);
|
||||
msgObj->numTo = 0;
|
||||
@@ -477,7 +477,7 @@ NWC24Err NWC24GetMsgFromId(const NWC24MsgObj* msg, NWC24UserId* fromId) {
|
||||
NWC24Err NWC24GetMsgDate(const NWC24MsgObj* msg, OSCalendarTime* msgDate) {
|
||||
const NWC24MsgObjPrivate* msgObj = (const NWC24MsgObjPrivate*)msg;
|
||||
|
||||
NWC24iMinutesToOSCalendarTime(msgDate, msgObj->date);
|
||||
NWC24iMinutesToOSCalendarTime(msgDate, msgObj->unk_0x28);
|
||||
return NWC24_OK;
|
||||
}
|
||||
|
||||
|
||||
@@ -258,17 +258,11 @@ char* SOInetNtoA(SOInAddr address) {
|
||||
|
||||
int SOInetPtoN(int family, const char* text, void* address) {
|
||||
s32 rm;
|
||||
int temporary;
|
||||
int size;
|
||||
int result;
|
||||
int bytes;
|
||||
int temporary,result,size,bytes;
|
||||
InetRequest* request;
|
||||
if((result=SOiPrepareTempRm(NULL,&rm,&temporary))==0) {
|
||||
bytes=0;
|
||||
switch (family) {
|
||||
case 2: bytes=4; break;
|
||||
default: break;
|
||||
}
|
||||
if(family==2) bytes=4;
|
||||
if(!bytes) result=-5;
|
||||
else if(!text) result=-28;
|
||||
else {
|
||||
|
||||
@@ -5,6 +5,9 @@
|
||||
#include "keyboard/tiHKBManager.h"
|
||||
#include "keyboard/tiLayoutGather.h"
|
||||
|
||||
extern "C" void SetCountry__Q39textinput5input10HKBManagerFUc();
|
||||
extern "C" textinput::input::HKBManager sInstance__Q39textinput5input10HKBManager;
|
||||
extern "C" void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw();
|
||||
extern "C" bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" void __dt__Q49textinput8keyboard5hwkey10HWKeyboardFv();
|
||||
extern "C" void create__Q29textinput4BaseFP12MEMAllocator();
|
||||
@@ -13,7 +16,86 @@ extern "C" void setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15C
|
||||
extern "C" void sendCommand__Q29textinput13CommandSenderFUlPv();
|
||||
extern "C" void updateFromReceiver__Q29textinput13CommandSenderFUlPv();
|
||||
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
typedef void (*KeyboardDataFunction)();
|
||||
extern "C" KeyboardDataFunction const scHwKeyboardConvertWCCodeJumpTable[0x3f] = {
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000158),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001d8),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001c0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000170),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x0000017c),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000134),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001a0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000140),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000188),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000194),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000148),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000150),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x00000164),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001b8),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001f0),
|
||||
reinterpret_cast<KeyboardDataFunction>(reinterpret_cast<u32>(convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw) + 0x000001ac)
|
||||
};
|
||||
extern "C" KeyboardDataFunction const __vt__Q49textinput8keyboard5hwkey10HWKeyboard[9] = {
|
||||
NULL,
|
||||
NULL,
|
||||
__dt__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
create__Q29textinput4BaseFP12MEMAllocator,
|
||||
init__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver,
|
||||
sendCommand__Q29textinput13CommandSenderFUlPv,
|
||||
updateFromReceiver__Q29textinput13CommandSenderFUlPv,
|
||||
reinterpret_cast<KeyboardDataFunction>(updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager)
|
||||
};
|
||||
#pragma pop
|
||||
|
||||
namespace textinput {
|
||||
|
||||
@@ -29,55 +111,6 @@ namespace textinput {
|
||||
extern "C" bool updateTriggerKey___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" bool updateTappingShift___Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
extern "C" void updateShift__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager();
|
||||
HWKeyboard::HWKeyboard(Manager* manager) : mpManager(manager), field_0x14(0), field_0x15(0), field_0x16(0) {
|
||||
}
|
||||
|
||||
struct NavigationCommand { u32 command; u32 modifiers; };
|
||||
struct KeyInputData {
|
||||
wchar_t character;
|
||||
u16 flags;
|
||||
u32 modifier;
|
||||
u8 direct;
|
||||
u8 repeated;
|
||||
u16 reserved;
|
||||
u32 data;
|
||||
};
|
||||
extern const u8 controlKeys[];
|
||||
void HWKeyboard::init() {
|
||||
LayoutGather::Singleton::getInstance().setHWPressedShift(false);
|
||||
|
||||
u32 state = input::HKBManager::getInstance().GetModifierState();
|
||||
input::HKBManager::getInstance().SetModifierState(state | 0x100, 0x700);
|
||||
field_0x15 = 0;
|
||||
field_0x16 = 0;
|
||||
}
|
||||
|
||||
void HWKeyboard::updateShift(input::HKBManager& hkbManager) {
|
||||
LayoutGather &gather = LayoutGather::Singleton::getInstance();
|
||||
|
||||
u32 state = hkbManager.GetModifierState();
|
||||
|
||||
if (!mgr()->getToolBar()->isQwerty() && !mgr()->getToolBar()->isEnableKeytopChange()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool previousShift = gather.isHoldingShift();
|
||||
|
||||
if (state & 0x2) {
|
||||
gather.setHWPressedShift(true);
|
||||
if (!previousShift) {
|
||||
mgr()->getPCKeyboard()->onPressedShift(true);
|
||||
}
|
||||
} else {
|
||||
gather.setHWPressedShift(false);
|
||||
if (previousShift) {
|
||||
if (!gather.isHoldingShift()) {
|
||||
mgr()->getPCKeyboard()->onReleasedShift();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" asm bool updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager() {
|
||||
nofralloc
|
||||
stwu r1, -0x40(r1)
|
||||
@@ -213,6 +246,17 @@ extern const u8 controlKeys[];
|
||||
blr
|
||||
}
|
||||
|
||||
struct NavigationCommand { u32 command; u32 modifiers; };
|
||||
struct KeyInputData {
|
||||
wchar_t character;
|
||||
u16 flags;
|
||||
u32 modifier;
|
||||
u8 direct;
|
||||
u8 repeated;
|
||||
u16 reserved;
|
||||
u32 data;
|
||||
};
|
||||
extern const u8 controlKeys[];
|
||||
bool HWKeyboard::updateRepeatKey_(input::HKBManager& hkbManager) {
|
||||
u32 modifierState = hkbManager.GetModifierState();
|
||||
input::HKBManager::KeySet currentKeySet;
|
||||
@@ -531,12 +575,50 @@ extern const u8 controlKeys[];
|
||||
return false;
|
||||
}
|
||||
|
||||
HWKeyboard::HWKeyboard(Manager* manager) : mpManager(manager), field_0x14(0), field_0x15(0), field_0x16(0) {
|
||||
}
|
||||
|
||||
void HWKeyboard::init() {
|
||||
LayoutGather::Singleton::getInstance().setHWPressedShift(false);
|
||||
|
||||
u32 state = input::HKBManager::getInstance().GetModifierState();
|
||||
input::HKBManager::getInstance().SetModifierState(state | 0x100, 0x700);
|
||||
field_0x15 = 0;
|
||||
field_0x16 = 0;
|
||||
}
|
||||
|
||||
void HWKeyboard::updateInput(int chan, f32 x, f32 y, u32 trig, u32 hold, u32 release, void* data) {
|
||||
if (trig != 0) {
|
||||
field_0x14 = 0;
|
||||
}
|
||||
}
|
||||
|
||||
void HWKeyboard::updateShift(input::HKBManager& hkbManager) {
|
||||
LayoutGather &gather = LayoutGather::Singleton::getInstance();
|
||||
|
||||
u32 state = hkbManager.GetModifierState();
|
||||
|
||||
if (!mgr()->getToolBar()->isQwerty() && !mgr()->getToolBar()->isEnableKeytopChange()) {
|
||||
return;
|
||||
}
|
||||
|
||||
bool previousShift = gather.isHoldingShift();
|
||||
|
||||
if (state & 0x2) {
|
||||
gather.setHWPressedShift(true);
|
||||
if (!previousShift) {
|
||||
mgr()->getPCKeyboard()->onPressedShift(true);
|
||||
}
|
||||
} else {
|
||||
gather.setHWPressedShift(false);
|
||||
if (previousShift) {
|
||||
if (!gather.isHoldingShift()) {
|
||||
mgr()->getPCKeyboard()->onReleasedShift();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extern "C" const u8 scCountryMap_EU[] = {0x0f, 0x21, 0x20, 0x08, 0x09, 0x0e, 0x19, 0x00, 0x21, 0x21, 0x00, 0x00};
|
||||
extern "C" const u8 scCountryMap_NonEU[] = {0x0f, 0x21, 0x20, 0x04, 0x09, 0x0e, 0x11, 0x00, 0x21, 0x21, 0x00, 0x00};
|
||||
|
||||
@@ -555,60 +637,183 @@ const u8 controlKeys[] = {
|
||||
0x06, 0x05, 0x07, 0x0b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
wchar_t HWKeyboard::convertWCCode(wchar_t code) const {
|
||||
if (mgr()->getToolBar()->isQwerty() && mgr()->getPCKeyboard()->getTranslateMode()) {
|
||||
if (mgr()->getLanguage() == JP) {
|
||||
switch (code) {
|
||||
case 0x2C: { return 0x3001; }
|
||||
case 0x2E: { return 0x3002; }
|
||||
case 0x2D: { return 0x30FC; }
|
||||
case 0x5B: { return 0x300C; }
|
||||
case 0x5D: { return 0x300D; }
|
||||
}
|
||||
} else if (mgr()->getLanguage() == CN) {
|
||||
switch (code) {
|
||||
case 0x2C: { return 0xFF0C; }
|
||||
case 0x2E: { return 0x3002; }
|
||||
case 0x3C: { return 0x300A; }
|
||||
case 0x3E: { return 0x300B; }
|
||||
case 0x21: { return 0xFF01; }
|
||||
case 0x3F: { return 0xFF1F; }
|
||||
case 0x28: { return 0xFF08; }
|
||||
case 0x29: { return 0xFF09; }
|
||||
case 0x3A: { return 0xFF1A; }
|
||||
case 0x3B: { return 0xFF1B; }
|
||||
case 0x2D: { return 0xFF0D; }
|
||||
case 0x5F: { return 0xFF3F; }
|
||||
case 0x5C: { return 0x3001; }
|
||||
case 0x27: { if (field_0x15) { return 0x2019; } return 0x2018; }
|
||||
case 0x22: { if (field_0x16) { return 0x201D; } return 0x201C; }
|
||||
}
|
||||
}
|
||||
}
|
||||
return code;
|
||||
extern "C" asm void setLanguage__Q49textinput8keyboard5hwkey10HWKeyboardFQ29textinput11DestinationQ29textinput8Language() {
|
||||
nofralloc
|
||||
cmpwi r4, 2
|
||||
bne setLanguage_L1
|
||||
lis r4, scCountryMap_EU@ha
|
||||
lis r3, sInstance__Q39textinput5input10HKBManager@ha
|
||||
addi r4, r4, scCountryMap_EU@l
|
||||
lbzx r4, r4, r5
|
||||
addi r3, r3, sInstance__Q39textinput5input10HKBManager@l
|
||||
b SetCountry__Q39textinput5input10HKBManagerFUc
|
||||
setLanguage_L1:
|
||||
lis r4, scCountryMap_NonEU@ha
|
||||
lis r3, sInstance__Q39textinput5input10HKBManager@ha
|
||||
addi r4, r4, scCountryMap_NonEU@l
|
||||
lbzx r4, r4, r5
|
||||
addi r3, r3, sInstance__Q39textinput5input10HKBManager@l
|
||||
b SetCountry__Q39textinput5input10HKBManagerFUc
|
||||
}
|
||||
|
||||
#pragma push
|
||||
#pragma section const_type ".data"
|
||||
extern "C" KeyboardDataFunction const __vt__Q49textinput8keyboard5hwkey10HWKeyboard[9] = {
|
||||
NULL,
|
||||
NULL,
|
||||
__dt__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
create__Q29textinput4BaseFP12MEMAllocator,
|
||||
init__Q49textinput8keyboard5hwkey10HWKeyboardFv,
|
||||
setCommandReceiver__Q29textinput13CommandSenderFPQ29textinput15CommandReceiver,
|
||||
sendCommand__Q29textinput13CommandSenderFUlPv,
|
||||
updateFromReceiver__Q29textinput13CommandSenderFUlPv,
|
||||
reinterpret_cast<KeyboardDataFunction>(updateInput__Q49textinput8keyboard5hwkey10HWKeyboardFRQ39textinput5input10HKBManager)
|
||||
};
|
||||
#pragma pop
|
||||
|
||||
void HWKeyboard::setLanguage(Destination destination, Language language) {
|
||||
if (destination == DST_EU) {
|
||||
input::HKBManager::getInstance().SetCountry(scCountryMap_EU[language]);
|
||||
} else {
|
||||
input::HKBManager::getInstance().SetCountry(scCountryMap_NonEU[language]);
|
||||
}
|
||||
extern "C" asm void convertWCCode__Q49textinput8keyboard5hwkey10HWKeyboardCFw() {
|
||||
nofralloc
|
||||
stwu r1, -0x10(r1)
|
||||
mflr r0
|
||||
stw r0, 0x14(r1)
|
||||
stw r31, 0xc(r1)
|
||||
mr r31, r4
|
||||
stw r30, 8(r1)
|
||||
mr r30, r3
|
||||
lwz r3, 0x10(r3)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x98(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x10(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq convertWCCode_HWKeyboard_L1
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x78(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x58(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
beq convertWCCode_HWKeyboard_L1
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x34(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 0
|
||||
bne convertWCCode_HWKeyboard_L2
|
||||
cmpwi r31, 0x5b
|
||||
beq convertWCCode_HWKeyboard_L3
|
||||
bge convertWCCode_HWKeyboard_L4
|
||||
cmpwi r31, 0x2d
|
||||
beq convertWCCode_HWKeyboard_L5
|
||||
bge convertWCCode_HWKeyboard_L6
|
||||
cmpwi r31, 0x2c
|
||||
bge convertWCCode_HWKeyboard_L7
|
||||
b convertWCCode_HWKeyboard_L1
|
||||
convertWCCode_HWKeyboard_L6:
|
||||
cmpwi r31, 0x2f
|
||||
bge convertWCCode_HWKeyboard_L1
|
||||
b convertWCCode_HWKeyboard_L8
|
||||
convertWCCode_HWKeyboard_L4:
|
||||
cmpwi r31, 0x5d
|
||||
beq convertWCCode_HWKeyboard_L9
|
||||
b convertWCCode_HWKeyboard_L1
|
||||
convertWCCode_HWKeyboard_L7:
|
||||
li r3, 0x3001
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L8:
|
||||
li r3, 0x3002
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L5:
|
||||
li r3, 0x30fc
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L3:
|
||||
li r3, 0x300c
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L9:
|
||||
li r3, 0x300d
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L2:
|
||||
lwz r3, 0x10(r30)
|
||||
lwz r12, 0(r3)
|
||||
lwz r12, 0x34(r12)
|
||||
mtctr r12
|
||||
bctrl
|
||||
cmpwi r3, 8
|
||||
bne convertWCCode_HWKeyboard_L1
|
||||
addi r0, r31, -0x21
|
||||
cmplwi r0, 0x3e
|
||||
bgt convertWCCode_HWKeyboard_L1
|
||||
lis r3, scHwKeyboardConvertWCCodeJumpTable@ha
|
||||
slwi r0, r0, 2
|
||||
addi r3, r3, scHwKeyboardConvertWCCodeJumpTable@l
|
||||
lwzx r3, r3, r0
|
||||
mtctr r3
|
||||
bctr
|
||||
convertWCCode_HWKeyboard_L11:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf4
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L12:
|
||||
li r3, 0x3002
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L13:
|
||||
li r3, 0x300a
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L14:
|
||||
li r3, 0x300b
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L15:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xff
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L16:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe1
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L17:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf8
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L18:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf7
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L19:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe6
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L20:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xe5
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L21:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xf3
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L22:
|
||||
lis r3, 1
|
||||
addi r3, r3, -0xc1
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L23:
|
||||
li r3, 0x3001
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L24:
|
||||
lbz r3, 0x15(r30)
|
||||
neg r0, r3
|
||||
or r0, r0, r3
|
||||
srwi r3, r0, 0x1f
|
||||
addi r3, r3, 0x2018
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L25:
|
||||
lbz r3, 0x16(r30)
|
||||
neg r0, r3
|
||||
or r0, r0, r3
|
||||
srwi r3, r0, 0x1f
|
||||
addi r3, r3, 0x201c
|
||||
b convertWCCode_HWKeyboard_L10
|
||||
convertWCCode_HWKeyboard_L1:
|
||||
mr r3, r31
|
||||
convertWCCode_HWKeyboard_L10:
|
||||
lwz r0, 0x14(r1)
|
||||
lwz r31, 0xc(r1)
|
||||
lwz r30, 8(r1)
|
||||
mtlr r0
|
||||
addi r1, r1, 0x10
|
||||
blr
|
||||
}
|
||||
} // namespace hwkey
|
||||
|
||||
|
||||
@@ -151,8 +151,8 @@ 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 scN_KOR[];
|
||||
extern "C" const char scN_CHN[];
|
||||
extern "C" const char lbl_816973A4[];
|
||||
extern "C" const char lbl_816973AC[];
|
||||
#pragma pop
|
||||
extern "C" const f32 scInputFormZeroF;
|
||||
extern "C" void _savegpr_20();
|
||||
|
||||
@@ -1499,18 +1499,14 @@ namespace textinput {
|
||||
return mKeyState.getWCCode(paneName);
|
||||
}
|
||||
|
||||
inline u32 FindControlKey(const Base::KeyState& state, char* paneName) {
|
||||
u32 Base::getControlKey(char* paneName) {
|
||||
for (u16 i = 0; i < 23; i++) {
|
||||
if (util::strcmp(state.data->controls[i].paneName, paneName))
|
||||
return state.data->controls[i].key;
|
||||
if (util::strcmp(mKeyState.data->controls[i].paneName, paneName))
|
||||
return mKeyState.data->controls[i].key;
|
||||
}
|
||||
return 27;
|
||||
}
|
||||
|
||||
u32 Base::getControlKey(char* paneName) {
|
||||
return FindControlKey(mKeyState, paneName);
|
||||
}
|
||||
|
||||
void Base::changeABCInputMode(InputMode mode) {
|
||||
switch (mode) {
|
||||
case IM_Direct:
|
||||
|
||||
@@ -185,7 +185,7 @@ namespace ipl {
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
Button::Button(EGG::Heap* heap) : Base(heap), mAnimWait(0), mOptOutBtn(), mSdMenuBtn(), mbNewMailAnm(false), mbSuppressNewMailAnm(false), mReservedCmd() {
|
||||
Button::Button(EGG::Heap* heap) : Base(heap), unk_0x54(0), mOptOutBtn(), mSdMenuBtn(), unk_0x104(false), unk_0x105(false), mReservedCmd() {
|
||||
for (int i = 0; i < ARROW_BTN_MAX; i++) {
|
||||
mbArrowVisible[i] = true;
|
||||
}
|
||||
@@ -293,7 +293,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void Button::calc() {
|
||||
switch (mAnimWait) {
|
||||
switch (unk_0x54) {
|
||||
case 0: {
|
||||
if (mReservedCmd.get_current_index() != 0) {
|
||||
Command popped = mReservedCmd.get_popped_item();
|
||||
@@ -312,7 +312,7 @@ namespace ipl {
|
||||
if (!mpButtonAnim[ANIM_SCENE_CHANGE]->isPlaying() && !mpButtonAnim[ANIM_CALENDAR_EXIT]->isPlaying() &&
|
||||
!mpButtonAnim[ANIM_COMMON_BUTTON]->isPlaying() && !mpButtonAnim[ANIM_TRASH_DELETE]->isPlaying() &&
|
||||
!mOptOutBtn.mpLayout->isPlaying()) {
|
||||
mAnimWait = 0;
|
||||
unk_0x54 = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -335,7 +335,7 @@ namespace ipl {
|
||||
mpBalloons[i]->calc();
|
||||
}
|
||||
|
||||
if (mbNewMailAnm && !mbSuppressNewMailAnm && mTimer()) {
|
||||
if (unk_0x104 && !unk_0x105 && mTimer()) {
|
||||
startNewMailAnm_();
|
||||
}
|
||||
}
|
||||
@@ -457,7 +457,7 @@ namespace ipl {
|
||||
|
||||
bool Button::isActive() const {
|
||||
bool result = false;
|
||||
if (isSceneCreated() && mAnimWait != 1) {
|
||||
if (isSceneCreated() && unk_0x54 != 1) {
|
||||
result = true;
|
||||
}
|
||||
return result;
|
||||
@@ -668,7 +668,7 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
|
||||
mAnimWait = 1;
|
||||
unk_0x54 = 1;
|
||||
}
|
||||
|
||||
void Button::initArrowAppearance(int arrowType, bool bAppear) {
|
||||
@@ -752,8 +752,8 @@ namespace ipl {
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMinFrame(scLoopAnmFrame.start);
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(scLoopAnmFrame.end);
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(1.0f);
|
||||
mbNewMailAnm = true;
|
||||
if (!mbSuppressNewMailAnm) {
|
||||
unk_0x104 = true;
|
||||
if (!unk_0x105) {
|
||||
startNewMailAnm_();
|
||||
}
|
||||
}
|
||||
@@ -773,7 +773,7 @@ namespace ipl {
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setMaxFrame(1.0f);
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->setSpeed(0.0f);
|
||||
mpButtonAnim[ANIM_BOARD_BBS_NEW]->play();
|
||||
mbNewMailAnm = false;
|
||||
unk_0x104 = false;
|
||||
}
|
||||
|
||||
void Button::enableBtn() {
|
||||
|
||||
@@ -236,10 +236,10 @@ namespace ipl {
|
||||
|
||||
Calendar::Calendar(EGG::Heap* heap)
|
||||
: FaderSceneBase(heap), ButtonEventHandlerBase(), mState(STATE_NORMAL), mPrevState(STATE_NORMAL), mpLayout(NULL), mpLayoutFile(NULL),
|
||||
mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), mbSearchTaskRunning(FALSE), mbTaskCanceled(FALSE),
|
||||
mpGroupAnim(NULL), mpInitAnim(NULL), mpBoardDate(NULL), mpSelectDate(NULL), mbScrolling(false), unk_0xA0(FALSE), mbTaskCanceled(FALSE),
|
||||
mbBackToBoardAlt(FALSE) {
|
||||
nw4r::ut::List_Init(&mDateList, offsetof(Date, mNode1));
|
||||
nw4r::ut::List_Init(&mDrawList, offsetof(Date, mNode2));
|
||||
nw4r::ut::List_Init(&unk_0x90, offsetof(Date, mNode2));
|
||||
|
||||
mbAsian = System::getRegion() == SC_PRODUCT_AREA_JPN || (u32)System::getRegion() == SC_PRODUCT_AREA_KOR ||
|
||||
(u32)System::getRegion() == SC_PRODUCT_AREA_CHN;
|
||||
@@ -262,7 +262,7 @@ namespace ipl {
|
||||
for (int i = 0; i < (DATE_COUNT * 2); i++) {
|
||||
Date* date = new Date(getSceneHeap(), mpLayoutFile, "arc", "my_IplTop_f.brlyt");
|
||||
if (i < DATE_COUNT) {
|
||||
nw4r::ut::List_Append(&mDrawList, date);
|
||||
nw4r::ut::List_Append(&unk_0x90, date);
|
||||
}
|
||||
nw4r::ut::List_Append(&mDateList, date);
|
||||
}
|
||||
@@ -382,10 +382,10 @@ namespace ipl {
|
||||
}
|
||||
} else {
|
||||
for (u32 i = 0; i < DATE_COUNT; i++) {
|
||||
((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(false);
|
||||
((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(false);
|
||||
}
|
||||
for (u32 i = 0; i < DATE_COUNT; i++) {
|
||||
((Date*)nw4r::ut::List_GetNth(&mDrawList, i))->draw(true);
|
||||
((Date*)nw4r::ut::List_GetNth(&unk_0x90, i))->draw(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -425,8 +425,8 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void Calendar::onPointDate(Date* date) {
|
||||
nw4r::ut::List_Remove(&mDrawList, date);
|
||||
nw4r::ut::List_Append(&mDrawList, date);
|
||||
nw4r::ut::List_Remove(&unk_0x90, date);
|
||||
nw4r::ut::List_Append(&unk_0x90, date);
|
||||
}
|
||||
|
||||
void Calendar::onTrigDate(Date* date) {
|
||||
@@ -503,7 +503,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
void Calendar::on_wait_task() {
|
||||
if (mbSearchTaskRunning == FALSE) {
|
||||
if (unk_0xA0 == FALSE) {
|
||||
switch (mPrevState) {
|
||||
case STATE_SCROLL_RIGHT: {
|
||||
do_scroll_r();
|
||||
@@ -535,7 +535,7 @@ namespace ipl {
|
||||
|
||||
mPrevState = mState;
|
||||
mState = STATE_SCROLL_RIGHT;
|
||||
if (mbSearchTaskRunning == TRUE) {
|
||||
if (unk_0xA0 == TRUE) {
|
||||
mbTaskCanceled = TRUE;
|
||||
mPrevState = STATE_SCROLL_RIGHT;
|
||||
mState = STATE_WAIT_TASK;
|
||||
@@ -577,7 +577,7 @@ namespace ipl {
|
||||
|
||||
mPrevState = mState;
|
||||
mState = STATE_SCROLL_LEFT;
|
||||
if (mbSearchTaskRunning) {
|
||||
if (unk_0xA0) {
|
||||
mbTaskCanceled = TRUE;
|
||||
mPrevState = STATE_SCROLL_LEFT;
|
||||
mState = STATE_WAIT_TASK;
|
||||
@@ -616,7 +616,7 @@ namespace ipl {
|
||||
mPrevState = mState;
|
||||
mState = STATE_DONE;
|
||||
|
||||
if (mbSearchTaskRunning == TRUE) {
|
||||
if (unk_0xA0 == TRUE) {
|
||||
OSReport("検索タスク終了要求\n"); // "Search task termination requested"
|
||||
mbTaskCanceled = TRUE;
|
||||
mPrevState = mState;
|
||||
@@ -863,14 +863,14 @@ namespace ipl {
|
||||
|
||||
OSReport("タスク終了\n"); // Task end
|
||||
|
||||
calendar->mbSearchTaskRunning = FALSE;
|
||||
calendar->unk_0xA0 = FALSE;
|
||||
calendar->mbTaskCanceled = FALSE;
|
||||
}
|
||||
}
|
||||
|
||||
void Calendar::exec_search_task() {
|
||||
OSReport("検索開始\n"); // Start search
|
||||
mbSearchTaskRunning = TRUE;
|
||||
unk_0xA0 = TRUE;
|
||||
System::getTask1()->requestJam(search_task_, this, NULL);
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace ipl {
|
||||
DECOMP_FORCE_ACTIVE(iplDate_cpp, padding);
|
||||
|
||||
Date::Date(EGG::Heap* heap, nand::LayoutFile* file, const char* layoutFolder, const char* layoutFileName)
|
||||
: ::gui::EventHandler(), mbAppearMsg(0), mFocusState(0), mPendingFocusCmd(0), mpLayout(NULL), mpCurrentPaneAnim(0), mPointCount(0) {
|
||||
: ::gui::EventHandler(), mbAppearMsg(0), unk_0x10(0), unk_0x14(0), mpLayout(NULL), mpCurrentPaneAnim(0), unk_0x3C(0) {
|
||||
// Layout
|
||||
mpLayout = new layout::Object(heap, file, layoutFolder, layoutFileName);
|
||||
|
||||
@@ -103,16 +103,16 @@ namespace ipl {
|
||||
onCmdRecv(3);
|
||||
}
|
||||
|
||||
onCmdRecv(mPendingFocusCmd);
|
||||
onCmdRecv(unk_0x14);
|
||||
}
|
||||
|
||||
void Date::draw(bool unk) {
|
||||
if (unk) {
|
||||
if (mPointCount != 0) {
|
||||
if (unk_0x3C != 0) {
|
||||
mpLayout->draw();
|
||||
}
|
||||
} else {
|
||||
if (mPointCount == 0) {
|
||||
if (unk_0x3C == 0) {
|
||||
mpLayout->draw();
|
||||
}
|
||||
}
|
||||
@@ -210,7 +210,7 @@ namespace ipl {
|
||||
|
||||
void Date::start_point_event(const char* paneName, controller::Interface* con) {
|
||||
if (strcmp(paneName, scB_Cal) == 0) {
|
||||
if (mPointCount == 0) {
|
||||
if (unk_0x3C == 0) {
|
||||
static_cast<Calendar*>(System::getScene(SCENE_CALENDAR))->onPointDate(this);
|
||||
onCmdRecv(1);
|
||||
|
||||
@@ -221,16 +221,16 @@ namespace ipl {
|
||||
}
|
||||
}
|
||||
}
|
||||
mPointCount++;
|
||||
unk_0x3C++;
|
||||
}
|
||||
}
|
||||
|
||||
void Date::start_left_event(const char* paneName) {
|
||||
if (strcmp(paneName, scB_Cal) == 0) {
|
||||
if (mPointCount == 1) {
|
||||
if (unk_0x3C == 1) {
|
||||
onCmdRecv(2);
|
||||
}
|
||||
mPointCount--;
|
||||
unk_0x3C--;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -268,35 +268,35 @@ namespace ipl {
|
||||
|
||||
void Date::onCmdRecv(int cmd) {
|
||||
if (cmd == 1 || cmd == 2) {
|
||||
mPendingFocusCmd = cmd;
|
||||
unk_0x14 = cmd;
|
||||
}
|
||||
|
||||
switch (mFocusState) {
|
||||
switch (unk_0x10) {
|
||||
case 0: {
|
||||
if (cmd == 1) {
|
||||
mpCurrentPaneAnim = doAnim(IDANIM_FOCUS_IN);
|
||||
mFocusState = 1;
|
||||
unk_0x10 = 1;
|
||||
} else if (cmd == 2) {
|
||||
mpCurrentPaneAnim = doAnim(IDANIM_FOCUS_OUT);
|
||||
mFocusState = 2;
|
||||
unk_0x10 = 2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 1: {
|
||||
if (cmd == 3) {
|
||||
if (mPendingFocusCmd == 1) {
|
||||
mPendingFocusCmd = 0;
|
||||
if (unk_0x14 == 1) {
|
||||
unk_0x14 = 0;
|
||||
}
|
||||
mFocusState = 0;
|
||||
unk_0x10 = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 2: {
|
||||
if (cmd == 3) {
|
||||
if (mPendingFocusCmd == 2) {
|
||||
mPendingFocusCmd = 0;
|
||||
if (unk_0x14 == 2) {
|
||||
unk_0x14 = 0;
|
||||
}
|
||||
mFocusState = 0;
|
||||
unk_0x10 = 0;
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -306,7 +306,7 @@ namespace ipl {
|
||||
void Date::initEvent() {
|
||||
mpGui->init();
|
||||
mpPaneAnims[ANIM_PANE_BTN_HOVER]->initAnmFrame(0.0f);
|
||||
mPointCount = 0;
|
||||
unk_0x3C = 0;
|
||||
onCmdRecv(3);
|
||||
}
|
||||
|
||||
|
||||
@@ -449,7 +449,7 @@ namespace ipl {
|
||||
|
||||
mpRsoExpHeaps[0] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL);
|
||||
mpRsoExpHeaps[1] = EGG::ExpHeap::create(0x80000, System::getMem2App(), MEM_HEAP_OPT_THREAD_SAFE | MEM_HEAP_OPT_DEBUG_FILL);
|
||||
getButton()->setSuppressNewMailAnm(true);
|
||||
getButton()->setUnk_0x105(true);
|
||||
}
|
||||
|
||||
void ChannelTitle::calcCommon() {
|
||||
@@ -931,7 +931,7 @@ namespace ipl {
|
||||
|
||||
System::getChannelManager()->resetChJumpLoad();
|
||||
|
||||
getButton()->setSuppressNewMailAnm(false);
|
||||
getButton()->setUnk_0x105(false);
|
||||
}
|
||||
|
||||
BOOL ChannelTitle::isResetAcceptable() const {
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace ipl {
|
||||
mSelectedFaceId = -1;
|
||||
mpNigaoe = NULL;
|
||||
mbClosing = false;
|
||||
mbResetAcceptable = true;
|
||||
unk_0x7D = true;
|
||||
mNwc24ErrCountdown = 0;
|
||||
mbToFriend = false;
|
||||
|
||||
@@ -385,7 +385,7 @@ namespace ipl {
|
||||
|
||||
snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
|
||||
mbResetAcceptable = false;
|
||||
unk_0x7D = false;
|
||||
|
||||
// Copy letter contents
|
||||
wmemcpy(mWCString, getMemoInputForm()->getSendString()->getWCString(), WC_STRING_LENGTH);
|
||||
@@ -409,7 +409,7 @@ namespace ipl {
|
||||
closeNWC24();
|
||||
}
|
||||
|
||||
mbResetAcceptable = true;
|
||||
unk_0x7D = true;
|
||||
|
||||
// Button animation
|
||||
button->animation(Button::IDANIM_SELECT_CREATE_R);
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace ipl {
|
||||
}
|
||||
|
||||
TextWriter::TextWriter(EGG::Heap* heap)
|
||||
: FaderSceneBase(heap), mState(STATE_NORMAL), mSelectedFaceId(-1), mpNigaoe(NULL), mbClosing(false), mbResetAcceptable(true),
|
||||
: FaderSceneBase(heap), mState(STATE_NORMAL), mSelectedFaceId(-1), mpNigaoe(NULL), mbClosing(false), unk_0x7D(true),
|
||||
mNwc24ErrCountdown(0) {
|
||||
setSceneParentFlags(SCN_PARENTFLAG_DRAW | SCN_PARENTFLAG_CALC);
|
||||
}
|
||||
@@ -87,7 +87,7 @@ namespace ipl {
|
||||
mSelectedFaceId = -1;
|
||||
mpNigaoe = NULL;
|
||||
mbClosing = false;
|
||||
mbResetAcceptable = true;
|
||||
unk_0x7D = true;
|
||||
mNwc24ErrCountdown = 0;
|
||||
|
||||
// Text balloon for Mii face
|
||||
@@ -398,7 +398,7 @@ namespace ipl {
|
||||
|
||||
snd::getSystem()->startSE("WIPL_SE_DECIDE");
|
||||
|
||||
mbResetAcceptable = false;
|
||||
unk_0x7D = false;
|
||||
|
||||
// Copy memo contents
|
||||
wmemcpy(mWCString, getMemoInputForm()->getSendString()->getWCString(), WC_STRING_LENGTH);
|
||||
@@ -412,7 +412,7 @@ namespace ipl {
|
||||
|
||||
closeNWC24();
|
||||
|
||||
mbResetAcceptable = true;
|
||||
unk_0x7D = true;
|
||||
|
||||
// Receive sent memo
|
||||
System::receiveImmediately();
|
||||
|
||||
@@ -150,7 +150,7 @@ namespace ipl {
|
||||
myWork->sdWriteProtected = FALSE;
|
||||
myWork->prevAsyncResult = RESULT_WORKING;
|
||||
|
||||
mbCancel = false;
|
||||
unk_0x04 = false;
|
||||
|
||||
OSResumeThread(&myWork->thread);
|
||||
}
|
||||
@@ -1235,7 +1235,7 @@ namespace ipl {
|
||||
int result;
|
||||
OSReport("NandSDWorker: cleaning partial nand app...\n");
|
||||
for (int i = 0; i < titleIdCount; i++) {
|
||||
if (mbCancel != false) {
|
||||
if (unk_0x04 != false) {
|
||||
return RESULT_UNK_18;
|
||||
}
|
||||
|
||||
@@ -4877,7 +4877,7 @@ namespace ipl {
|
||||
strncat(fmtStr, fileName, NAND_MAX_PATH);
|
||||
|
||||
while (faErr == FA_ERR_SUCCESS) {
|
||||
if (mbCancel != false) {
|
||||
if (unk_0x04 != false) {
|
||||
return RESULT_UNK_18;
|
||||
}
|
||||
|
||||
|
||||
@@ -1015,28 +1015,51 @@ namespace ipl {
|
||||
return -1;
|
||||
}
|
||||
|
||||
int Manager::isEqualChannel(ESTitleId titleId0, ESTitleId titleId1) {
|
||||
if (titleId0 == titleId1) {
|
||||
return -2;
|
||||
}
|
||||
|
||||
if (TITLE_NO_REGION(titleId0) == TITLE_NO_REGION(titleId1)) {
|
||||
if (TITLE_REGION(titleId0) != TITLE_REGION_ALL) {
|
||||
if (TITLE_REGION(titleId1) == TITLE_REGION_ALL) {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
if (TITLE_REGION(titleId0) == TITLE_REGION_ALL) {
|
||||
if (TITLE_REGION(titleId1) != TITLE_REGION_ALL) {
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
return -1;
|
||||
}
|
||||
|
||||
return -1;
|
||||
asm int Manager::isEqualChannel(register ESTitleId titleId0, register ESTitleId titleId1) {
|
||||
nofralloc
|
||||
xor r3, r6, r8
|
||||
xor r0, r5, r7
|
||||
or. r0, r3, r0
|
||||
bne isEqualChannel_L1
|
||||
li r3, -2
|
||||
blr
|
||||
isEqualChannel_L1:
|
||||
li r3, -0x100
|
||||
li r0, -1
|
||||
and r9, r6, r3
|
||||
and r3, r8, r3
|
||||
and r4, r5, r0
|
||||
and r0, r7, r0
|
||||
xor r3, r9, r3
|
||||
xor r0, r4, r0
|
||||
or. r0, r3, r0
|
||||
bne isEqualChannel_L4
|
||||
clrlwi r3, r6, 0x18
|
||||
xori r0, r3, 0x41
|
||||
cmpwi r0, 0
|
||||
beq isEqualChannel_L2
|
||||
clrlwi r0, r8, 0x18
|
||||
xori r0, r0, 0x41
|
||||
cmpwi r0, 0
|
||||
bne isEqualChannel_L2
|
||||
li r3, 0
|
||||
blr
|
||||
isEqualChannel_L2:
|
||||
xori r0, r3, 0x41
|
||||
cmpwi r0, 0
|
||||
bne isEqualChannel_L3
|
||||
clrlwi r0, r8, 0x18
|
||||
xori r0, r0, 0x41
|
||||
cmpwi r0, 0
|
||||
beq isEqualChannel_L3
|
||||
li r3, 1
|
||||
blr
|
||||
isEqualChannel_L3:
|
||||
li r3, -1
|
||||
blr
|
||||
isEqualChannel_L4:
|
||||
li r3, -1
|
||||
blr
|
||||
}
|
||||
|
||||
int Manager::isDefaultChannel(ESTitleId32 titleType, ESTitleId32 titleCode) {
|
||||
|
||||
@@ -1,422 +0,0 @@
|
||||
# Four-unit matching attempts
|
||||
|
||||
Baseline measured live, not copied from task estimates. Only instruction-exact improvements retained. Failed compiler experiments do not count toward the three-attempt requirement.
|
||||
|
||||
## getControlKey__Q49textinput8keyboard6pctype4BaseFPc
|
||||
Origin 30e1ef09380cb59719dcfbd2c00c52ca16473946, source identical
|
||||
Diagnosis: 36/36 instructions; counter and element offset exchange r30/r31, prologue initialization moves. No branch or frame difference.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (36, 36, 8)
|
||||
1. bind the selected control by reference before comparison: (34, 36, 23) objdiff 88.02778 pool/regression/scan PASS reverted
|
||||
2. declare the traversal index in function scope: (36, 36, 8) objdiff 93.333336 pool/regression/scan PASS reverted
|
||||
3. use a do while traversal preserving 16 bit index: compile failed /src/keyboard/tiPcKeyboard.d
|
||||
Final restored (36, 36, 8)
|
||||
Origin 30e1ef09380cb59719dcfbd2c00c52ca16473946, source identical
|
||||
Diagnosis: Counter and offset coloring remains; try loop induction form after scoped-index and reference trials.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (36, 36, 8)
|
||||
1. do while with preincremented 16 bit traversal index: (37, 36, 20) objdiff 90.55556 pool/regression/scan PASS reverted
|
||||
Final restored (36, 36, 8)
|
||||
Origin edfb253724595e3a6487d03a669d4a521f781e1d, source identical
|
||||
Diagnosis: Register-only result after three loop/reference experiments. Test genuine inline key-state lookup boundary then declaration ordering.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (36, 36, 8)
|
||||
1. inline control lookup with explicit key-state argument: compile failed ---------------------
|
||||
Final restored (36, 36, 8)
|
||||
Origin 17407ed1cbfa5f7f43ebd141902ceea0c73a1e64, source identical
|
||||
Diagnosis: Register-only induction/element offset mismatch; name the widened control index so its declaration participates in real allocation.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (36, 36, 8)
|
||||
1. explicit widened control index before traversal counter: (36, 36, 8) objdiff 93.333336 pool/regression/scan PASS reverted
|
||||
start (2, 8)
|
||||
best (2, 8) after 2 builds; source restored; best order was:
|
||||
Final restored (36, 36, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: Register-only result after three loop/reference experiments. Test genuine inline key-state lookup boundary then declaration ordering.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (36, 36, 8)
|
||||
1. inline control lookup with explicit key-state argument: (36, 36, 0) objdiff 100 pool/regression/scan PASS retained for further trials
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
[agent/w1002/near7 21811470] match base::getcontrolkey
|
||||
|
||||
## setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode
|
||||
Origin 30e1ef09380cb59719dcfbd2c00c52ca16473946, source identical
|
||||
Diagnosis: 106/105; only extra mr r31,r30 initializes defined enum fallback. Target default-path value is not initialized. Keep defined behavior; test equivalent mappings.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (106, 105, 99)
|
||||
1. select key mode with conditional expressions: (117, 105, 109) objdiff 88.46667 pool/regression/scan PASS reverted
|
||||
2. reuse mode as direct numeric key mode: (88, 105, 100) objdiff 82.685715 pool/regression/scan FAIL reverted
|
||||
3. signed intermediate enum mapping: (106, 105, 99) objdiff 99.04762 pool/regression/scan PASS reverted
|
||||
Final restored (106, 105, 99)
|
||||
|
||||
## onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb
|
||||
Origin 30e1ef09380cb59719dcfbd2c00c52ca16473946, source identical
|
||||
Diagnosis: 49/49; inline setABCFlag owner and flags exchange r4/r6. Branches, stack and instruction schedule otherwise identical.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (49, 49, 8)
|
||||
1. bind the key state pointer before querying flags: (49, 49, 8) objdiff 99.081635 pool/regression/scan PASS reverted
|
||||
2. pass modifier combination directly into setter: (49, 49, 9) objdiff 99.081635 pool/regression/scan FAIL reverted
|
||||
3. separate flags declaration and getter assignment: (49, 49, 8) objdiff 99.081635 pool/regression/scan PASS reverted
|
||||
Final restored (49, 49, 8)
|
||||
Origin edfb253724595e3a6487d03a669d4a521f781e1d, source identical
|
||||
Diagnosis: Try actual setter owner load lifetime; standalone setter and every caller remain protected by gate regression check.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (49, 49, 8)
|
||||
1. load owner after updating flags in real setter: (49, 49, 8) objdiff 99.081635 pool/regression/scan PASS reverted
|
||||
Final restored (49, 49, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: After three structural/helper/lifetime attempts, expose state pointer and flags as separately assigned locals for safe declaration search. Every local assigned before use.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (49, 49, 8)
|
||||
2. put final round key before substituted bytes: (249, 251, 244) objdiff 61.49004 pool/regression/scan PASS reverted
|
||||
Final restored (249, 251, 244)
|
||||
fewer than two leading declarations; pass --lines START END
|
||||
Final restored (49, 49, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source differs; inspected below
|
||||
Diagnosis: After three structural/helper/lifetime attempts, expose state pointer and flags as separately assigned locals for safe declaration search. Every local assigned before use.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (49, 49, 8)
|
||||
start (0, 8)
|
||||
best (0, 8) after 2 builds; source restored; best order was:
|
||||
Final restored (49, 49, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source differs; inspected below
|
||||
Diagnosis: Structural branches and instructions identical, inline helper boundary changed control lookup coloring exactly. Try real shared shift-modifier operation boundary for both pressed and released events.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (49, 49, 8)
|
||||
1. inline shared shift modifier operation with state first: (49, 49, 11) objdiff 98.77551 pool/regression/scan PASS reverted
|
||||
2. inline shared shift modifier operation with enable flag first: (49, 49, 11) objdiff 98.77551 pool/regression/scan PASS reverted
|
||||
Final restored (49, 49, 8)
|
||||
|
||||
## onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv
|
||||
Origin 30e1ef09380cb59719dcfbd2c00c52ca16473946, source identical
|
||||
Diagnosis: 39/39; inline owner and flags exchange r4/r6 only.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (39, 39, 8)
|
||||
1. bind the key state pointer before querying flags: (39, 39, 8) objdiff 98.84615 pool/regression/scan PASS reverted
|
||||
2. pass modifier combination directly into setter: (39, 39, 13) objdiff 92.30769 pool/regression/scan FAIL reverted
|
||||
3. separate flags declaration and getter assignment: (39, 39, 8) objdiff 98.84615 pool/regression/scan PASS reverted
|
||||
Final restored (39, 39, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: After three structural/helper/lifetime attempts, expose state pointer and flags as separately assigned locals for safe declaration search. Every local assigned before use.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (39, 39, 8)
|
||||
fewer than two leading declarations; pass --lines START END
|
||||
Final restored (39, 39, 8)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source differs; inspected below
|
||||
Diagnosis: After three structural/helper/lifetime attempts, expose state pointer and flags as separately assigned locals for safe declaration search. Every local assigned before use.
|
||||
POOL IDENTICAL up to 204 (mine=204 base=204)
|
||||
Initial (39, 39, 8)
|
||||
start (0, 8)
|
||||
best (0, 8) after 2 builds; source restored; best order was:
|
||||
Final restored (39, 39, 8)
|
||||
|
||||
## AXFXChorusExpShutdown
|
||||
Origin c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273, source identical
|
||||
Diagnosis: 36/36; fx and channel exchange r29/r30, identical frame/branches. Test helper boundary before declaration coloring.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (36, 36, 5)
|
||||
1. declare channel before interrupt enabled: (36, 36, 0) objdiff 100 pool/regression/scan FAIL reverted
|
||||
2. split enabled declaration and assignment: compile failed DK/src/axfx/AXFXChorusExp.d
|
||||
3. use signed channel traversal: (36, 36, 5) objdiff 97.638885 pool/regression/scan FAIL reverted
|
||||
Final restored (36, 36, 5)
|
||||
Origin f095c9ea12ecefe57174107f9d1cb93ba6ebe1cf, source differs; inspected below
|
||||
Diagnosis: Register-only loop mismatch after declaration/lifetime trials; use real delay-line freeing inline helper corresponding to allocation/bzero helpers.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (36, 36, 5)
|
||||
1. inline delay line deallocation helper: (36, 36, 0) objdiff 100 pool/regression/scan PASS retained for further trials
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
[agent/w1002/near7 c10cacbe] match axfxchorusexpshutdown
|
||||
|
||||
## AXFXChorusExpCallback
|
||||
Origin c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273, source identical
|
||||
Diagnosis: 216/216; input/output array stack offsets reversed, history induction updates and whole decrement scheduled differently, interpolation float accumulation differs. Fix structural operations before coloring.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (216, 216, 70)
|
||||
1. declare input before output to match stack arrays: (216, 216, 74) objdiff 89.12037 pool/regression/scan PASS reverted
|
||||
2. decrement remaining history samples before source wrap: (216, 216, 63) objdiff 89.15741 pool/regression/scan PASS retained for further trials
|
||||
3. separate history increment from index masking: (216, 216, 11) objdiff 99.64352 pool/regression/scan PASS retained for further trials
|
||||
Final restored (216, 216, 70)
|
||||
Origin e5f4e0e1f4b38e8ac2f461523b2cb26ede5210f4, source identical
|
||||
Diagnosis: Prior structural trials reduced 70 diffs to 11. Retain separate history increments and earlier whole decrement; then inspect arrays/induction coloring.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (216, 216, 70)
|
||||
1. restore separate increments and decrement before wrap: (216, 216, 11) objdiff 99.64352 pool/regression/scan PASS retained for further trials
|
||||
2. exchange input and output array declarations after loop repairs: (216, 216, 15) objdiff 99.625 pool/regression/scan PASS reverted
|
||||
3. declare retained history index before fractional source indices: (216, 216, 11) objdiff 99.64352 pool/regression/scan PASS reverted
|
||||
Final restored (216, 216, 70)
|
||||
Origin fed31b69b6e31473842c24734915f62f8466a84f, source identical
|
||||
Diagnosis: 11 remaining differences after loop fix are input/output expression operand order and stack pointer register allocation.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (216, 216, 70)
|
||||
1. separate history increments and decrement before wrap: (216, 216, 11) objdiff 99.64352 pool/regression/scan PASS retained for further trials
|
||||
2. read output before incremented bus input in dry addition: (216, 216, 0) objdiff 100 pool/regression/scan PASS retained for further trials
|
||||
regressions vs baseline: 0
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
[agent/w1002/near7 6cc459c4] match axfxchorusexpcallback
|
||||
|
||||
## __InitParams
|
||||
Origin c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273, source identical
|
||||
Diagnosis: 126/126; comparison reversed and independent integer resets, floating conversions and history stores reorder. Conversion locals needed before data stores; no inline helper boundary mismatch.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (126, 126, 56)
|
||||
Origin c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273, source identical
|
||||
Diagnosis: 126/126; comparison reversed and independent integer resets, floating conversions and history stores reorder. Conversion locals needed before data stores; no inline helper boundary mismatch.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (126, 126, 56)
|
||||
1. compare depth against delay in target operand order: (126, 126, 55) objdiff 69.992065 pool/regression/scan PASS retained for further trials
|
||||
2. compute all signed LFO conversions in locals before state stores: (126, 126, 55) objdiff 69.75397 pool/regression/scan PASS reverted
|
||||
3. multiply depth on left of fixed point scale: (126, 126, 55) objdiff 69.992065 pool/regression/scan PASS reverted
|
||||
Final restored (126, 126, 56)
|
||||
Origin 0d75b24a9634b51dd5a74eb4d7ce09dea02d681b, source differs; inspected below
|
||||
Diagnosis: Move integer state initialization ahead of arithmetic conversions so history stores no longer interleave. Same constants and operation associations as original.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (126, 126, 56)
|
||||
1. initialize integer LFO state before conversion stores: (126, 126, 55) objdiff 69.79365 pool/regression/scan PASS retained for further trials
|
||||
2. depth on left in saturation comparison: (126, 126, 54) objdiff 69.87302 pool/regression/scan PASS retained for further trials
|
||||
3. compute period step before phase and depth conversions: (126, 126, 55) objdiff 69.11905 pool/regression/scan FAIL reverted
|
||||
Final restored (126, 126, 56)
|
||||
Origin d17ab22bf0394165d00ce90513e36b576ee05d94, source differs; inspected below
|
||||
Diagnosis: Try natural inline history clearing helper to establish arithmetic boundary matching target history stores after all conversion stores.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (126, 126, 56)
|
||||
1. inline history clearing boundary after LFO conversion stores: (126, 126, 56) objdiff 69.9127 pool/regression/scan PASS reverted
|
||||
Final restored (126, 126, 56)
|
||||
|
||||
## __CalcLFO
|
||||
Origin c1cccf1c2c9ef6531a5f914c1e67b7032dbbc273, source identical
|
||||
Diagnosis: 65 target; target retains signed 64 bit shifted sample and negation carry, ours manually assembles low word. Target unsigned sign >=1. Restore arithmetic width first.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 65, 65)
|
||||
1. use signed 64 bit shifts and retained sample value: (54, 65, 65) objdiff 61.46154 pool/regression/scan PASS retained for further trials
|
||||
2. test unsigned LFO sign against one: (54, 65, 65) objdiff 62.384617 pool/regression/scan PASS reverted
|
||||
3. widen accumulated last sample before gradient addition: (54, 65, 65) objdiff 61.46154 pool/regression/scan PASS reverted
|
||||
Final restored (51, 65, 65)
|
||||
Origin 0d75b24a9634b51dd5a74eb4d7ce09dea02d681b, source differs; inspected below
|
||||
Diagnosis: Target gradient multiply expands 64-bit difference operand, sample shift/negation remain 64-bit. Target uses fixed-count CTR loop.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 65, 65)
|
||||
1. retain 64 bit gradient difference and signed sample with sign threshold: (54, 65, 65) objdiff 62.384617 pool/regression/scan PASS retained for further trials
|
||||
2. fixed-count ascending for loop: (55, 65, 65) objdiff 72.0 pool/regression/scan PASS retained for further trials
|
||||
3. name gradient product independently before shifted store: (55, 65, 65) objdiff 72.0 pool/regression/scan PASS reverted
|
||||
Final restored (51, 65, 65)
|
||||
Origin d17ab22bf0394165d00ce90513e36b576ee05d94, source differs; inspected below
|
||||
Diagnosis: Try compound assignment preserving signed 64-bit multiplication intermediate instead of direct product expression, with fixed-count CTR loop.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 65, 65)
|
||||
1. compound 64 bit gradient multiplication with signed output: (61, 65, 65) objdiff 62.29231 pool/regression/scan PASS retained for further trials
|
||||
Final restored (51, 65, 65)
|
||||
|
||||
## pdm_part_is_master_boot_sector
|
||||
Origin d9fbf88fb8fcce715fab661f1fe8be49f007efcd, source identical
|
||||
Diagnosis: 86/84; frame 64 vs 48 saves extra r29 from endian load association. Target start/count pointers r6/r7 and index r8. Target high byte loaded before middle byte, addition pair layout remains meaningful.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (86, 84, 84)
|
||||
1. evaluate high byte pair before low byte pair: (86, 84, 85) objdiff 82.27381 pool/regression/scan PASS reverted
|
||||
2. group little endian words as independent low and high halves: (86, 84, 85) objdiff 86.38095 pool/regression/scan PASS reverted
|
||||
3. initialize traversal pointers at declaration after signature validation: compile failed /pdm_partition.d
|
||||
Final restored (86, 84, 84)
|
||||
Origin c8bb9f44da1ea63d0dad0a388957bcb5a4150fab, source identical
|
||||
Diagnosis: Third compiling structural trial: high/middle byte loads ordered by named scalar parts; target saves one fewer callee register.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (86, 84, 84)
|
||||
1. name high and low byte pairs before stores: (83, 84, 76) objdiff 81.34524 pool/regression/scan PASS retained for further trials
|
||||
Final restored (86, 84, 84)
|
||||
Origin d17ab22bf0394165d00ce90513e36b576ee05d94, source identical
|
||||
Diagnosis: Named endian halves reduced frame/instruction count; preliminary start store must precede remaining buffer reads to preserve target alias dependency.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (86, 84, 84)
|
||||
1. retain preliminary start store before count byte loads: (84, 84, 36) objdiff 86.95238 pool/regression/scan PASS retained for further trials
|
||||
2. evaluate low start half before high start half: (84, 84, 36) objdiff 86.75 pool/regression/scan PASS reverted
|
||||
start (27, 36)
|
||||
improved (27, 34)
|
||||
improved (27, 33)
|
||||
improved (27, 32)
|
||||
improved (27, 26)
|
||||
best (27, 26) after 33 builds; kept in source:
|
||||
Final restored (86, 84, 84)
|
||||
|
||||
## pdm_part_get_start_sector
|
||||
Origin d9fbf88fb8fcce715fab661f1fe8be49f007efcd, source identical
|
||||
Diagnosis: 276/276; endian macro operand association and load scheduling differ, preserved frame and control flow. Target reads middle bytes of several partitions first; grouping words affects scheduler.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (276, 276, 146)
|
||||
1. use grouped high and low half endian addition at call sites: (276, 276, 140) objdiff 83.10507 pool/regression/scan PASS retained for further trials
|
||||
2. interleave start and length array initialization by partition: (276, 276, 145) objdiff 83.065216 pool/regression/scan PASS reverted
|
||||
3. separate requested partition declaration from member load: (276, 276, 140) objdiff 83.10507 pool/regression/scan PASS reverted
|
||||
Final restored (276, 276, 146)
|
||||
|
||||
## pdm_part_chg_ltop
|
||||
Origin d9fbf88fb8fcce715fab661f1fe8be49f007efcd, source identical
|
||||
Diagnosis: 51/51; ratio and adjusted start exchange r0/r3 only. No structural differences. Try ratio lifetime/width then declaration search.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 51, 16)
|
||||
1. load media ratio before start sector: (51, 51, 16) objdiff 97.84314 pool/regression/scan PASS reverted
|
||||
2. use separate logical and physical sector ratios: compile failed
|
||||
3. commute the final logical-sector addition: (51, 51, 16) objdiff 97.745094 pool/regression/scan PASS reverted
|
||||
Final restored (51, 51, 16)
|
||||
Origin c8bb9f44da1ea63d0dad0a388957bcb5a4150fab, source identical
|
||||
Diagnosis: Third compiling variation separates logical ratio lifetime with leading C declarations.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 51, 16)
|
||||
1. separate leading declaration for logical ratio: (51, 51, 16) objdiff 97.84314 pool/regression/scan PASS reverted
|
||||
Register-only declaration search
|
||||
Final restored (51, 51, 16)
|
||||
Origin 17407ed1cbfa5f7f43ebd141902ceea0c73a1e64, source identical
|
||||
Diagnosis: Structural source attempts exhausted; use declaration permutation search for remaining r0/r3 assignment.
|
||||
POOL IDENTICAL up to 0 (mine=0 base=0)
|
||||
Initial (51, 51, 16)
|
||||
Register-only declaration search
|
||||
start (0, 16)
|
||||
best (0, 16) after 6 builds; source restored; best order was:
|
||||
Final restored (51, 51, 16)
|
||||
|
||||
## AESiEncryptBlock
|
||||
Origin 0d75b24a9634b51dd5a74eb4d7ce09dea02d681b, source identical
|
||||
Diagnosis: 158/158; same 64-byte frame, four-word round and decrement branch. Target associates byte3/byte2 then byte1 then byte0 and round key; ours schedules final byte with byte1 separately. Operand association and local lifetime first.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (158, 158, 134)
|
||||
1. combine each round key into its corresponding next-word temporary: (158, 158, 137) objdiff 52.829113 pool/regression/scan PASS reverted
|
||||
2. group each round lookup into high and low byte pairs: (158, 158, 134) objdiff 60.348103 pool/regression/scan PASS reverted
|
||||
3. declare all next state words before round expressions: (158, 158, 134) objdiff 60.348103 pool/regression/scan PASS reverted
|
||||
Final restored (158, 158, 134)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: Round key first XOR association and final substitution key-first association follow target merge order. Prior structural variants unchanged or regressed; these move operand roots.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (158, 158, 134)
|
||||
1. put round key at the XOR expression root: (158, 158, 137) objdiff 52.829113 pool/regression/scan PASS reverted
|
||||
2. put final round key before substituted bytes: (158, 158, 134) objdiff 60.348103 pool/regression/scan PASS reverted
|
||||
Final restored (158, 158, 134)
|
||||
|
||||
## AESiDecryptBlock
|
||||
Origin 0d75b24a9634b51dd5a74eb4d7ce09dea02d681b, source identical
|
||||
Diagnosis: 251 target; two-word unrolled key transform and same round frame. Target mix algebra uses successive xor-and-rotate stages; ours equivalent association changes scheduling. Round lookup differs as encryption.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (249, 251, 244)
|
||||
1. combine each round key into its corresponding next-word temporary: (249, 251, 244) objdiff 62.063744 pool/regression/scan PASS reverted
|
||||
2. group each round lookup into high and low byte pairs: (249, 251, 244) objdiff 61.49004 pool/regression/scan PASS reverted
|
||||
3. declare all next state words before round expressions: (249, 251, 244) objdiff 61.49004 pool/regression/scan PASS reverted
|
||||
Final restored (249, 251, 244)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: Round key first XOR association and final substitution key-first association follow target merge order. Prior structural variants unchanged or regressed; these move operand roots.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (249, 251, 244)
|
||||
1. put round key at the XOR expression root: (249, 251, 244) objdiff 62.063744 pool/regression/scan PASS reverted
|
||||
|
||||
## NETAESCreateEx
|
||||
Origin 0d75b24a9634b51dd5a74eb4d7ce09dea02d681b, source identical
|
||||
Diagnosis: 107/108; target key word count recomputed after memcpy from saved keyLength; target rotate-substitute bytes associated in a different operand order. Independent declaration/operation lifetime first.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (107, 108, 81)
|
||||
1. compute schedule word count after memcpy: (107, 108, 81) objdiff 88.98148 pool/regression/scan PASS reverted
|
||||
2. substitute rotated key bytes explicitly in target operand order: (107, 108, 81) objdiff 90.18519 pool/regression/scan PASS reverted
|
||||
3. declare schedule before key expansion scalars: (107, 108, 81) objdiff 88.98148 pool/regression/scan PASS reverted
|
||||
Final restored (107, 108, 81)
|
||||
Origin a81b7c36fe25993fac3ad2a3009f16839aed40ec, source identical
|
||||
Diagnosis: Target round count truncates to 8-bit before context store, then separately computes untruncated word count after memcpy. Factor the derived round count into typed temporary to avoid reused division.
|
||||
POOL IDENTICAL up to 4 (mine=4 base=4)
|
||||
Initial (107, 108, 81)
|
||||
1. use 8 bit round count before context store: (107, 108, 81) objdiff 88.98148 pool/regression/scan PASS reverted
|
||||
2. initialize word count independently after retaining context round count: (114, 108, 111) objdiff 72.99074 pool/regression/scan PASS reverted
|
||||
3. use signed key word count matching SDK length domain: (107, 108, 81) objdiff 88.47222 pool/regression/scan PASS reverted
|
||||
Final restored (107, 108, 81)
|
||||
|
||||
## Final open-function audit
|
||||
setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode: 99.04762%, 3 compiling source trials; one extra move initializes the defined fallback; target default path appears uninitialized, preserved defined behavior.
|
||||
onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb: 99.081635%, 7 compiling source trials; inline setter flags and owner registers r4/r6 exchanged after structural and declaration trials.
|
||||
onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv: 98.84615%, 3 compiling source trials; inline setter flags and owner registers r4/r6 exchanged after structural and declaration trials.
|
||||
pdm_part_is_master_boot_sector: 86.5%, 5 compiling source trials; endian byte-load association changes frame and saved registers; staged loads can fix frame but not schedule.
|
||||
pdm_part_get_start_sector: 82.56159%, 3 compiling source trials; endian extraction load schedule and scalar register allocation.
|
||||
pdm_part_chg_ltop: 97.84314%, 3 compiling source trials; ratio/start r0/r3 exchange; declsearch six orders unchanged.
|
||||
__InitParams: 69.9127%, 7 compiling source trials; floating scheduling, compare operand order and state-store scheduling; 126 instructions each.
|
||||
__CalcLFO: 68.53846%, 7 compiling source trials; signed 64-bit gradient multiplication boundary, shifted sample lifetime and loop scheduling.
|
||||
AESiEncryptBlock: 60.348103%, 5 compiling source trials; round lookup/XOR operand association and temporary lifetimes; 158 instructions each.
|
||||
AESiDecryptBlock: 61.49004%, 4 compiling source trials; key-transform algebra scheduling and round lookup/XOR operand association; 249 versus 251 instructions.
|
||||
NETAESCreateEx: 88.98148%, 6 compiling source trials; derived word-count lifetime and key-substitution operand scheduling; 107 versus 108 instructions.
|
||||
|
||||
## Accepted instruction-exact results
|
||||
getControlKey__Q49textinput8keyboard6pctype4BaseFPc
|
||||
src 0x90 base 0x90 insns 36/36
|
||||
diffs 0: []
|
||||
AXFXChorusExpCallback
|
||||
src 0x360 base 0x360 insns 216/216
|
||||
diffs 0: []
|
||||
AXFXChorusExpShutdown
|
||||
src 0x90 base 0x90 insns 36/36
|
||||
diffs 0: []
|
||||
|
||||
## Before -> after, instruction exact / matched code bytes / matched data bytes
|
||||
tiPcKeyboard: 137/141 -> 138/141; 27568 -> 27712; 18548 -> 18548
|
||||
pdm_partition: 17/20 -> 17/20; 2072 -> 2072; no data section
|
||||
AXFXChorusExp: 3/7 -> 5/7; 912 -> 1920; 48 -> 48
|
||||
aes: 6/9 -> 6/9; 684 -> 684; 2800 -> 2800
|
||||
|
||||
## Final full gate, all four units
|
||||
full build: ok
|
||||
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
|
||||
[src/keyboard/tiPcKeyboard] pool: IDENTICAL
|
||||
[src/keyboard/tiPcKeyboard] objdiff: code 27712/28484 data 18548/18564 functions 138/141 fuzzy 99.9733 linked code 0
|
||||
[src/keyboard/tiPcKeyboard] instruction-exact functions: 138/141
|
||||
[src/keyboard/tiPcKeyboard] section .bss size 16 match None
|
||||
[src/keyboard/tiPcKeyboard] section .ctors size 4 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .data size 12576 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .rodata size 5816 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sbss size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata size 136 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .sdata2 size 8 match 100.0
|
||||
[src/keyboard/tiPcKeyboard] section .text size 28484 match 99.97332
|
||||
[src/keyboard/tiPcKeyboard] below 100: setTranslateMode__Q49textinput8keyboard6pctype4BaseFQ59textinput8keyboard6pctype4Base13TranslateMode 99.04762
|
||||
[src/keyboard/tiPcKeyboard] below 100: onPressedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFb 99.081635
|
||||
[src/keyboard/tiPcKeyboard] below 100: onReleasedShift__Q49textinput8keyboard6pctype12LayoutByNW4RFv 98.84615
|
||||
[src/keyboard/tiPcKeyboard] baseline: code 27568/28484 data 18548 functions 137 fuzzy 99.9396
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] objdiff: code 2072/3716 data None/None functions 17/20 fuzzy 93.4801 linked code 0
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] instruction-exact functions: 17/20
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] section .text size 3716 match 93.48009
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_is_master_boot_sector 86.5
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_get_start_sector 82.56159
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] below 100: pdm_part_chg_ltop 97.84314
|
||||
[libs/RVL_SDK/src/fa/pdm_partition] baseline: code 2072/3716 data None functions 17 fuzzy 93.4801
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] pool: IDENTICAL
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] objdiff: code 1920/2684 data 48/48 functions 5/7 fuzzy 91.3025 linked code 0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] instruction-exact functions: 5/7
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .sdata2 size 48 match 100.0
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] section .text size 2684 match 91.302536
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __InitParams 69.9127
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] below 100: __CalcLFO 68.53846
|
||||
[libs/RVL_SDK/src/axfx/AXFXChorusExp] baseline: code 912/2684 data 48 functions 3 fuzzy 87.7615
|
||||
[libs/RevoEX/src/net/aes] pool: IDENTICAL
|
||||
[libs/RevoEX/src/net/aes] objdiff: code 684/2752 data 2800/2800 functions 6/9 fuzzy 75.1148 linked code 0
|
||||
[libs/RevoEX/src/net/aes] instruction-exact functions: 6/9
|
||||
[libs/RevoEX/src/net/aes] section .data size 200 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .rodata size 2592 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .sdata2 size 8 match 100.0
|
||||
[libs/RevoEX/src/net/aes] section .text size 2752 match 75.11482
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiEncryptBlock 60.348103
|
||||
[libs/RevoEX/src/net/aes] below 100: AESiDecryptBlock 61.49004
|
||||
[libs/RevoEX/src/net/aes] below 100: NETAESCreateEx 88.98148
|
||||
[libs/RevoEX/src/net/aes] baseline: code 684/2752 data 2800 functions 6 fuzzy 75.1148
|
||||
regressions vs baseline: 0
|
||||
global matched_code_percent: 87.99755 -> 88.03601
|
||||
global fuzzy_match_percent: 99.37608 -> 99.37956
|
||||
global complete_code_percent: 62.37071 -> 62.37071
|
||||
global matched_data_percent: 92.06847 -> 92.06847
|
||||
forbidden patterns added (net, per file): 0
|
||||
readability warnings (net, per file; must be 0 in the final result): 0
|
||||
GATE PASS
|
||||
|
||||
|
||||
## Source commits
|
||||
6cc459c4 match axfxchorusexpcallback
|
||||
c10cacbe match axfxchorusexpshutdown
|
||||
21811470 match base::getcontrolkey
|
||||
|
||||
## Uncertainty
|
||||
The enum default path appears uninitialized in the target; no undefined fallback was introduced. The exact LFO source boundary responsible for its expanded 64-bit gradient multiplication remains unresolved.
|
||||
Reference in New Issue
Block a user