// // EditorUI::updateDeleteButtons from 0x6f6188 to 0x6f658e (1030 bytes) // // 2 xrefs: // > EditorUI::updateDeleteMenu @ 0x481c88 // > EditorUI::onUpdateDeleteFilter @ 0x481f98 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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 11:57:39 +0000 // int __fastcall EditorUI::updateDeleteButtons(cocos2d::CCArray **this) { GameManager *v2; // r0 int IntGameVariable; // r7 char *v4; // r0 const char *v5; // r1 char *v6; // r0 const char *v7; // r1 char *v8; // r0 const char *v9; // r1 char *v10; // r0 const char *v11; // r1 char *updated; // r0 GameManager *v13; // r0 ObjectToolbox *v14; // r6 ObjectToolbox *v15; // r0 char *v16; // r8 size_t v17; // r0 cocos2d::CCSpriteFrameCache *v18; // r0 int v19; // r8 void (__fastcall *v20)(int, int); // r9 cocos2d::CCSpriteFrameCache *v21; // r0 char *v22; // r1 GameObject *v23; // r0 ObjectToolbox *v24; // r0 char *v25; // r0 char *v26; // r8 size_t v27; // r0 cocos2d::CCSpriteFrameCache *v28; // r0 int v29; // r0 float *v30; // r0 float v31; // s14 float v32; // s13 float v33; // s15 int v34; // r6 void (__fastcall *v35)(int, int); // r8 int v36; // r1 float *v37; // r0 float v38; // s14 float v39; // s13 float v40; // s15 int v41; // r6 void (__fastcall *v42)(int, int); // r8 int v43; // r1 int v44; // r1 __int16 *v45; // r3 _DWORD *v46; // r0 int v47; // r1 __int16 *v48; // r3 _DWORD *v49; // r0 ObjectToolbox *v50; // r0 char *v51; // r0 char *v52; // r8 size_t v53; // r0 cocos2d::CCSpriteFrameCache *v54; // r0 int v55; // r8 void (__fastcall *v56)(int, int); // r9 cocos2d::CCSpriteFrameCache *v57; // r0 char *v58; // r1 int v59; // r0 int v60; // r1 __int16 *v61; // r3 _DWORD *v62; // r0 int v64; // [sp+4h] [bp-18h] char v65[4]; // [sp+8h] [bp-14h] BYREF int v66; // [sp+Ch] [bp-10h] char *v67; // [sp+10h] [bp-Ch] v2 = (GameManager *)GameManager::sharedState((GameManager *)this); IntGameVariable = GameManager::getIntGameVariable(v2, "0005"); v4 = (char *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 211) + 536))(*(this + 211)); if ( IntGameVariable ) v5 = "GJ_button_04.png"; else v5 = "GJ_button_02.png"; ButtonSprite::updateBGImage(v4, v5); v6 = (char *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 212) + 536))(*(this + 212)); if ( IntGameVariable == 2 ) v7 = "GJ_button_02.png"; else v7 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v6, v7); v8 = (char *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 213) + 536))(*(this + 213)); if ( IntGameVariable == 1 ) v9 = "GJ_button_02.png"; else v9 = "GJ_button_04.png"; ButtonSprite::updateBGImage(v8, v9); v10 = (char *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 214) + 536))(*(this + 214)); if ( IntGameVariable == 3 ) v11 = "GJ_button_02.png"; else v11 = "GJ_button_04.png"; updated = ButtonSprite::updateBGImage(v10, v11); if ( IntGameVariable == 3 ) { v13 = (GameManager *)GameManager::sharedState((GameManager *)updated); v14 = (ObjectToolbox *)GameManager::getIntGameVariable(v13, "0006"); v15 = (ObjectToolbox *)ObjectToolbox::sharedState(v14); *(_DWORD *)v65 = 0; v66 = 0; v67 = nullptr; v16 = ObjectToolbox::intKeyToFrame(v15, (int)v14); v17 = strlen(v16); v18 = (cocos2d::CCSpriteFrameCache *)std::string::__init((int *)v65, v16, v17); v19 = (int)*(this + 208); v20 = *(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 580); v21 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v18); if ( (v65[0] & 1) != 0 ) v22 = v67; else v22 = &v65[1]; LABEL_21: v29 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v21, v22); v20(v19, v29); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 208) + 172))(*(this + 208), 1); std::string::~string((int)v65); goto LABEL_22; } v23 = *(this + 249); if ( v23 && !GameObject::isSpecialObject(v23) ) { v24 = (ObjectToolbox *)ObjectToolbox::sharedState(nullptr); v25 = ObjectToolbox::intKeyToFrame(v24, *((_DWORD *)*(this + 249) + 223)); *(_DWORD *)v65 = 0; v66 = 0; v67 = nullptr; v26 = v25; v27 = strlen(v25); v28 = (cocos2d::CCSpriteFrameCache *)std::string::__init((int *)v65, v26, v27); v19 = (int)*(this + 208); v20 = *(void (__fastcall **)(int, int))(*(_DWORD *)v19 + 580); v21 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v28); if ( (v65[0] & 1) != 0 ) v22 = v67; else v22 = &v65[1]; goto LABEL_21; } (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 208) + 172))(*(this + 208), 0); LABEL_22: v30 = (float *)*(this + 208); v31 = v30[86]; v32 = v30[87]; if ( v31 >= v32 ) v33 = 20.0 / v31; else v33 = 20.0 / v32; (*(void (__fastcall **)(float *, float))(*(_DWORD *)v30 + 80))(v30, COERCE_FLOAT(LODWORD(v33))); v34 = (int)*(this + 208); v35 = *(void (__fastcall **)(int, int))(*(_DWORD *)v34 + 80); if ( (*(float (__fastcall **)(int))(*(_DWORD *)v34 + 84))(v34) >= 1.0 ) { v36 = 1.0; } else { v34 = (int)*(this + 208); v36 = (*(int (__fastcall **)(int))(*(_DWORD *)v34 + 84))(v34); } v35(v34, v36); if ( !*(this + 249) || cocos2d::CCArray::count(*(this + 167)) || GameObject::isSpecialObject(*(this + 249)) ) { (*(void (__fastcall **)(_DWORD, _DWORD))(*(_DWORD *)*(this + 207) + 172))(*(this + 207), 0); } else { v50 = (ObjectToolbox *)ObjectToolbox::sharedState(nullptr); v51 = ObjectToolbox::intKeyToFrame(v50, *((_DWORD *)*(this + 249) + 223)); *(_DWORD *)v65 = 0; v66 = 0; v67 = nullptr; v52 = v51; v53 = strlen(v51); v54 = (cocos2d::CCSpriteFrameCache *)std::string::__init((int *)v65, v52, v53); v55 = (int)*(this + 207); v56 = *(void (__fastcall **)(int, int))(*(_DWORD *)v55 + 580); v57 = (cocos2d::CCSpriteFrameCache *)cocos2d::CCSpriteFrameCache::sharedSpriteFrameCache(v54); if ( (v65[0] & 1) != 0 ) v58 = v67; else v58 = &v65[1]; v59 = cocos2d::CCSpriteFrameCache::spriteFrameByName(v57, v58); v56(v55, v59); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 207) + 172))(*(this + 207), 1); std::string::~string((int)v65); } v37 = (float *)*(this + 207); v38 = v37[86]; v39 = v37[87]; if ( v38 >= v39 ) v40 = 15.0 / v38; else v40 = 15.0 / v39; (*(void (__fastcall **)(float *, float))(*(_DWORD *)v37 + 80))(v37, COERCE_FLOAT(LODWORD(v40))); v41 = (int)*(this + 207); v42 = *(void (__fastcall **)(int, int))(*(_DWORD *)v41 + 80); if ( (*(float (__fastcall **)(int))(*(_DWORD *)v41 + 84))(v41) >= 1.0 ) { v43 = 1065353216; } else { v41 = (int)*(this + 207); v43 = (*(int (__fastcall **)(int))(*(_DWORD *)v41 + 84))(v41); } v42(v41, v43); if ( *(this + 249) || cocos2d::CCArray::count(*(this + 167)) ) { v44 = 1; v45 = &word_BF02F4; } else { v44 = 0; v45 = &word_BF02F7; } LOWORD(v64) = *v45; BYTE2(v64) = *((_BYTE *)v45 + 2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 209) + 528))(*(this + 209), v44); v46 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 209) + 536))(*(this + 209)); ButtonSprite::setColor(v46, v64); if ( !*(this + 249) || cocos2d::CCArray::count(*(this + 167)) ) { v47 = 0; v48 = &word_BF02F7; } else { v47 = 1; v48 = &word_BF02F4; } LOWORD(v64) = *v48; BYTE2(v64) = *((_BYTE *)v48 + 2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 210) + 528))(*(this + 210), v47); v49 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 210) + 536))(*(this + 210)); ButtonSprite::setColor(v49, v64); if ( IntGameVariable == 3 || *(this + 249) && !cocos2d::CCArray::count(*(this + 167)) ) { v60 = 1; v61 = &word_BF02F4; } else { v60 = 0; v61 = &word_BF02F7; } LOWORD(v64) = *v61; BYTE2(v64) = *((_BYTE *)v61 + 2); (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 214) + 528))(*(this + 214), v60); v62 = (_DWORD *)(*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 214) + 536))(*(this + 214)); return ButtonSprite::setColor(v62, v64); }
GD Web Decomp Icon

GD Web Decomp

Raw Source