// // EditorUI::recreateButtonTabs from 0x10063cb90 to 0x10063cd6d (477 bytes) // // 3 xrefs: // > EditorPauseLayer::onResume @ 0x10027e2c5 // > EditorPauseLayer::keyBackClicked @ 0x10027f5f5 // > sub_10027F600 @ 0x10027f67e // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 12:34:41 +0000 // char __fastcall EditorUI::recreateButtonTabs(__int64 a1) { __int64 v2; // rax unsigned int IntGameVariable; // r14d __int64 v4; // rax unsigned int v5; // r15d unsigned int v6; // r12d __int64 v7; // rax __int64 v8; // rax unsigned __int8 GameVariable; // r12 __int64 v10; // r13 __int64 v11; // rax char result; // al __int64 v13; // rdi __int64 v14; // rdi _DWORD *v15; // rdi _DWORD *v16; // rdi __int64 v17; // rdi _DWORD *v18; // rdi *(_BYTE *)(a1 + 1591) = 0; v2 = GameManager::sharedState(); IntGameVariable = GameManager::getIntGameVariable(v2, "0049"); v4 = GameManager::sharedState(); v5 = GameManager::getIntGameVariable(v4, "0050"); if ( (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1192)) ) { v6 = 0; do { v7 = sub_1007FEFE0(*(_QWORD *)(a1 + 1192), v6); EditButtonBar::reloadItems(v7, IntGameVariable, v5); ++v6; } while ( v6 < (unsigned int)sub_1007FEF90(*(_QWORD *)(a1 + 1192)) ); } v8 = GameManager::sharedState(); GameVariable = GameManager::getGameVariable(v8, "0191"); v10 = *(_QWORD *)(a1 + 1592); if ( v10 ) { v11 = GameManager::sharedState(); result = *(_BYTE *)(a1 + 1604) != (unsigned __int8)GameManager::getGameVariable(v11, "0247"); } else { result = 0; } if ( ((v10 != 0) ^ GameVariable) != 1 || result ) { v14 = *(_QWORD *)(a1 + 1592); if ( v14 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v14 + 520LL))(v14); *(_QWORD *)(a1 + 1592) = 0; } v15 = *(_DWORD **)(a1 + 1608); if ( v15 ) cocos2d::CCObject::release(v15); *(_QWORD *)(a1 + 1608) = 0; v16 = *(_DWORD **)(a1 + 1616); if ( v16 ) cocos2d::CCObject::release(v16); *(_OWORD *)(a1 + 1616) = 0; v17 = *(_QWORD *)(a1 + 832); if ( v17 ) { (*(void (__fastcall **)(__int64))(*(_QWORD *)v17 + 520LL))(v17); *(_QWORD *)(a1 + 832) = 0; } v18 = *(_DWORD **)(a1 + 816); if ( v18 ) cocos2d::CCObject::release(v18); *(_QWORD *)(a1 + 816) = 0; EditorUI::createMoveMenu(a1); EditorUI::updateEditMenu(a1); return EditorUI::updateButtons(a1); } else { v13 = *(_QWORD *)(a1 + 832); if ( v13 ) return EditButtonBar::reloadItems(v13, IntGameVariable, v5); } return result; }