// // GJBaseGameLayer::createPlayerCollisionBlock from 0x59c380 to 0x59c4bc (316 bytes) // // 2 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a79e // > LevelEditorLayer::init @ 0x4762c2 // // 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:53:13 +0000 // int __fastcall GJBaseGameLayer::createPlayerCollisionBlock(int this, int a2) { int v2; // r6 GameObject **v3; // r9 int i; // r8 GameObject *v5; // r4 void (__fastcall *v6)(GameObject *, int *); // r3 int v7; // r0 const cocos2d::CCPoint *v8; // r0 void (__fastcall *v9)(GameObject *, int *); // [sp+0h] [bp-24h] void (__fastcall *v10)(GameObject *, _BYTE *); // [sp+0h] [bp-24h] GameObject *v11; // [sp+4h] [bp-20h] _BYTE v12[8]; // [sp+8h] [bp-1Ch] BYREF int v13; // [sp+10h] [bp-14h] BYREF int v14; // [sp+14h] [bp-10h] int v15; // [sp+18h] [bp-Ch] v2 = this; if ( !*(_DWORD *)(this + 10616) ) { v3 = (GameObject **)(this + 10620); for ( i = 0; ; i = 1 ) { v5 = GameObject::createWithKey((GameObject *)&stru_70C.st_info, a2); cocos2d::CCObject::retain(v5); (*(void (__fastcall **)(GameObject *))(*(_DWORD *)v5 + 632))(v5); v13 = 0; v14 = 0; v15 = 0; std::string::__init(&v13, "edit_eCollisionBlock01_001.png", 0x1Eu); GameObject::addColorSprite((cocos2d::CCObject **)v5, (int)&v13); std::string::~string((int)&v13); v6 = *(void (__fastcall **)(GameObject *, int *))(*(_DWORD *)v5 + 636); v13 = 0; v14 = 0; v15 = 0; v9 = v6; std::string::__init(&v13, "edit_eCollisionBlock01_001.png", 0x1Eu); v9(v5, &v13); std::string::~string((int)&v13); if ( i ) { *v3 = v5; *((_DWORD *)v5 + 375) = 10001; v7 = *(_DWORD *)(v2 + 2080); v11 = *v3; v10 = *(void (__fastcall **)(GameObject *, _BYTE *))(*(_DWORD *)*v3 + 684); } else { *(_DWORD *)(v2 + 10616) = v5; *((_DWORD *)v5 + 375) = 10000; v7 = *(_DWORD *)(v2 + 2076); v11 = *(GameObject **)(v2 + 10616); v10 = *(void (__fastcall **)(GameObject *, _BYTE *))(*(_DWORD *)v11 + 684); } v8 = (const cocos2d::CCPoint *)(*(int (__fastcall **)(int))(*(_DWORD *)v7 + 96))(v7); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v12, v8); v10(v11, v12); *((_BYTE *)v5 + 471) = 1; *((_BYTE *)v5 + 1123) = 1; (*(void (__fastcall **)(int, GameObject *))(*(_DWORD *)v2 + 672))(v2, v5); this = cocos2d::CCArray::addObject(*(cocos2d::CCArray **)(v2 + 2092), v5); if ( i == 1 ) break; } } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source