// // NumberInputLayer::inputNumber from 0x1004931c0 to 0x1004932c0 (256 bytes) // // 1 xrefs: // > NumberInputLayer::onNumber @ 0x100492ede // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // void __fastcall NumberInputLayer::inputNumber(NumberInputLayer *a1, int a2) { unsigned int sizex2; // eax cocos2d::CCString *v4; // rax const char *CString; // rsi unsigned int v6; // eax std::size_t size; // rax bool v8; // r14 ButtonSprite *v9; // rax cocos2d::CCLabelBMFont *m_inputLabel; // rdi std::array *longStorage; // rbx char v12; // [rsp+0h] [rbp-10h] sizex2 = a1->m_inputString.m_data.m_short.sizex2; if ( (sizex2 & 1) != 0 ) { if ( a1->m_inputString.m_data.m_long.size >= a1->m_maximum ) return; } else if ( sizex2 >> 1 >= (unsigned __int64)a1->m_maximum ) { return; } v4 = (cocos2d::CCString *)sub_1007AB580("%i", v12); CString = cocos2d::CCString::getCString(v4); std::string::append((std::string *)&a1->m_inputString, CString); v6 = a1->m_inputString.m_data.m_short.sizex2; if ( (v6 & 1) != 0 ) { size = a1->m_inputString.m_data.m_long.size; if ( a1->m_minimum <= (int)size ) goto LABEL_7; LABEL_9: v8 = 0; goto LABEL_10; } LODWORD(size) = v6 >> 1; if ( a1->m_minimum > (int)size ) goto LABEL_9; LABEL_7: v8 = a1->m_maximum >= (int)size; LABEL_10: v9 = (ButtonSprite *)((__int64 (__fastcall *)(CCMenuItemSpriteExtra *))a1->m_okButton->getNormalImage)(a1->m_okButton); ButtonSprite::setColor(v9, (cocos2d::ccColor3B)(v8 ? -1 : 0xFFA6A6A6)); ((void (__fastcall *)(CCMenuItemSpriteExtra *, bool))a1->m_okButton->setEnabled)(a1->m_okButton, v8); m_inputLabel = a1->m_inputLabel; if ( (a1->m_inputString.m_data.m_short.sizex2 & 1) != 0 ) longStorage = (std::array *)a1->m_inputString.m_data.m_long.longStorage; else longStorage = &a1->m_inputString.m_data.m_short.shortStorage; ((void (__fastcall *)(cocos2d::CCLabelBMFont *, std::array *))m_inputLabel->setString)( m_inputLabel, longStorage); }
GD Web Decomp Icon

GD Web Decomp

Raw Source