Compare commits

...

1 Commits

Author SHA1 Message Date
coah
ff1db460ce pf_dir 34/38, NWC24Download 16/30, tiCellPhone 79/86 (worker 6e98b375) 2026-09-30 12:49:29 +00:00
9 changed files with 1598 additions and 1419 deletions

View File

@@ -53,9 +53,9 @@ Progress
<!-- progress:start -->
| Decompiled | Matched | Linked | Data |
|:---:|:---:|:---:|:---:|
| 96.72% | 83.24% | 58.20% | 89.93% |
| 97.04% | 83.51% | 58.20% | 89.93% |
units 778/1027 complete, functions 12006/12563 matched.
units 778/1027 complete, functions 12020/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 -->

View File

@@ -325,7 +325,14 @@ namespace textinput {
class CellPhoneAnmPane : public nw4rmanager::AnmPane {
public:
CellPhoneAnmPane(nw4r::lyt::Pane* pane, nw4rmanager::AnmObserver* observer)
#ifdef TI_CELLPHONE_MATCH_LAYOUT
: nw4rmanager::AnmPane(pane, observer), meState(ANM_Normal), meKeyType(KT_NormalButton) {
init();
changeAnimation(meState);
}
#else
: nw4rmanager::AnmPane(pane, observer), meState(ANM_Normal), meKeyType(KT_NormalButton) {}
#endif
virtual void init() override;
virtual void onAnmEvent(AnmPaneEvent event) override;

View File

@@ -93,8 +93,13 @@ namespace textinput {
extern const KeySet csKeySetCNPinyin;
extern const KeySet csKeySetHangul;
#ifdef TI_CELLPHONE_MATCH_LAYOUT
extern const wchar_t* csSpaceZero;
extern const wchar_t* csSpace;
#else
extern const wchar_t csSpaceZero[3];
extern const wchar_t csSpace[3];
#endif
}
}
}

View File

