// // SetupAreaMoveTriggerPopup::updateEnterTargetIDState from 0x100036058 to 0x1000361dc (388 bytes) // // 2 xrefs: // > SetupAreaMoveTriggerPopup::onSpecialTarget @ 0x100035e6c // > SetupAreaMoveTriggerPopup::updateDefaultTriggerValues @ 0x10003601c // // 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 SetupAreaMoveTriggerPopup::updateEnterTargetIDState(SetupAreaMoveTriggerPopup *a1) { int v2; // w8 float v3; // s0 __int64 v4; // x21 cocos2d::CCArray *m_targetButtons; // x8 cocos2d::ccArray *data; // x9 __int64 num; // x8 CCMenuItemToggler **arr; // x22 unsigned __int64 v9; // x23 CCMenuItemToggler *v10; // x20 bool v11; // w1 cocos2d::CCObject *v12; // x0 cocos2d::CCObject *v13; // x20 void *v14[2]; // [xsp+0h] [xbp-80h] BYREF __int64 v15; // [xsp+10h] [xbp-70h] __int128 v16; // [xsp+18h] [xbp-68h] BYREF __int64 v17; // [xsp+28h] [xbp-58h] void *__p[2]; // [xsp+30h] [xbp-50h] BYREF __int64 v19; // [xsp+40h] [xbp-40h] v2 = (int)((float (__fastcall *)(SetupAreaMoveTriggerPopup *, __int64))a1->getValue)(a1, 538); if ( v2 ) v3 = (float)v2; else v3 = ((float (__fastcall *)(SetupAreaMoveTriggerPopup *, __int64))a1->getValue)(a1, 71); v4 = (unsigned int)(int)v3; m_targetButtons = a1->m_targetButtons; if ( m_targetButtons ) { data = m_targetButtons->data; num = data->num; if ( (_DWORD)num ) { arr = (CCMenuItemToggler **)data->arr; v9 = (unsigned __int64)&arr[num - 1]; do { v10 = *arr; if ( !*arr ) break; v11 = ((unsigned int (__fastcall *)(CCMenuItemToggler *))v10->getTag)(*arr) == (_DWORD)v4; CCMenuItemToggler::toggle(v10, v11); ++arr; } while ( (unsigned __int64)arr <= v9 ); } } v12 = cocos2d::CCDictionary::objectForKey(a1->m_inputNodes, 71); if ( v12 ) { v13 = v12; a1->m_disableTextDelegate = 1; sub_100009900(__p, ""); if ( (v4 & 0x80000000) != 0 ) sub_100033FC0(v4, &v16); else GameToolbox::intToString(&v16, v4); if ( SHIBYTE(v19) < 0 ) operator delete(__p[0]); *(_OWORD *)__p = v16; v19 = v17; if ( SHIBYTE(v17) < 0 ) { sub_1000097D0(v14, __p[0], (unsigned __int64)__p[1]); } else { *(_OWORD *)v14 = *(_OWORD *)__p; v15 = v19; } CCTextInputNode::setString(v13, v14); if ( SHIBYTE(v15) < 0 ) operator delete(v14[0]); a1->m_disableTextDelegate = 0; if ( SHIBYTE(v19) < 0 ) operator delete(__p[0]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source