// // SecretGame01Layer::init from 0x6e6828 to 0x6e6978 (336 bytes) // // 1 xrefs: // > SecretGame01Layer::create @ 0x6e2ce6 // // 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:25 +0000 // cocos2d::CCDirector *__fastcall SecretGame01Layer::init(SecretGame01Layer *this) { cocos2d::CCDirector *v2; // r0 cocos2d::CCDirector *v3; // r8 cocos2d::CCMenu *WinSize; // r0 int v5; // r0 int v6; // r3 cocos2d::CCArray *v7; // r0 cocos2d::CCObject *v8; // r0 cocos2d::CCArray *v9; // r0 cocos2d::CCObject *v10; // r0 const char *v11; // r1 int v12; // r0 float v13; // r1 int v14; // r6 void (__fastcall *v15)(int, _BYTE *); // r9 int v16; // r6 void (__fastcall *v17)(int, _BYTE *); // r9 int v18; // r0 void (__fastcall *v19)(int, _BYTE *); // r3 int v20; // r5 void (__fastcall *v21)(int, _DWORD); // r6 float *v22; // r0 float v24[2]; // [sp+4h] [bp-18h] BYREF _BYTE v25[8]; // [sp+Ch] [bp-10h] BYREF v2 = (cocos2d::CCDirector *)cocos2d::CCLayer::init(this); v3 = v2; if ( v2 ) { cocos2d::CCDirector::sharedDirector(v2); WinSize = (cocos2d::CCMenu *)cocos2d::CCDirector::getWinSize((cocos2d::CCDirector *)v24); v5 = cocos2d::CCMenu::create(WinSize); v6 = *(_DWORD *)this; *((_DWORD *)this + 81) = v5; (*(void (__fastcall **)(SecretGame01Layer *, int))(v6 + 228))(this, v5); v7 = (cocos2d::CCArray *)(*(int (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 81) + 500))( *((_DWORD *)this + 81), 0); v8 = (cocos2d::CCObject *)cocos2d::CCArray::create(v7); *((_DWORD *)this + 79) = v8; v9 = (cocos2d::CCArray *)cocos2d::CCObject::retain(v8); v10 = (cocos2d::CCObject *)cocos2d::CCArray::create(v9); *((_DWORD *)this + 80) = v10; cocos2d::CCObject::retain(v10); v12 = cocos2d::CCSprite::createWithSpriteFrameName((cocos2d::CCSprite *)"whiteSquare20_001.png", v11); v13 = (float)(v24[0] * 0.5) - 50.0; *((_DWORD *)this + 87) = v12; v14 = v12; v15 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v12 + 92); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, v13, 40.0); v15(v14, v25); v16 = *((_DWORD *)this + 87); v17 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v16 + 148); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)v25, 0.0, 0.5); v17(v16, v25); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 87) + 72))(*((_DWORD *)this + 87), 1058642330); v18 = *((_DWORD *)this + 87); v19 = *(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v18 + 480); memset(v25, 100, 3); v19(v18, v25); (*(void (__fastcall **)(_DWORD, int))(**((_DWORD **)this + 87) + 456))(*((_DWORD *)this + 87), 100); v20 = *((_DWORD *)this + 87); v21 = *(void (__fastcall **)(int, _DWORD))(*(_DWORD *)v20 + 64); v22 = (float *)(*(int (__fastcall **)(int))(*(_DWORD *)v20 + 164))(v20); v21(v20, 100.0 / *v22); (*(void (__fastcall **)(SecretGame01Layer *, _DWORD))(*(_DWORD *)this + 228))(this, *((_DWORD *)this + 87)); (*(void (__fastcall **)(_DWORD, _DWORD))(**((_DWORD **)this + 87) + 172))(*((_DWORD *)this + 87), 0); cocos2d::CCNode::scheduleUpdate(this); } return v3; }
GD Web Decomp Icon

GD Web Decomp

Raw Source