@@ -151,6 +151,26 @@ namespace textinput {
u32 GetModifierState() const;
void SetModifierState(u32, u32);
#if defined(TI_CELLPHONE_HKB_KEYSET)
class KeySet {
public:
u8 GetKey() const;
u32 GetWChar() const;
bool IsValid() const;
KeySet GetNext() const;
KeySet(const KeySet& other)
: mpManager(other.mpManager), mKind(other.mKind), mIndex(other.mIndex),
mDevice(other.mDevice), mCharacter(other.mCharacter) {}
private:
const HKBManager* mpManager;
u8 mKind;
s8 mIndex;
u8 mDevice;
u16 mCharacter;
};
KeySet GetTriggeredKeySet() const;
KeySet GetRepeatedKeySet() const;
#else
#if defined(TI_PC_KEYBOARD_IMPLEMENTATION) || defined(TISIGNWINDOW_IMPLEMENTATION) || defined(TIHWKEYBOARD_IMPLEMENTATION)
class KeySet {
public:
@@ -202,6 +222,7 @@ namespace textinput {
KeySet GetRepeatedKeySet() const;
#endif
#endif
#endif
private:
u8 unk_0x00[0xFC];

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,5 @@
#define TI_CELLPHONE_MATCH_LAYOUT
#define TI_CELLPHONE_HKB_KEYSET
#define TI_CELLPHONE_IMPLEMENTATION
#define TI_CELLPHONE_SAMPLE_CLASS
#define MYTIMANAGER_IMPLEMENTATION
@@ -231,164 +233,136 @@ namespace textinput {
void Base::calc() {}
static inline const PaneNameToCharCode* findKeyForPane(const PaneNameToCharCode* keys, const char* paneName) {
for (u16 index = 0; index < 12; index++) {
if (util::strcmp(keys[index].szPaneName, paneName)) { return &keys[index]; }
}
return NULL;
}
void Base::onKey(u32 event, void* data) {
struct KeyEvent {
const char* paneName;
u8 state;
struct KeyEvent { const char* paneName; u8 state; };
struct ConfirmInput {
wchar_t character;
u16 letterMode;
bool direct;
bool held;
bool confirmOnly;
bool silent;
const PaneNameToCharCode* holdingKey;
};
struct KeyInputData {
u16 character;
u16 inputMode;
u32 state;
const PaneNameToCharCode* pane;
};
const KeyEvent& keyEvent = *static_cast<const KeyEvent*>(data);
if (!mbInputModeLocked && event == gui::EventHandler::ON_TRIG) {
u32 controlKey;
u16 i;
for (i = 0; i < 12; ++i) {
if (util::strcmp(csPaneNameToControlKey[i].name, keyEvent.paneName)) {
controlKey = csPaneNameToControlKey[i].controlKey;
goto controlKeyFound;
if (mbInputModeLocked) { return; }
const char* paneName = static_cast<KeyEvent*>(data)->paneName;
if (event == gui::EventHandler::ON_TRIG) {
u8 state = static_cast<KeyEvent*>(data)->state;
s32 controlKey = 0x1B;
for (u16 index = 0; index < 12; index++) {
if (util::strcmp(csPaneNameToControlKey[index].name, paneName)) {
controlKey = csPaneNameToControlKey[index].controlKey;
break;
}
}
controlKey = 0x1B;
controlKeyFound:
if (controlKey != 0x1B) {
onCtrlKey_(static_cast<VKeyCode>(controlKey));
} else {
bool useKeySetInput = isZiActive();
if (!useKeySetInput) {
Language language = getLanguage();
if (language == CN) {
useKeySetInput = true;
} else if (getLanguage() == KR && mHoldingButton != 0) {
useKeySetInput = true;
} else if (getInputType() == 1) {
useKeySetInput = true;
} else if (!isZiActive() || getLanguage() == CN ||
(getLanguage() == KR && mCurrentInputMode != 0) || getInputType() == 1) {
LanguageDependencyData* inputModeTable = static_cast<LanguageDependencyData*>(mpInputModeTable);
if (mHoldingButton == NULL) {
u32 inputMode = mCurrentInputMode;
if (getLanguage() == JP && inputMode == IM_02) {
if (!mbUpperCaseMode) { inputMode = IM_04; }
} else if (inputModeTable->keySets[inputMode]->uType == KEY_TYPE_ABC_UPPER && !mbUpperCaseMode) {
inputMode = IM_01;
}
const PaneNameToCharCode* keys = inputModeTable->keySets[inputMode]->pPaneNameToCharCode;
mHoldingButton = findKeyForPane(keys, paneName);
if (state) {
mPreviousInputMode = 15;
while (mHoldingButton->wc[mPreviousInputMode] == 0) { mPreviousInputMode--; }
} else { mPreviousInputMode = 0; }
} else {
if (state) { mPreviousInputMode--; }
else { mPreviousInputMode++; }
if (mPreviousInputMode == 16) { mPreviousInputMode = 0; }
else if (static_cast<s32>(mPreviousInputMode) < 0) {
mPreviousInputMode = 15;
while (mHoldingButton->wc[mPreviousInputMode] == 0) { mPreviousInputMode--; }
}
if (mHoldingButton->wc[mPreviousInputMode] == 0) { mPreviousInputMode = 0; }
}
if (mHoldingButton) {
ConfirmInput commandData = {0};
commandData.character = mHoldingButton->wc[mPreviousInputMode];
commandData.holdingKey = mHoldingButton;
if (getInputType() == 1 && mHoldingButton->wc[1] != L'0' && mHoldingButton->wc[0] != L' ') {
commandData.direct = true;
}
if (getLanguage() == KR && mCurrentInputMode != 0) { commandData.direct = true; }
if (getLanguage() == CN && mCurrentInputMode != 0) { commandData.direct = true; }
if (mHoldingButton->wc[1] == 0) {
if (mbNumericWithDotMode && commandData.character == L'*') { commandData.character = L'.'; }
sendCommand(5, &commandData);
mPreviousInputMode = 0;
mHoldingButton = NULL;
} else {
if (getLanguage() == JP && commandData.character == L' ' &&
getInputMode() != IM_04 && getInputMode() != IM_02) { commandData.character = 0x3000; }
sendCommand(3, &commandData);
}
}
if (useKeySetInput) {
LanguageDependencyData* inputModeTable = static_cast<LanguageDependencyData*>(mpInputModeTable);
const KeySet* keySet = inputModeTable->keySets[mCurrentInputMode];
if (mHoldingButton == 0) {
if (getLanguage() == JP && mCurrentInputMode == IM_02 && !mbUpperCaseMode) {
mCurrentInputMode = IM_04;
} else if (keySet->uType == KEY_TYPE_ABC_UPPER && !mbUpperCaseMode) {
mCurrentInputMode = IM_01;
}
keySet = inputModeTable->keySets[mCurrentInputMode];
for (u16 i = 0; i < 12; ++i) {
if (util::strcmp(keySet->pPaneNameToCharCode[i].szPaneName, keyEvent.paneName)) {
mHoldingButton = &keySet->pPaneNameToCharCode[i];
break;
}
}
const PaneNameToCharCode* pane = mHoldingButton;
if (keyEvent.state) {
mPreviousInputMode = 15;
while (pane && pane->wc[mPreviousInputMode] == 0) {
--mPreviousInputMode;
}
} else {
const PaneNameToCharCode* keys = csKeySetNumber.pPaneNameToCharCode;
for (u16 index = 0; index < 12; index++) {
const PaneNameToCharCode* pane = &keys[index];
if (util::strcmp(pane->szPaneName, paneName)) {
wchar_t character = pane->wc[0];
ConfirmInput commandData = {0};
commandData.character = character;
commandData.letterMode = mCurrentInputMode;
commandData.holdingKey = mHoldingButton;
bool convertSpace = false;
sendCommand(0x20, &convertSpace);
if (character == L'0' && getLanguage() != KR) {
if (convertSpace) { sendCommand(6, NULL); }
ConfirmInput spaceInput = {L' ', 0, true, false, true, false, NULL};
spaceInput.letterMode = mCurrentInputMode;
spaceInput.holdingKey = mHoldingButton;
sendCommand(5, &spaceInput);
mPreviousInputMode = 0;
mHoldingButton = NULL;
} else {
mPreviousInputMode = 0;
}
} else if (keyEvent.state) {
--mPreviousInputMode;
if (static_cast<s32>(mPreviousInputMode) < 0) {
mPreviousInputMode = 15;
const PaneNameToCharCode* pane = mHoldingButton;
while (pane->wc[mPreviousInputMode] == 0) {
--mPreviousInputMode;
}
}
} else {
++mPreviousInputMode;
if (mPreviousInputMode == 16) {
mPreviousInputMode = 0;
}
}
const PaneNameToCharCode* pane = mHoldingButton;
if (pane && pane->wc[mPreviousInputMode] == 0) {
mPreviousInputMode = 0;
}
if (pane) {
KeyInputData commandData = {0, 0, 0, NULL};
commandData.character = pane->wc[mPreviousInputMode];
commandData.inputMode = mCurrentInputMode;
commandData.pane = pane;
keySet = inputModeTable->keySets[mCurrentInputMode];
if (getInputType() == 1 && pane->wc[1] != 0x30 && pane->wc[0] != 0x20) {
commandData.state = 1;
}
if (getLanguage() == KR && mCurrentInputMode != 0) {
commandData.state = 1;
}
if (getLanguage() == CN && mCurrentInputMode != 0) {
commandData.state = 1;
}
if (keySet->uNum == 0) {
if (mbNumericWithDotMode && commandData.character == 0x2A) {
commandData.character = 0x2E;
const LanguageDependencyData* table = static_cast<const LanguageDependencyData*>(mpInputModeTable);
const PaneNameToCharCode* currentKeys = table->keySets[mCurrentInputMode]->pPaneNameToCharCode;
commandData.holdingKey = findKeyForPane(currentKeys, paneName);
if (table->keySets[mCurrentInputMode]->uType == KEY_TYPE_ABC_UPPER && !mbAbcMode) {
commandData.letterMode = IM_01;
currentKeys = table->keySets[IM_01]->pPaneNameToCharCode;
commandData.holdingKey = findKeyForPane(currentKeys, paneName);
}
commandData.character = convertToZiCellphoneInput_(commandData.character);
sendCommand(5, &commandData);
mPreviousInputMode = 0;
mHoldingButton = 0;
} else {
if (!isZiActive() && commandData.character == 0x20 &&
getInputMode() != IM_04 && getInputMode() != IM_02) {
commandData.character = 0x3000;
}
sendCommand(3, &commandData);
}
}
} else {
const KeySet& numberKeySet = csKeySetNumber;
for (u16 i = 0; i < 12; ++i) {
const PaneNameToCharCode& pane = numberKeySet.pPaneNameToCharCode[i];
if (util::strcmp(pane.szPaneName, keyEvent.paneName)) {
KeyInputData commandData = {pane.wc[0], static_cast<u16>(mCurrentInputMode), 0, NULL};
sendCommand(0x20, &commandData);
if (getLanguage() == KR && pane.wc[0] == 0x30) {
break;
}
if (mbNumericWithDotMode && commandData.character == 0x2A) {
commandData.character = 0x2E;
} else {
commandData.character = convertToZiCellphoneInput_(commandData.character);
}
sendCommand(5, &commandData);
break;
}
}
}
}
}
if (event == gui::EventHandler::ON_LEFT && mHoldingButton != 0) {
const PaneNameToCharCode* pane = mHoldingButton;
if (util::strcmp(keyEvent.paneName, pane->szPaneName)) {
u16 character = pane->wc[mPreviousInputMode];
if (event == gui::EventHandler::ON_LEFT && mHoldingButton != NULL) {
if (util::strcmp(paneName, mHoldingButton->szPaneName)) {
wchar_t character = mHoldingButton->wc[mPreviousInputMode];
if (character != 0x309B && character != 0x309C) {
KeyInputData commandData = {character, static_cast<u16>(mCurrentInputMode), 0, pane};
if (getLanguage() == JP && character == L' ' && getInputMode() != IM_04 && getInputMode() != IM_02) {
character = 0x3000;
}
ConfirmInput commandData = {0, 0, false, false, true, false, NULL};
commandData.character = character;
commandData.holdingKey = mHoldingButton;
if (getInputType() == 1) { commandData.direct = true; }
if (getLanguage() == KR && mCurrentInputMode != 0) { commandData.direct = true; }
if (getLanguage() == CN && mCurrentInputMode != 0) { commandData.direct = true; }
sendCommand(5, &commandData);
}
mPreviousInputMode = 0;
mHoldingButton = 0;
mHoldingButton = NULL;
}
}
}
@@ -456,8 +430,6 @@ namespace textinput {
bool Base::onClose() {}
void Base::changeInputMode(InputMode mode) {
u8 activeData[4];
u8 inactiveData[4];
mCurrentInputMode = mode;
if (getLanguage()) {
mbUpperCaseMode = true;
@@ -469,12 +441,12 @@ namespace textinput {
}
if (mode == IM_00) {
activeData[0] = 1;
sendCommand(0x13, activeData);
struct ActiveMode { bool enabled; } activeData = {true};
sendCommand(0x13, &activeData);
}
if (mode == IM_01) {
inactiveData[0] = 0;
sendCommand(0x13, inactiveData);
struct InactiveMode { bool enabled; } inactiveData = {false};
sendCommand(0x13, &inactiveData);
}
updateFixMode();
@@ -550,18 +522,16 @@ namespace textinput {
void Base::onActive() {
u32 commandData = 0;
u8 activeData[4];
u8 inactiveData[4];
sendCommand(0x12, &commandData);
if (mCurrentInputMode == IM_00) {
activeData[0] = 1;
sendCommand(0x13, activeData);
struct ActiveMode { bool enabled; } activeData = {true};
sendCommand(0x13, &activeData);
}
if (static_cast<s32>(mCurrentInputMode) == IM_01) {
inactiveData[0] = 0;
sendCommand(0x13, inactiveData);
struct InactiveMode { bool enabled; } inactiveData = {false};
sendCommand(0x13, &inactiveData);
}
if (mCurrentInputMode == IM_00) {
@@ -690,24 +660,21 @@ namespace textinput {
mpPaneManager->setAllBoundingBoxComponentTriggerTarget(true);
for (u16 i = 0; i < sizeof(csPaneNameNormalAnimationKey) / sizeof(csPaneNameNormalAnimationKey[0]); ++i) {
const PaneNameToAnimationKey& paneName = csPaneNameNormalAnimationKey[i];
void* paneMemory = MEMAllocFromAllocator(allocator, sizeof(CellPhoneAnmPane));
CellPhoneAnmPane* pane;
CellPhoneAnmPane* pane = static_cast<CellPhoneAnmPane*>(paneMemory);
if (paneMemory) {
pane = new (paneMemory) CellPhoneAnmPane(getPane(paneName.name), NULL);
pane->init();
pane->changeAnimation(pane->getAnimationState());
} else {
pane = NULL;
pane = new (paneMemory) CellPhoneAnmPane(getPane(csPaneNameNormalAnimationKey[i].name), NULL);
}
nw4r::ut::List_Append(&mAnmPanes, pane);
const PaneNameToAnimationKey& paneName = csPaneNameNormalAnimationKey[i];
const char* animationKey = paneName.animationKey;
for (u16 j = 0; j < 5; ++j) {
const AnimationFileForControlKey& animation = csAninationFileForControlKey[j];
void* resource = mpMultiArcResourceAccessor->GetResource(0, animation.filename);
AnimTransformPane* transform = static_cast<AnimTransformPane*>(
getLayout()->CreateAnimTransform(resource, mpMultiArcResourceAccessor));
if (paneName.animationKey) {
if (animationKey) {
pane->forceAddAnimation(allocator, animation.animation, transform,
paneName.animationKey, false, true);
} else {
@@ -717,24 +684,21 @@ namespace textinput {
}
for (u16 i = 0; i < sizeof(csPaneNameToggleAnimationKey) / sizeof(csPaneNameToggleAnimationKey[0]); ++i) {
const PaneNameToAnimationKey& paneName = csPaneNameToggleAnimationKey[i];
void* paneMemory = MEMAllocFromAllocator(allocator, sizeof(CellPhoneControlAnmPane));
CellPhoneControlAnmPane* pane;
CellPhoneControlAnmPane* pane = static_cast<CellPhoneControlAnmPane*>(paneMemory);
if (paneMemory) {
pane = new (paneMemory) CellPhoneControlAnmPane(getPane(paneName.name), NULL);
pane->init();
pane->changeAnimation(pane->getAnimationState());
} else {
pane = NULL;
pane = new (paneMemory) CellPhoneControlAnmPane(getPane(csPaneNameToggleAnimationKey[i].name), NULL);
}
nw4r::ut::List_Append(&mAnmPanes, pane);
const PaneNameToAnimationKey& paneName = csPaneNameToggleAnimationKey[i];
const char* animationKey = paneName.animationKey;
for (u16 j = 0; j < 6; ++j) {
const AnimationFileForControlKey& animation = csAninationFileForControlKey[j];
void* resource = mpMultiArcResourceAccessor->GetResource(0, animation.filename);
AnimTransformPane* transform = static_cast<AnimTransformPane*>(
getLayout()->CreateAnimTransform(resource, mpMultiArcResourceAccessor));
if (paneName.animationKey) {
if (animationKey) {
pane->forceAddAnimation(allocator, animation.animation, transform,
paneName.animationKey, false, true);
} else {
@@ -743,14 +707,12 @@ namespace textinput {
}
}
for (u32 i = 0; i < 3; ++i) {
nw4r::lyt::Material* material = mpLayout->GetRootPane()->FindPaneByName(csTexturePaneNames.names[i], true)->GetMaterial();
material->GetTexture(&mTextures[i], 0);
}
nw4r::lyt::Pane* rootPane = mpLayout->GetRootPane();
rootPane->FindPaneByName(csTexturePaneNames.names[0], true)->GetMaterial()->GetTexture(&mTextures[0], 0);
rootPane->FindPaneByName(csTexturePaneNames.names[1], true)->GetMaterial()->GetTexture(&mTextures[1], 0);
rootPane->FindPaneByName(csTexturePaneNames.names[2], true)->GetMaterial()->GetTexture(&mTextures[2], 0);
init();
onActive();
changeInputMode(static_cast<InputMode>(mCurrentInputMode));
setLanguage(getLanguage());
}
void LayoutByNW4R::init() {
@@ -778,14 +740,14 @@ namespace textinput {
strncpy(textPaneName, paneName, strlen(paneName));
textPaneName[0] = 'T';
nw4r::lyt::Pane* textPane = getPane(textPaneName);
nw4r::lyt::TextBox* textPane = static_cast<nw4r::lyt::TextBox*>(getPane(textPaneName));
nw4r::lyt::Pane* buttonPane = getPane(paneName);
const KeySet* keySet = static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[i];
if (keySet == NULL) {
buttonPane->SetVisible(false);
} else {
buttonPane->SetVisible(true);
static_cast<nw4r::lyt::TextBox*>(textPane)->SetString(keySet->szKeySetName, 0);
textPane->SetString(static_cast<const LanguageDependencyData*>(mpInputModeTable)->keySets[i]->szKeySetName, 0);
}
}
@@ -807,7 +769,7 @@ namespace textinput {
setVisible(csNumericModePaneNames.spaceJapanese, true);
setVisible(csNumericModePaneNames.key09, true);
setVisible(csNumericModePaneNames.key11, false);
setLineFeedButton(false);
setPredictLanguageButton(false);
} else if (getLanguage() == KR) {
setVisible(csNumericModePaneNames.predictionEuropeanMode, true);
setVisible(csNumericModePaneNames.othersEuropean, true);
@@ -817,7 +779,7 @@ namespace textinput {
setVisible(csNumericModePaneNames.spaceJapanese, true);
setVisible(csNumericModePaneNames.key09, false);
setVisible(csNumericModePaneNames.key11, false);
setLineFeedButton(false);
setPredictLanguageButton(false);
} else {
setVisible(csNumericModePaneNames.predictionEuropeanMode, true);
setVisible(csNumericModePaneNames.othersEuropean, true);
@@ -836,7 +798,7 @@ namespace textinput {
sendCommand(0x1F, &predictMode);
updatePredictLanguage(&predictMode);
nw4rmanager::Layout::initPaneLastDrawReceived();
static_cast<nw4rmanager::Layout*>(this)->initPaneLastDrawReceived();
mpLayout->Animate(0);
mpLayout->CalculateMtx(mDrawInfo);
@@ -860,26 +822,24 @@ namespace textinput {
void LayoutByNW4R::update() {}
static inline s32 findCellPhoneControlKey(const char* paneName) {
for (u16 index = 0; index < 12; ++index) {
if (util::strcmp(csPaneNameToControlKey[index].name, paneName)) {
return csPaneNameToControlKey[index].controlKey;
}
}
return 0x1B;
}
void LayoutByNW4R::onKey(u32 event, void* data) {
Base::onKey(event, data);
if (!mbInputModeLocked) {
s32 controlKey;
bool isTrigger = event == gui::EventHandler::ON_TRIG;
u16 i;
const char* paneName = *static_cast<const char**>(data);
if (isTrigger) {
i = 0;
while (i < 12) {
if (util::strcmp(csPaneNameToControlKey[i].name, paneName)) {
controlKey = csPaneNameToControlKey[i].controlKey;
goto controlKeyFound;
}
++i;
}
controlKey = 0x1B;
controlKeyFound:
controlKey = findCellPhoneControlKey(paneName);
if (controlKey != 0x1B) {
switch (controlKey) {
case 9:
@@ -915,12 +875,11 @@ namespace textinput {
void LayoutByNW4R::onActive() {
u32 commandData = 0;
u8 inactiveData[4];
u8 activeData[4];
sendCommand(0x12, &commandData);
if (static_cast<s32>(mCurrentInputMode) == IM_00) {
activeData[0] = 1;
sendCommand(0x13, activeData);
struct ActiveMode { bool enabled; } activeData = {true};
sendCommand(0x13, &activeData);
}
if (static_cast<s32>(mCurrentInputMode) == IM_01) {
inactiveData[0] = 0;
@@ -967,10 +926,12 @@ namespace textinput {
}
}
if (enabled) {
if (!enabled) { return; }
{
setVisible(csNumericModePaneNames.smallCandidateChange, !enabled);
setVisible(csNumericModePaneNames.key09, !enabled);
setVisible("P_CPkey_dakuten", !enabled);
setVisible(csNumericModePaneNames.smallCandidateChange, !enabled);
setVisible(csNumericModePaneNames.predictionEuropeanMode, !enabled);
setVisible(csNumericModePaneNames.othersEuropean, !enabled);
setVisible(csNumericModePaneNames.spaceJapanese, !enabled);
@@ -1012,7 +973,8 @@ namespace textinput {
void LayoutByNW4R::doNumericWithDotMode(bool enabled) {
doNumericMode(enabled);
setString("T_CPkey_11", L".");
setVisible(csNumericModePaneNames.key11, enabled);
const NumericModePaneNames& paneNames = csNumericModePaneNames;
setVisible(paneNames.key11, enabled);
mbNumericWithDotMode = true;
}
@@ -1020,63 +982,59 @@ namespace textinput {
mbLineFeedButton = enabled;
setVisible("W_CPkey_LF", mbLineFeedButton);
}
bool LayoutByNW4R::updateInput(input::HKBManager& hkbManager) {
if (mpManager->getToolBar()->isEnableKeytopChange()) {
const input::HKBManager::KeySet& keySet = hkbManager.GetTriggeredKeySet();
if (keySet.IsValid()) {
const input::HKBManager::KeySet& triggeredKey = hkbManager.GetTriggeredKeySet();
if (triggeredKey.IsValid()) {
if (mHoldingButton) {
u32 keyData[2] = {reinterpret_cast<u32>(mHoldingButton), 0};
onKey(1, keyData);
struct KeyEvent { const char* paneName; u32 state; } keyEvent = {NULL, 0};
keyEvent.paneName = mHoldingButton->szPaneName;
onKey(gui::EventHandler::ON_LEFT, &keyEvent);
}
changeAnimationAllToNormal();
mpManager->getToolBar()->setQwertyWithSE(true);
if (mpManager->getPCKeyboard()->isABC()) {
return false;
}
mpManager->getPCKeyboard()->setABC(true);
return false;
if (!mpManager->getPCKeyboard()->isABC()) { mpManager->getPCKeyboard()->setABC(true); }
}
return false;
}
{
input::HKBManager::KeySet triggeredKey(hkbManager.GetTriggeredKeySet());
while (triggeredKey.IsValid()) {
u32 key = triggeredKey.GetKey();
} else {
input::HKBManager::KeySet keySet(hkbManager.GetTriggeredKeySet());
while (keySet.IsValid()) {
nw4rmanager::AnmPane* pane = NULL;
if (key == 0x58 || key == 0x28) {
if (!(hkbManager.GetModifierState() & 4)) {
pane = searchAnmPane("W_CPkey_LF");
}
} else {
pane = searchAnmPane(triggeredKey.GetWChar());
u8 key = keySet.GetKey();
u32 character = keySet.GetWChar();
switch (key) {
case 0x58:
case 0x28:
if (!(hkbManager.GetModifierState() & 4)) { pane = searchAnmPane("W_CPkey_LF"); }
break;
default:
pane = searchAnmPane(static_cast<wchar_t>(character));
break;
}
if (pane) {
pane->onAnmEvent(nw4rmanager::AnmPane::PE_0);
}
triggeredKey = triggeredKey.GetNext();
if (pane) { pane->onAnmEvent(nw4rmanager::AnmPane::PE_0); }
keySet = keySet.GetNext();
}
}
{
input::HKBManager::KeySet repeatedKey(hkbManager.GetRepeatedKeySet());
while (repeatedKey.IsValid()) {
u32 key = repeatedKey.GetKey();
keySet = hkbManager.GetRepeatedKeySet();
while (keySet.IsValid()) {
nw4rmanager::AnmPane* pane = NULL;
if (key == 0x4C || (key == 0x2A && !(hkbManager.GetModifierState() & 4))) {
u8 key = keySet.GetKey();
keySet.GetWChar();
switch (key) {
case 0x2A:
if (hkbManager.GetModifierState() & 4) { break; }
case 0x4C:
pane = searchAnmPane("W_CPkey_DELETE");
break;
default:
break;
}
if (pane) {
pane->onAnmEvent(nw4rmanager::AnmPane::PE_0);
}
repeatedKey = repeatedKey.GetNext();
if (pane) { pane->onAnmEvent(nw4rmanager::AnmPane::PE_0); }
keySet = keySet.GetNext();
}
}
return false;
}
void LayoutByNW4R::setPredictLanguageButton(bool enabled) {
setVisible(csNumericModePaneNames.predictionEuropeanMode, enabled);
}
@@ -1085,7 +1043,9 @@ namespace textinput {
if (!enabled) {
setVisible(csNumericModePaneNames.othersEuropean, enabled);
setVisible(csNumericModePaneNames.othersJapanese, enabled);
} else {
return;
}
{
setVisible(csNumericModePaneNames.othersEuropean, false);
setVisible(csNumericModePaneNames.othersJapanese, false);
if (getLanguage() == JP) {
@@ -1176,7 +1136,6 @@ namespace textinput {
}
void LayoutByNW4R::changeInputMode(InputMode mode) {
u8 activeData[4];
u8 inactiveData[4];
mCurrentInputMode = mode;
if (getLanguage()) {
@@ -1189,8 +1148,8 @@ namespace textinput {
}
if (mode == IM_00) {
activeData[0] = 1;
sendCommand(0x13, activeData);
struct ActiveMode { bool enabled; } activeData = {true};
sendCommand(0x13, &activeData);
}
if (mode == IM_01) {
inactiveData[0] = 0;
@@ -1200,14 +1159,14 @@ namespace textinput {
updateFixMode();
sendCommand(0x29, NULL);
u32 keySetIndex = mode;
if (getLanguage() == JP) {
if (static_cast<s32>(keySetIndex) == IM_02 && !mbUpperCaseMode) {
keySetIndex = IM_04;
if (getLanguage() == JP) {
if (!mbUpperCaseMode && mode == IM_02) {
mode = IM_04;
}
switch (keySetIndex) {
switch (mode) {
case IM_00:
case IM_01:
setVisible(csNumericModePaneNames.smallCandidateChange, false);
setVisible(csNumericModePaneNames.key09, true);
setVisible(csNumericModePaneNames.spaceJapanese, true);
@@ -1234,8 +1193,9 @@ namespace textinput {
}
changeKeyTop(static_cast<const LanguageDependencyData*>(mpInputModeTable)
->keySets[keySetIndex]->pPaneNameToCharCode);
nw4rmanager::Layout::initPaneLastDrawReceived();
->keySets[mode]->pPaneNameToCharCode);
nw4rmanager::Layout* layout = this;
layout->initPaneLastDrawReceived();
}
void LayoutByNW4R::changeKeyTop(const PaneNameToCharCode* keys) {
@@ -1252,7 +1212,8 @@ namespace textinput {
}
void LayoutByNW4R::changeSpaceKeyTop(const PaneNameToCharCode* keys) {
if (getLanguage() != JP) {
if (getLanguage() == JP) { return; }
{
char textPaneName[17];
util::replaceChar(textPaneName, sizeof(textPaneName), keys[10].szPaneName, 0, 'T');
nw4r::lyt::Pane* pane = mpLayout->GetRootPane()->FindPaneByName(textPaneName, true);
@@ -1349,44 +1310,36 @@ namespace textinput {
mpSignWindow->open(static_cast<KeyboardBase*>(this), isNumericMode);
throwReleaseForAll();
}
static inline bool isNormalCellPhoneKey(const char* paneName) {
for (int index = 0; index < 12; ++index) {
if (util::strcmp(paneName, csPaneNameNormalKey[index])) { return true; }
}
return false;
}
void EventHandler::onTiEvent(gui::PaneComponent* paneComponent, u32 event, Input* input) {
const char* paneName = paneComponent->getPane()->GetName();
if (paneName[0] == 'B') {
char animationName[17];
util::replaceChar(animationName, sizeof(animationName), paneName, 0, 'W');
CellPhoneAnmPane* animation = static_cast<CellPhoneAnmPane*>(mpLayoutByNW4R->searchAnmPane(animationName));
if (animation != NULL) {
switch (event) {
case gui::EventHandler::ON_TRIG: {
bool pressed = (input->field_0x0C & 0x1000) != 0;
bool normalKey = false;
if (!pressed && (input->field_0x0C & 0x800)) {
for (u32 i = 0; i < 12; ++i) {
if (util::strcmp(paneName, csPaneNameNormalKey[i])) {
normalKey = true;
break;
}
}
pressed = normalKey;
}
if (pressed) {
if (animation) {
switch (static_cast<s32>(event)) {
case gui::EventHandler::ON_TRIG:
if ((input->field_0x0C & 0x800) ||
((input->field_0x0C & 0x400) && isNormalCellPhoneKey(paneName))) {
if (animation->getKeyType() == KT_ControlButton) {
nw4r::ut::List& panes = mpLayoutByNW4R->getAnmPaneList();
CellPhoneAnmPane* other = static_cast<CellPhoneAnmPane*>(nw4r::ut::List_GetNext(&panes, NULL));
while (other) {
if (other != animation && other->getKeyType() == KT_ControlButton) {
other->changeAnimation(ANM_05);
other->onAnmEvent(nw4rmanager::AnmPane::PE_5);
}
other = static_cast<CellPhoneAnmPane*>(nw4r::ut::List_GetNext(&panes, other));
}
animation->changeAnimation(ANM_Normal);
}
animation->onAnmEvent(nw4rmanager::AnmPane::PE_0);
}
break;
}
case gui::EventHandler::ON_LEFT:
animation->onAnmEvent(nw4rmanager::AnmPane::PE_2);
break;
@@ -1400,54 +1353,47 @@ namespace textinput {
}
}
}
struct KeyEvent {
const char* paneName;
u8 state;
u8 repeat;
} keyEvent = {paneName, 0, 0};
if (event == gui::EventHandler::ON_TRIG) {
if (input->field_0x0C & 0x1000) {
mpLayoutByNW4R->onKey(event, &keyEvent);
} else if (input->field_0x0C & 0x800) {
for (u32 i = 0; i < 12; ++i) {
if (util::strcmp(paneName, csPaneNameNormalKey[i])) {
keyEvent.state = 1;
mpLayoutByNW4R->onKey(event, &keyEvent);
paneComponent->setFlightDuration(input->field_0x00, 0);
break;
}
}
if (input->field_0x0C & 0x800) {
keyEvent.state = 0;
mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent);
} else if ((input->field_0x0C & 0x400) && isNormalCellPhoneKey(paneName)) {
keyEvent.state = 1;
mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent);
paneComponent->setFlightDuration(input->field_0x00, 0);
}
} else if (event == gui::EventHandler::ON_LEFT) {
mpLayoutByNW4R->onKey(event, &keyEvent);
}
if (event == gui::EventHandler::ON_MOVE && (input->field_0x10 & 0x1000) &&
!(input->field_0x0C & 0x1000) &&
(util::strcmp(paneName, csPaneNameNormalKey[13]) ||
util::strcmp(paneName, csPaneNameNormalKey[16]))) {
if (paneComponent->isDragging(input->field_0x00)) {
u32 duration = mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName);
if (duration >= 30 && duration % 9 == 0) {
char animationName[17];
util::replaceChar(animationName, sizeof(animationName), paneName, 0, 'W');
CellPhoneAnmPane* animation = static_cast<CellPhoneAnmPane*>(mpLayoutByNW4R->searchAnmPane(animationName));
if (animation) {
animation->changeAnimation(ANM_Normal);
}
keyEvent.state = 1;
mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent);
}
}
if (mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName) == 90) {
keyEvent.repeat = 1;
mpLayoutByNW4R->onKey(gui::EventHandler::ON_LEFT, &keyEvent);
if (event == gui::EventHandler::ON_LEFT) {
mpLayoutByNW4R->onKey(gui::EventHandler::ON_LEFT, &keyEvent);
}
if (event == gui::EventHandler::ON_MOVE && (input->field_0x10 & 0x800) &&
!(input->field_0x0C & 0x800) &&
(util::strcmp(csPaneNameNormalKey[13], paneName) || util::strcmp(csPaneNameNormalKey[16], paneName)) &&
paneComponent->isDragging(input->field_0x00)) {
u32 duration = mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName);
if (duration >= 30 && duration % 9 == 0) {
char animationName[17];
util::replaceChar(animationName, sizeof(animationName), paneName, 0, 'W');
CellPhoneAnmPane* animation = static_cast<CellPhoneAnmPane*>(mpLayoutByNW4R->searchAnmPane(animationName));
animation->onAnmEvent(nw4rmanager::AnmPane::PE_0);
mpLayoutByNW4R->onKey(gui::EventHandler::ON_TRIG, &keyEvent);
}
}
if (event == gui::EventHandler::ON_MOVE && mpLayoutByNW4R->getFlightDuration(input->field_0x00, paneName) == 90) {
keyEvent.repeat = 1;
mpLayoutByNW4R->onKey(gui::EventHandler::ON_LEFT, &keyEvent);
}
}
void CellPhoneAnmPane::init() {
meState = ANM_Normal;
}

View File

@@ -0,0 +1,165 @@
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1 reconstruct rename allocation rollback and LFN writes from all assembly blocks | BUILD FAILED: dir.d build/43U/src/libs/RVL_SDK/src/fa/pf_dir.d
### mwcceppc.exe Compiler:
# File: libs\RVL_SDK\src\fa\pf_dir.c
# -------------------------------------
# 782: if (PFSTR_StrNCmp((PFDIR_STR*)new_path, ":", 1, 1, 1) == 0 &&
# Error: ^
# (10209) illegal implicit conversion from 'char[2]' to
# 'const signed char *'
# Too many errors printed, aborting program
User break, cancelled...
ninja: build stopped: subcommand failed.
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 1 completed control flow typed cache and literal argument fixes | objdiff 90.192000% | insns 584/625 | positional diffs 614 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 2 inline current directory traversal with typed volume state | objdiff 96.568000% | insns 626/625 | positional diffs 619 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 3 reorder real locals to match target stack lifetimes | objdiff 96.568000% | insns 626/625 | positional diffs 619 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1 reconstruct all allocation root cluster dot entries and LFN assembly blocks | BUILD FAILED: -------------------------------------
# 803: pf_u8 attributes, pf_u32 start, pf_u32* found);
# Error: ^
# (10563) identifier 'PFENT_ITER_FindEntry(...)' redeclared as 'long (struct
# PF_ENT_ITER *, struct PF_DIR_ENT *, struct PFDIR_STR *, unsigned char,
# unsigned long, unsigned long *)'
# Too many errors printed, aborting program
User break, cancelled...
ninja: build stopped: subcommand failed.
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 1 complete body with original SDK function declarations | objdiff 92.156586% | insns 550/562 | positional diffs 551 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 2 inline dot directory name stores instead of out of line calls | objdiff 96.887900% | insns 571/562 | positional diffs 559 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_mkdir | 3 explicit sector countdown and separate LFN loop lifetimes | objdiff 96.887900% | insns 571/562 | positional diffs 559 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 1 reconstruct move ancestry checks rollback LFN and dot dot relocation from assembly | objdiff 96.228210% | insns 636/631 | positional diffs 590 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rename | 4 deletion buffer initializer and signed length checks | objdiff 97.376000% | insns 626/625 | positional diffs 614 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 2 use semantic deletion byte buffer and signed unicode length checks | objdiff 96.980980% | insns 636/631 | positional diffs 563 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_move | 3 split open file index from LFN countdown temporary | objdiff 96.973060% | insns 636/631 | positional diffs 563 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 1 restore original iterator after empty check and preserve cluster before removal | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 2 express free chain error normalization as ternary | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 3 explicit free chain success return | objdiff 99.975250% | insns 202/202 | positional diffs 5 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 1 rebuild direct and searched entry branches from original control flow | objdiff 98.178570% | insns 279/280 | positional diffs 267 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_rmdir | 4 order live hint before saved hint to reproduce stack offsets | objdiff 100.000000% | insns 202/202 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 2 order string locals and express accepted flag branch positively | objdiff 98.142860% | insns 279/280 | positional diffs 267 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 3 preserve result temporary through final dispatch branch | objdiff 98.142860% | insns 279/280 | positional diffs 267 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 1 increment free candidate before index | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 2 update candidate in for increment | objdiff 99.681160% | insns 69/69 | positional diffs 2 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 3 advance candidate by indexed next SDD | objdiff 99.536230% | insns 69/69 | positional diffs 3 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 1 let empty-check output initialize is_empty | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 2 reuse entry attribute temporary for both tests | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec_remove | 3 narrow empty flag lifetime to directory branch | objdiff 100.000000% | insns 176/176 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 1 exit scan after a real entry is found | objdiff 100.000000% | insns 193/193 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 2 express single lookup as guarded search | objdiff 94.948190% | insns 192/193 | positional diffs 164 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsnext | 3 use positive entry result branch | objdiff 100.000000% | insns 193/193 | positional diffs 0 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 4 move index increment to loop update | objdiff 99.710144% | insns 69/69 | positional diffs 2 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 5 candidate uses next indexed descriptor | objdiff 95.057970% | insns 72/69 | positional diffs 66 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_GetSDD | 6 scalar descriptor offset drives lookup | objdiff 88.753624% | insns 62/69 | positional diffs 67 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 4 put accepted flag paths inside branch and share invalid return at tail | objdiff 98.803570% | insns 279/280 | positional diffs 38 | regressions 0
libs/RVL_SDK/src/fa/pf_dir | PFDIR_p_fsexec | 5 put dispatch result after invalid flag return and restore pattern order | objdiff 100.000000% | insns 280/280 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 1 reconstruct header validation read failure and repair deletion assembly branches | objdiff 98.490560% | insns 212/212 | positional diffs 4 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 1 reconstruct id rejection access-time validation reset and preincrement retry check from asm | objdiff 90.992096% | insns 247/253 | positional diffs 250 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 2 signed subtask count and separate task pointer assignment | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCheckDlHeaderConsistency | 3 separate list header and repair locals to test prologue scheduling | objdiff 98.773580% | insns 212/212 | positional diffs 3 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 1 rederive URL validation before retry and full-list allocation loop with existing-task update | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 2 separate existing task result from free slot branch | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | AddTaskInternal | 3 positive free-slot branch with explicit retry label | objdiff 93.578550% | insns 397/401 | positional diffs 328 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 2 distinct retry-count local retained across disabled branch | objdiff 90.992096% | insns 247/253 | positional diffs 250 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24UpdateDlTask | 3 explicit nested result normalization after access time update | objdiff 90.557310% | insns 246/253 | positional diffs 250 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 1 restore independent cached header reads and next-time validator from assembly | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 2 scope interval and next time at scheduling call | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24AddDlTask | 3 preserve scheduling helper result in caller | objdiff 97.552444% | insns 146/143 | positional diffs 140 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 1 restore strict selected and best candidate comparisons from assembly | objdiff 90.103450% | insns 143/145 | positional diffs 92 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 2 materialize selected comparison with ternary | objdiff 90.103450% | insns 143/145 | positional diffs 92 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTaskEx | 3 compare updated sort flag for sentinel each pass | objdiff 90.689650% | insns 144/145 | positional diffs 92 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 1 return occupied task slots instead of empty entries | objdiff 81.113920% | insns 74/79 | positional diffs 36 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 2 move slot advance into for loop increment | objdiff 83.962030% | insns 74/79 | positional diffs 52 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24IterateDlTask | 3 inline combined slot validity condition | objdiff 83.772150% | insns 72/79 | positional diffs 48 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 1 inline original read and ordinary delete validator allowing unassigned ids | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 2 delay done-to-failed translation until iteration exit | objdiff 83.744316% | insns 168/176 | positional diffs 147 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24PurgeOldestDlTask | 3 scope selected task id at read boundary | objdiff 84.312500% | insns 167/176 | positional diffs 86 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 1 use max-count accessor and original inline read and remove control flow | objdiff 94.335526% | insns 149/152 | positional diffs 124 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 2 hold task pointer across read and deletion | objdiff 93.453950% | insns 151/152 | positional diffs 137 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ManageDlTaskListForMenu | 3 store removal result before return | objdiff 94.335526% | insns 149/152 | positional diffs 124 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 1 factor URL parsing result before setter validation | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 2 retain separate parse result local | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlUrl | 3 separate lax check from secure-download URL check | objdiff 100.000000% | insns 109/109 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 1 reuse inline reader at public entry point | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 2 preserve destination pointer in read phase | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24GetDlTask | 3 load task id only after file open | objdiff 99.728264% | insns 92/92 | positional diffs 5 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 1 keep explicit nonlegacy task type cases | objdiff 100.000000% | insns 91/91 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 2 use enum temporary for legacy flag switch | objdiff 98.901100% | insns 90/91 | positional diffs 19 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlFlags | 3 separate legacy task flag result from setter | objdiff 98.901100% | insns 90/91 | positional diffs 19 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 1 materialize content type boolean and reuse original write validator | objdiff 96.541664% | insns 143/144 | positional diffs 103 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 2 order default task stores around content type comparison | objdiff 96.187500% | insns 143/144 | positional diffs 103 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24InitDlTask | 3 express final validation result as sign test | objdiff 96.541664% | insns 143/144 | positional diffs 103 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 1 rebuild admin exemption and nested remove validation | objdiff 98.047620% | insns 107/105 | positional diffs 52 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 2 branch admin exemption positively | objdiff 98.000000% | insns 107/105 | positional diffs 96 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24DeleteDlTask | 3 retain ordinary remove result in caller | objdiff 98.047620% | insns 107/105 | positional diffs 52 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 1 shorten scheduled id lifetime after validation | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 2 retain local task pointer only until timestamp division | objdiff 99.897960% | insns 147/147 | positional diffs 3 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24SetDlInterval | 3 move time division into scheduler helper | objdiff 80.680275% | insns 175/147 | positional diffs 58 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 1 give reload result a separate lifetime after extension | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 2 express close-error preference in ternary | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24ExtendDlTaskList | 3 return close failure before reloaded success | objdiff 99.854010% | insns 137/137 | positional diffs 4 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 1 separate initialized header pointer from cached accessor | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 2 narrow initialized header to setup scope | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iCreateDlTaskList | 3 retain task count as loop bound temporary | objdiff 99.624060% | insns 133/133 | positional diffs 10 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 1 finish seek and read operation before status check | objdiff 100.000000% | insns 100/100 | positional diffs 0 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 2 use explicit read-result normalization | objdiff 94.250000% | insns 101/100 | positional diffs 81 | regressions 0
libs/RevoEX/src/nwc24/NWC24Download | NWC24iLoadDlHeader | 3 scoped header read with separate status local | objdiff 100.000000% | insns 100/100 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 1 isolate the real 12-byte hardware KeySet ABI while preserving all existing header guard sides | objdiff 76.839620% | insns 201/212 | positional diffs 201 | regressions 0
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 2 reconstruct both switch loops with a shared iterator and pane-name release event | BUILD FAILED: ^
# (10184) return value expected
### mwcceppc.exe Compiler:
# 1073: bool LayoutByNW4R::updateInput(input::HKBManager& hkbManager) {
# Error: ^
# (10333) object
# 'textinput::keyboard::cellphonetype::LayoutByNW4R::updateInput(textinput::i
# nput::HKBManager &)' redefined
# Too many errors printed, aborting program
User break, cancelled...
ninja: build stopped: subcommand failed.
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 2 reconstruct both switch loops with a shared iterator and pane-name release event | objdiff 99.245285% | insns 211/212 | positional diffs 108 | regressions 0
src/keyboard/tiCellPhone | updateInput__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFRQ39textinput5input10HKBManager | 3 retain wide character return until selected character-pane search | objdiff 100.000000% | insns 212/212 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 1 reconstruct all key cycling prediction numeric-space and confirmation blocks with typed ConfirmInput | objdiff 94.837240% | insns 682/682 | positional diffs 539 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 2 use inline pane lookup and preserve Japanese mode branch before uppercase fallback | objdiff 96.895900% | insns 681/682 | positional diffs 494 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv | 3 give numeric-pane lookup a reference lifetime instead of retaining pointer | objdiff 96.895900% | insns 681/682 | positional diffs 494 | regressions 0
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 1 unroll texture acquisition and restore target final setLanguage dispatch | objdiff 81.465460% | insns 331/333 | positional diffs 303 | regressions 0
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 2 perform initialization inside the base pane constructor and delay descriptor lifetime | objdiff 90.981980% | insns 341/333 | positional diffs 320 | regressions 0
src/keyboard/tiCellPhone | create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator | 3 retain the allocator result directly through the null path | objdiff 92.228226% | insns 337/333 | positional diffs 315 | regressions 0
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 1 derive event masks, animation dispatch, normal-key search and independent repeat timeout from target blocks | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 2 use signed event switch to retain the target comparison tree | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onTiEvent__Q49textinput8keyboard13cellphonetype12EventHandlerFPQ39textinput3gui13PaneComponentUlPQ49textinput11nw4rmanager14TiEventHandler5Input | 3 leave event structure alignment to its natural padding | objdiff 100.000000% | insns 284/284 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 1 initialize a boolean command value in its owning branch | objdiff 95.825390% | insns 63/63 | positional diffs 6 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 3 initialize a typed active-mode command structure | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 1 initialize a boolean command value in its owning branch | objdiff 96.242860% | insns 70/70 | positional diffs 6 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 3 initialize a typed active-mode command structure | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1 initialize a boolean command value in its owning branch | objdiff 96.000000% | insns 65/65 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2 initialize a one-element boolean array using normal aggregate initialization | objdiff 100.000000% | insns 65/65 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 initialize a typed active-mode command structure | objdiff 100.000000% | insns 65/65 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 4 scope the inactive command alongside the active command to restore stack lifetimes | objdiff 99.936510% | insns 63/63 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 4 scope the inactive command alongside the active command to restore stack lifetimes | objdiff 99.942856% | insns 70/70 | positional diffs 4 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 1 derive signed mode cases and condition order, aggregate active flag and restore virtual pane initialization | objdiff 90.062805% | insns 216/207 | positional diffs 189 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 2 use the passed mode as the remapped key-set index | objdiff 90.062805% | insns 216/207 | positional diffs 189 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode | 3 scope and type the inactive command value | objdiff 90.043480% | insns 216/207 | positional diffs 189 | regressions 0
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 1 correct the cell-phone-only space-data declarations to the pointer loads shown by target asm | objdiff 100.000000% | insns 52/52 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 2 select the space key label before issuing one SetString call | objdiff 82.884610% | insns 47/52 | positional diffs 21 | regressions 0
src/keyboard/tiCellPhone | changeSpaceKeyTop__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFPCQ49textinput8keyboard13cellphonetype18PaneNameToCharCode | 3 return early for Japanese input before acquiring text pane | objdiff 100.000000% | insns 52/52 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 1 re-derive Chinese and Korean prediction-button dispatch, key-set reload after visibility call and virtual FIFO initialization | objdiff 96.468285% | insns 544/536 | positional diffs 449 | regressions 0
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 2 use a narrow index for the four toggle panes | objdiff 94.992540% | insns 545/536 | positional diffs 443 | regressions 0
src/keyboard/tiCellPhone | init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv | 3 retain a typed text box and signed loop index | objdiff 96.468285% | insns 544/536 | positional diffs 449 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 1 give the current control-key descriptor a scoped reference | objdiff 97.850464% | insns 107/107 | positional diffs 9 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 2 use a conventional for loop and break for control-key search | objdiff 96.766360% | insns 107/107 | positional diffs 33 | regressions 0
src/keyboard/tiCellPhone | onKey__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFUlPv | 3 inline a value-returning control-key lookup | objdiff 100.000000% | insns 107/107 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 restore the fourth pane-visibility call missing from the target control flow | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 compute the shared hidden-state value once before updating panes | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
src/keyboard/tiCellPhone | doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 return for disabled numeric mode before updating pane visibility | objdiff 93.923080% | insns 173/169 | positional diffs 168 | regressions 0
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 retain typed pane-name pointers for the two sign-window controls | objdiff 71.100000% | insns 72/70 | positional diffs 70 | regressions 0
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 finish the disabled sign-window branch with an early return | objdiff 87.071430% | insns 70/70 | positional diffs 21 | regressions 0
src/keyboard/tiCellPhone | setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 select the active regional sign pane before dispatching visibility | objdiff 73.842860% | insns 63/70 | positional diffs 43 | regressions 0
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 1 retain the dot key pane name across numeric-mode dispatch | objdiff 95.000000% | insns 36/35 | positional diffs 14 | regressions 0
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 2 dispatch dot-pane visibility through the layout base pointer | objdiff 87.971430% | insns 39/35 | positional diffs 20 | regressions 0
src/keyboard/tiCellPhone | doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb | 3 bind the numeric-pane descriptor at the point of use | objdiff 95.000000% | insns 36/35 | positional diffs 14 | regressions 0
src/keyboard/tiCellPhone | onActive__Q49textinput8keyboard13cellphonetype4BaseFv | 5 type both activation command payloads as boolean structures to preserve stack order | objdiff 100.000000% | insns 63/63 | positional diffs 0 | regressions 0
src/keyboard/tiCellPhone | changeInputMode__Q49textinput8keyboard13cellphonetype4BaseFQ59textinput8keyboard13cellphonetype4Base9InputMode | 5 type both activation command payloads as boolean structures to preserve stack order | objdiff 100.000000% | insns 70/70 | positional diffs 0 | regressions 0

View File

@@ -0,0 +1,123 @@
# Matching result
Final full gate: all three units, fresh 43U rebuild; pools identical; zero regressions, forbidden additions and readability warnings. DOL SHA1: `26116613f624061ba99c8d1a299aaa6efa85670d`.
| Unit | Instruction-exact functions | Fuzzy | Exact code bytes | Exact data bytes |
| --- | --- | --- | --- | --- |
| libs/RVL_SDK/src/fa/pf_dir | 30/38 -> 34/38 | 67.96859% -> 98.87879% | 8024 -> 11428 / 18976 | 0 -> 8 / 40 |
| libs/RevoEX/src/nwc24/NWC24Download | 13/30 -> 16/30 | 83.35883% -> 95.99360% | 2020 -> 3220 / 12496 | 80 -> 80 / 80 |
| src/keyboard/tiCellPhone | 72/86 -> 79/86 | 86.62876% -> 97.73765% | 7488 -> 10900 / 19028 | 4 -> 4 / 3860 |
## Remaining functions
Instruction counts below are source/target. Every initially nonexact function has at least three distinct logged source attempts; failed compilations are additional evidence, not counted toward the minimum. Explanations identify the surviving diff area; they do not establish a compiler tie-break.
### libs/RVL_SDK/src/fa/pf_dir
- `PFDIR_GetSDD`: 99.710144%; 69/69 instructions; load scheduling.
- `PFDIR_p_mkdir`: 96.887900%; 571/562 instructions; allocation and directory-write block scheduling.
- `PFDIR_p_rename`: 97.376000%; 626/625 instructions; retained path and directory temporaries.
- `PFDIR_p_move`: 96.973060%; 636/631 instructions; directory traversal and write block scheduling.
### libs/RevoEX/src/nwc24/NWC24Download
- `NWC24InitDlTask`: 96.541664%; 143/144 instructions; validation and default-field store scheduling.
- `NWC24SetDlInterval`: 99.897960%; 147/147 instructions; temporary register allocation.
- `NWC24IterateDlTask`: 83.962030%; 74/79 instructions; loop termination and callback-result scheduling.
- `NWC24IterateDlTaskEx`: 90.689650%; 144/145 instructions; inlined read-loop and callback-result scheduling.
- `NWC24UpdateDlTask`: 90.992096%; 247/253 instructions; retry-validation and timestamp block scheduling.
- `NWC24DeleteDlTask`: 98.047620%; 107/105 instructions; validation and deletion block scheduling.
- `NWC24AddDlTask`: 97.552444%; 146/143 instructions; validation and slot-search block scheduling.
- `NWC24GetDlTask`: 99.728264%; 92/92 instructions; parameter register allocation.
- `NWC24PurgeOldestDlTask`: 84.312500%; 167/176 instructions; slot-scan and inlined deletion blocks.
- `NWC24ManageDlTaskListForMenu`: 94.335526%; 149/152 instructions; menu-limit and task-deletion blocks.
- `NWC24ExtendDlTaskList`: 99.854010%; 137/137 instructions; reload-result register allocation.
- `NWC24iCheckDlHeaderConsistency`: 98.773580%; 212/212 instructions; prologue move scheduling.
- `NWC24iCreateDlTaskList`: 99.624060%; 133/133 instructions; header-pointer register allocation.
- `AddTaskInternal`: 93.578550%; 397/401 instructions; slot search and timestamp-update blocks.
### src/keyboard/tiCellPhone
- `onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv`: 96.895900%; 681/682 instructions; key lookup, command-payload and register scheduling.
- `create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator`: 92.228226%; 337/333 instructions; descriptor address setup and constructor scheduling.
- `init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv`: 96.468285%; 544/536 instructions; pane address setup, key-set reload and virtual-call scheduling.
- `changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode`: 90.062805%; 216/207 instructions; mode-branch and pane-address scheduling.
- `doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 93.923080%; 173/169 instructions; pane-address and shared visibility-value scheduling.
- `doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 95.000000%; 36/35 instructions; extra pane-address calculation.
- `setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb`: 87.071430%; 70/70 instructions; regional pane-address setup and scheduling.
## Validation
```text
full build: ok
main.dol sha1: 26116613f624061ba99c8d1a299aaa6efa85670d
[libs/RVL_SDK/src/fa/pf_dir] pool: IDENTICAL
[libs/RVL_SDK/src/fa/pf_dir] objdiff: code 11428/18976 data 8/40 functions 34/38 fuzzy 98.8788 linked code 0
[libs/RVL_SDK/src/fa/pf_dir] instruction-exact functions: 34/38
[libs/RVL_SDK/src/fa/pf_dir] section .sdata size 32 match 92.85714
[libs/RVL_SDK/src/fa/pf_dir] section .sdata2 size 8 match 100.0
[libs/RVL_SDK/src/fa/pf_dir] section .text size 18976 match 98.87879
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_GetSDD 99.710144
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_mkdir 96.8879
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_rename 97.376
[libs/RVL_SDK/src/fa/pf_dir] below 100: PFDIR_p_move 96.97306
[libs/RVL_SDK/src/fa/pf_dir] baseline: code 8024/18976 data None functions 30 fuzzy 67.9686
[libs/RevoEX/src/nwc24/NWC24Download] pool: IDENTICAL
[libs/RevoEX/src/nwc24/NWC24Download] objdiff: code 3220/12496 data 80/80 functions 16/30 fuzzy 95.9936 linked code 0
[libs/RevoEX/src/nwc24/NWC24Download] instruction-exact functions: 16/30
[libs/RevoEX/src/nwc24/NWC24Download] section .data size 56 match 100.0
[libs/RevoEX/src/nwc24/NWC24Download] section .sbss size 8 match 100.0
[libs/RevoEX/src/nwc24/NWC24Download] section .sdata size 16 match 100.0
[libs/RevoEX/src/nwc24/NWC24Download] section .text size 12496 match 95.9936
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24InitDlTask 96.541664
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24SetDlInterval 99.89796
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTask 83.96203
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24IterateDlTaskEx 90.68965
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24UpdateDlTask 90.992096
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24DeleteDlTask 98.04762
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24AddDlTask 97.552444
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24GetDlTask 99.728264
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24PurgeOldestDlTask 84.3125
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ManageDlTaskListForMenu 94.335526
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24ExtendDlTaskList 99.85401
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCheckDlHeaderConsistency 98.77358
[libs/RevoEX/src/nwc24/NWC24Download] below 100: NWC24iCreateDlTaskList 99.62406
[libs/RevoEX/src/nwc24/NWC24Download] below 100: AddTaskInternal 93.57855
[libs/RevoEX/src/nwc24/NWC24Download] baseline: code 2020/12496 data 80 functions 13 fuzzy 83.3588
[src/keyboard/tiCellPhone] pool: IDENTICAL
[src/keyboard/tiCellPhone] objdiff: code 10900/19028 data 4/3860 functions 79/86 fuzzy 97.7377 linked code 0
[src/keyboard/tiCellPhone] instruction-exact functions: 79/86
[src/keyboard/tiCellPhone] section .ctors size 4 match 100.0
[src/keyboard/tiCellPhone] section .data size 2416 match 56.210873
[src/keyboard/tiCellPhone] section .rodata size 1320 match 99.69697
[src/keyboard/tiCellPhone] section .sdata size 112 match None
[src/keyboard/tiCellPhone] section .sdata2 size 8 match 55.555557
[src/keyboard/tiCellPhone] section .text size 19028 match 97.73765
[src/keyboard/tiCellPhone] below 100: onKey__Q49textinput8keyboard13cellphonetype4BaseFUlPv 96.8959
[src/keyboard/tiCellPhone] below 100: create__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFP12MEMAllocator 92.228226
[src/keyboard/tiCellPhone] below 100: init__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFv 96.468285
[src/keyboard/tiCellPhone] below 100: changeInputMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFQ59textinput8keyboard13cellphonetype4Base9InputMode 90.062805
[src/keyboard/tiCellPhone] below 100: doNumericMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 93.92308
[src/keyboard/tiCellPhone] below 100: doNumericWithDotMode__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 95.0
[src/keyboard/tiCellPhone] below 100: setSignWindowButton__Q49textinput8keyboard13cellphonetype12LayoutByNW4RFb 87.07143
[src/keyboard/tiCellPhone] baseline: code 7488/19028 data 4 functions 72 fuzzy 86.6288
regressions vs baseline: 0
global matched_code_percent: 83.03911 -> 83.30673
global fuzzy_match_percent: 96.63766 -> 96.95678
global complete_code_percent: 58.19218 -> 58.19218
global matched_data_percent: 89.88587 -> 89.88631
forbidden patterns added (net, per file): 0
readability warnings (net, per file; must be 0 in the final result): 0
GATE PASS
```
## Files and commits
- `libs/RVL_SDK/src/fa/pf_dir.c`: `26c329e5`, `f7cce6f6`.
- `libs/RevoEX/src/nwc24/NWC24Download.c`: `59a7118e`.
- `src/keyboard/tiCellPhone.cpp`, `include/keyboard/tiCellPhone.h`, `include/keyboard/tiCpData.h`, `include/keyboard/tiHKBManager.h`: `965687ab`.
- `tools/decomp-assist/sol-high-attempts.md`: source attempts and their measurements.
## Limits
25 functions and partial pf_dir/tiCellPhone data remain unmatched. No unit was switched to Matching. Linking was left for the later phase. The residual data differences were not proven to be only linker-deduplicated weak data; the matching-only result does not claim complete units.