// // EditorUI::spriteFromObjectString from 0x6f4f14 to 0x6f53dc (1224 bytes) // // 3 xrefs: // > KeyframeGameObject::updateShadowObjects @ 0x4ec6aa // > GJSmartBlockPreview::addPreview @ 0x66f5f0 // > EditorUI::menuItemFromObjectString @ 0x6f605e // // 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:38 +0000 // const cocos2d::CCPoint *__fastcall EditorUI::spriteFromObjectString( int *a1, unsigned __int8 *a2, int a3, int a4, int a5, cocos2d::CCArray *a6, cocos2d::CCArray *a7, int a8) { const cocos2d::CCPoint *v11; // r7 cocos2d::CCArray *ObjectsFromString; // r0 int v13; // r9 cocos2d::CCArray *v14; // r5 unsigned int i; // r4 float v16; // s16 unsigned int v17; // r10 float v18; // s19 float v19; // s18 float v20; // s17 GameObject *Object; // r0 int v22; // r4 void (__fastcall *v23)(int, char *); // r9 int v24; // r0 int ObjectZOrder; // r9 int ObjectZLayer; // r0 _DWORD *v27; // r2 int v28; // r0 void (__fastcall *v29)(int, char *); // r9 const cocos2d::CCPoint *v30; // r0 cocos2d::CCRect *v31; // r4 float v32; // s20 float v33; // s21 float v34; // s22 float v35; // r0 float v36; // s15 unsigned int v37; // r8 void (__fastcall *v38)(const cocos2d::CCPoint *, char *); // r4 unsigned __int8 *v39; // r0 unsigned __int8 *v40; // r4 void (__fastcall *v41)(unsigned __int8 *, char *); // r9 int v43; // r6 int v44; // r11 ColorAction *ColorAction; // r0 void (__fastcall *v46)(int, char *); // r3 char v47; // r1 char v48; // lr GJSpriteColor *SecondaryColorMode; // r0 ColorAction *v50; // r0 void (__fastcall *v51)(int, char *); // r3 char v52; // r1 char v53; // lr int v54; // r0 int v55; // r9 int v56; // r0 int v57; // r2 int v58; // r9 int v59; // r0 int v60; // r0 int v61; // r0 int v62; // r0 void (__fastcall *v63)(int, int); // [sp+4h] [bp-40h] void (__fastcall *v64)(int, int); // [sp+4h] [bp-40h] void (__fastcall *v65)(int, int); // [sp+4h] [bp-40h] void (__fastcall *v66)(int, int); // [sp+4h] [bp-40h] int v67; // [sp+Ch] [bp-38h] int v68; // [sp+Ch] [bp-38h] int v69; // [sp+Ch] [bp-38h] int v70; // [sp+Ch] [bp-38h] GJSpriteColor *MainColorMode; // [sp+14h] [bp-30h] int v72; // [sp+14h] [bp-30h] int v73; // [sp+14h] [bp-30h] _BYTE v74[8]; // [sp+1Ch] [bp-28h] BYREF _DWORD v75[2]; // [sp+24h] [bp-20h] BYREF _DWORD v76[2]; // [sp+2Ch] [bp-18h] BYREF char v77; // [sp+34h] [bp-10h] BYREF char v78; // [sp+35h] [bp-Fh] char v79; // [sp+36h] [bp-Eh] v11 = (const cocos2d::CCPoint *)cocos2d::CCSprite::create((cocos2d::CCSprite *)a1); ObjectsFromString = LevelEditorLayer::createObjectsFromString(a1[236], a2, 1, 1); v13 = *(_DWORD *)(a1[236] + 2084); v14 = ObjectsFromString; if ( a4 && a7 ) { for ( i = 0; i < cocos2d::CCArray::count(v14) && i < cocos2d::CCArray::count(a7); ++i ) { v43 = cocos2d::CCArray::objectAtIndex(a7, i); v44 = cocos2d::CCArray::objectAtIndex(v14, i); MainColorMode = GameObject::getMainColorMode((GameObject *)v44); if ( GJEffectManager::colorExists(*(GJEffectManager **)(v13 + 264), (int)MainColorMode) ) { ColorAction = GJEffectManager::getColorAction(*(GJEffectManager **)(v13 + 264), (int)MainColorMode); v46 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v44 + 792); v47 = *((_BYTE *)ColorAction + 70); v48 = *((_BYTE *)ColorAction + 68); v72 = (int)ColorAction; v78 = *((_BYTE *)ColorAction + 69); v79 = v47; v77 = v48; v46(v44, &v77); *(_DWORD *)(*(_DWORD *)(v44 + 960) + 8) = *(_DWORD *)(v72 + 92); } if ( *(_DWORD *)(v43 + 756) ) { SecondaryColorMode = GameObject::getSecondaryColorMode((GameObject *)v44); v50 = GJEffectManager::getColorAction(*(GJEffectManager **)(v13 + 264), (int)SecondaryColorMode); v51 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v44 + 796); v52 = *((_BYTE *)v50 + 70); v53 = *((_BYTE *)v50 + 68); v73 = (int)v50; v78 = *((_BYTE *)v50 + 69); v79 = v52; v77 = v53; v51(v44, &v77); *(_DWORD *)(*(_DWORD *)(v44 + 964) + 8) = *(_DWORD *)(v73 + 92); } (*(void (__fastcall **)(int, int))(*(_DWORD *)v44 + 456))(v44, 255); if ( a8 ) *(_BYTE *)(v44 + 1006) = v43 == a8; } } cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v74, 1000.0, 1000.0); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v77, (const cocos2d::CCPoint *)v74); EditorUI::repositionObjectsToCenter((cocos2d::CCArray *)a1, v14, (int)&v77); EditorUI::deleteSmartBlocksFromObjects((GJBaseGameLayer **)a1, v14); EditorUI::deleteTypeFromObjects((GJBaseGameLayer **)a1, 2065, v14); if ( a5 > 0 ) { while ( cocos2d::CCArray::count(v14) > (unsigned int)a5 ) { Object = (GameObject *)cocos2d::CCArray::lastObject(v14); LevelEditorLayer::removeObject(a1[236], Object, 1); cocos2d::CCArray::removeLastObject(v14, 1); } } v16 = 0.0; v17 = 0; v18 = 0.0; v75[0] = 1; v75[1] = 771; v19 = 0.0; v76[0] = 770; v76[1] = 1; v20 = 0.0; while ( v17 < cocos2d::CCArray::count(v14) ) { v22 = cocos2d::CCArray::objectAtIndex(v14, v17); LevelEditorLayer::removeObject(a1[236], (GameObject *)v22, 1); v23 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v22 + 92); v24 = (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 96))(v22); cocos2d::CCPoint::operator-(&v77, v24, v74); v23(v22, &v77); ObjectZOrder = GameObject::getObjectZOrder((GameObject *)v22); ObjectZLayer = GameObject::getObjectZLayer((GameObject *)v22); (*(void (__fastcall **)(const cocos2d::CCPoint *, int, int))(*(_DWORD *)v11 + 232))( v11, v22, ObjectZOrder + 10000 * ObjectZLayer); if ( a6 ) cocos2d::CCArray::addObject(a6, (cocos2d::CCObject *)v22); GameObject::updateBlendMode((GJSpriteColor **)v22); if ( *(_BYTE *)(v22 + 752) ) v27 = v76; else v27 = v75; (*(void (__fastcall **)(int, _DWORD, _DWORD))(*(_DWORD *)v22 + 540))(v22, *v27, v27[1]); v28 = *(_DWORD *)(v22 + 756); if ( v28 && !*(_BYTE *)(v22 + 552) ) { (*(void (**)(void))(*(_DWORD *)v28 + 540))(); if ( *(unsigned __int8 *)(v22 + 752) == *(unsigned __int8 *)(v22 + 753) ) { GameObject::addColorSpriteToSelf((GameObject *)v22); } else { v54 = GameObject::getObjectZLayer((GameObject *)v22); v55 = v54; if ( *(_BYTE *)(v22 + 753) && *(_BYTE *)(v22 + 917) ) v55 = v54 + 1; v56 = GameObject::getObjectZOrder((GameObject *)v22); v57 = *(_DWORD *)(v22 + 756); *(_BYTE *)(v22 + 734) = 0; v67 = v57; v63 = *(void (__fastcall **)(int, int))(*(_DWORD *)v57 + 64); v58 = v56 + 10000 * v55; v59 = (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 68))(v22); v63(v67, v59); v68 = *(_DWORD *)(v22 + 756); v64 = *(void (__fastcall **)(int, int))(*(_DWORD *)v68 + 72); v60 = (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 76))(v22); v64(v68, v60); v69 = *(_DWORD *)(v22 + 756); v65 = *(void (__fastcall **)(int, int))(*(_DWORD *)v69 + 180); v61 = (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 184))(v22); v65(v69, v61); v70 = *(_DWORD *)(v22 + 756); v66 = *(void (__fastcall **)(int, int))(*(_DWORD *)v70 + 92); v62 = (*(int (__fastcall **)(int))(*(_DWORD *)v22 + 96))(v22); v66(v70, v62); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(v22 + 756) + 264))(*(_DWORD *)(v22 + 756), 0); (*(void (__fastcall **)(const cocos2d::CCPoint *, _DWORD, int))(*(_DWORD *)v11 + 232))( v11, *(_DWORD *)(v22 + 756), v58); } } v29 = *(void (__fastcall **)(int, char *))(*(_DWORD *)v22 + 684); v30 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v22 + 96))(v22); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v77, v30); v29(v22, &v77); v31 = (cocos2d::CCRect *)(*(int (__fastcall **)(int))(*(_DWORD *)v22 + 676))(v22); v32 = COERCE_FLOAT(cocos2d::CCRect::getMinX(v31)); v33 = COERCE_FLOAT(cocos2d::CCRect::getMaxX(v31)); v34 = COERCE_FLOAT(cocos2d::CCRect::getMinY(v31)); v35 = COERCE_FLOAT(cocos2d::CCRect::getMaxY(v31)); v36 = v35; if ( v20 != 0.0 && v32 >= v20 ) v32 = v20; if ( v19 != 0.0 && v33 <= v19 ) v33 = v19; if ( v18 != 0.0 && v34 >= v18 ) v34 = v18; if ( v16 != 0.0 && v35 <= v16 ) v36 = v16; ++v17; v16 = v36; v18 = v34; v19 = v33; v20 = v32; } v37 = 0; v38 = *(void (__fastcall **)(const cocos2d::CCPoint *, char *))(*(_DWORD *)v11 + 160); cocos2d::CCSize::CCSize((cocos2d::CCSize *)&v77, v19 - v20, v16 - v18); v38(v11, &v77); while ( v37 < cocos2d::CCArray::count(v14) ) { v39 = (unsigned __int8 *)cocos2d::CCArray::objectAtIndex(v14, v37++); v40 = v39; v41 = *(void (__fastcall **)(unsigned __int8 *, char *))(*(_DWORD *)v39 + 92); (*(void (__fastcall **)(unsigned __int8 *))(*(_DWORD *)v39 + 96))(v39); cocos2d::CCNode::convertToNodeSpace((cocos2d::CCNode *)&v77, v11); v41(v40, &v77); (*(void (__fastcall **)(unsigned __int8 *, int))(*(_DWORD *)v40 + 172))(v40, v40[1114] ^ 1); } return v11; }
GD Web Decomp Icon

GD Web Decomp

Raw Source