// // cocos2d::CCDirector::init from 0x1800c1fb0 to 0x1800c2262 (690 bytes) // // 6 xrefs: // > cocos2d::CCDirector::sharedDirector @ 0x1800c35ad // > cocos2d::CCDirector::sharedDirector @ 0x1800c359e // > @ 0x18010da10 // > @ 0x18010db20 // > @ 0x18014cf68 // > @ 0x1801c34b0 // // 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 11:22:25 +0000 // // Hidden C++ exception states: #wind=8 char __fastcall cocos2d::CCDirector::init(cocos2d::CCDirector *this) { cocos2d::CCArray *v2; // rax cocos2d::CCArray *v3; // rax _QWORD *v4; // rax cocos2d::CCScheduler *v5; // rax __int64 v6; // rax cocos2d::CCActionManager *v7; // rax struct cocos2d::CCObject *v8; // rax cocos2d::CCTouchDispatcher *v9; // rax cocos2d::CCTouchDispatcher *v10; // rax cocos2d::CCKeypadDispatcher *v11; // rax cocos2d::CCKeypadDispatcher *v12; // rax cocos2d::CCKeyboardDispatcher *v13; // rax cocos2d::CCKeyboardDispatcher *v14; // rax cocos2d::CCMouseDispatcher *v15; // rax cocos2d::CCMouseDispatcher *v16; // rax cocos2d::CCAccelerometer *v17; // rax cocos2d::CCAccelerometer *v18; // rax cocos2d::CCPoolManager *v19; // rax float *v20; // rax cocos2d::CCArray *v22; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCDirector::setDefaultValues(this); *((_QWORD *)this + 34) = 0; *((_QWORD *)this + 35) = 0; *((_QWORD *)this + 12) = 0; *((_QWORD *)this + 43) = 0; v2 = (cocos2d::CCArray *)sub_1800E4AC0(0x40u); v22 = v2; if ( v2 ) v3 = cocos2d::CCArray::CCArray(v2); else v3 = nullptr; *((_QWORD *)this + 37) = v3; cocos2d::CCArray::init(v3); *((_QWORD *)this + 44) = 0; *((_BYTE *)this + 404) = 0; *(_QWORD *)((char *)this + 220) = 0; *((_DWORD *)this + 57) = 0; *((_QWORD *)this + 21) = 0; *((_QWORD *)this + 29) = 0; *((_QWORD *)this + 30) = 0; *((_QWORD *)this + 31) = 0; *(_QWORD *)((char *)this + 260) = 0; *((_QWORD *)this + 42) = sub_1800E4C6C(0x10u); v4 = (_QWORD *)sub_1800E4AC0(8u); if ( v4 ) *v4 = 0; else v4 = nullptr; *((_QWORD *)this + 38) = v4; *((_DWORD *)this + 67) = 0; *((_WORD *)this + 88) = 0; *((_BYTE *)this + 178) = 0; *((_DWORD *)this + 45) = 0; *((_QWORD *)this + 47) = 0; *((_BYTE *)this + 368) = 0; *((_BYTE *)this + 405) = 0; *((_BYTE *)this + 256) = 0; *((_BYTE *)this + 184) = 0; cocos2d::CCSize::operator=((_DWORD *)this + 80, dword_1801B3BA0); *((_QWORD *)this + 24) = 0; *((_DWORD *)this + 82) = 1065353216; v5 = (cocos2d::CCScheduler *)sub_1800E4AC0(0x80u); v22 = v5; if ( v5 ) v6 = cocos2d::CCScheduler::CCScheduler(v5); else v6 = 0; *((_QWORD *)this + 13) = v6; v7 = (cocos2d::CCActionManager *)sub_1800E4AC0(0x50u); v22 = v7; if ( v7 ) v8 = cocos2d::CCActionManager::CCActionManager(v7); else v8 = nullptr; *((_QWORD *)this + 14) = v8; cocos2d::CCScheduler::scheduleUpdateForTarget(*((cocos2d::CCScheduler **)this + 13), v8, 0x80000000, 0); v9 = (cocos2d::CCTouchDispatcher *)sub_1800E4AC0(0xA8u); v22 = v9; if ( v9 ) v10 = cocos2d::CCTouchDispatcher::CCTouchDispatcher(v9); else v10 = nullptr; *((_QWORD *)this + 15) = v10; cocos2d::CCTouchDispatcher::init(v10); v11 = (cocos2d::CCKeypadDispatcher *)sub_1800E4AC0(0x58u); v22 = v11; if ( v11 ) v12 = cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(v11); else v12 = nullptr; *((_QWORD *)this + 16) = v12; v13 = (cocos2d::CCKeyboardDispatcher *)sub_1800E4AC0(0xA8u); v22 = v13; if ( v13 ) v14 = cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(v13); else v14 = nullptr; *((_QWORD *)this + 17) = v14; v15 = (cocos2d::CCMouseDispatcher *)sub_1800E4AC0(0x58u); v22 = v15; if ( v15 ) v16 = cocos2d::CCMouseDispatcher::CCMouseDispatcher(v15); else v16 = nullptr; *((_QWORD *)this + 18) = v16; *((_QWORD *)this + 19) = 0; v17 = (cocos2d::CCAccelerometer *)sub_1800E4AC0(0x28u); v22 = v17; if ( v17 ) v18 = cocos2d::CCAccelerometer::CCAccelerometer(v17); else v18 = nullptr; *((_QWORD *)this + 20) = v18; v19 = cocos2d::CCPoolManager::sharedPoolManager(); cocos2d::CCPoolManager::push(v19); *((_QWORD *)this + 45) = 0; *((_DWORD *)this + 100) = 0; v20 = kmVec2Fill((float *)&v22, 480.0, 320.0); cocos2d::CCSize::operator=((_DWORD *)this + 96, v20); return 1; }
GD Web Decomp Icon

GD Web Decomp

Raw Source