// // cocos2d::CCDirector::init from 0x1800be7a0 to 0x1800bea8f (751 bytes) // // 6 xrefs: // > cocos2d::CCDirector::sharedDirector @ 0x1800bfd6d // > cocos2d::CCDirector::sharedDirector @ 0x1800bfd5e // > @ 0x1801072b8 // > @ 0x1801073c8 // > @ 0x1801438a8 // > @ 0x1801b91f8 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // Hidden C++ exception states: #wind=8 char __fastcall cocos2d::CCDirector::init(cocos2d::CCDirector *this) { cocos2d::CCArray *v2; // rax cocos2d::CCArray *v3; // rax cocos2d::cc_timeval *v4; // rax cocos2d::CCScheduler *v5; // rax cocos2d::CCScheduler *v6; // rax cocos2d::CCActionManager *v7; // rax cocos2d::CCActionManager *v8; // rax cocos2d::CCObject *v9; // rax cocos2d::CCTouchDispatcher *v10; // rdi 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 void *v22; // [rsp+30h] [rbp+8h] BYREF cocos2d::CCDirector::setDefaultValues(this); this->m_pRunningScene = nullptr; this->m_pNextScene = nullptr; this->m_pSceneReference = nullptr; this->m_pNotificationNode = nullptr; v2 = (cocos2d::CCArray *)operator new(0x40u); v22 = v2; if ( v2 ) v3 = cocos2d::CCArray::CCArray(v2); else v3 = nullptr; this->m_pobScenesStack = v3; cocos2d::CCArray::init(v3); this->m_pProjectionDelegate = nullptr; this->m_bDontCallWillSwitch = 0; *(_QWORD *)&this->m_fFpsAccumDt = 0; this->m_fFrameRate = 0.0; *(_QWORD *)&this->m_fDeltaTime = 0; this->m_pFPSLabel = nullptr; this->m_pSPFLabel = nullptr; this->m_pDrawsLabel = nullptr; *(_QWORD *)&this->m_uTotalFrames = 0; this->m_pszFPS = (char *)operator new(0xAu); v4 = (cocos2d::cc_timeval *)operator new(8u); if ( v4 ) *v4 = 0; else v4 = nullptr; this->m_pLastUpdate = v4; this->m_fSecondsPerFrame = 0.0; *(_WORD *)&this->m_bIsTransitioning = 0; this->m_bSmoothFixCheck = 0; this->m_nSmoothFixCounter = 0; this->m_pFPSNode = nullptr; this->m_bDisplayFPS = 0; this->m_bFastMenu = 0; this->m_bPaused = 0; this->m_bPurgeDirecotorInNextLoop = 0; cocos2d::CCSize::operator=(&this->m_obWinSizeInPoints, dword_1801A9B28); this->m_pobOpenGLView = nullptr; this->m_fContentScaleFactor = 1.0; v5 = (cocos2d::CCScheduler *)operator new(0x80u); v22 = v5; if ( v5 ) v6 = (cocos2d::CCScheduler *)cocos2d::CCScheduler::CCScheduler(v5); else v6 = nullptr; this->m_pScheduler = v6; v7 = (cocos2d::CCActionManager *)operator new(0x50u); v22 = v7; if ( v7 ) v8 = cocos2d::CCActionManager::CCActionManager(v7); else v8 = nullptr; this->m_pActionManager = v8; cocos2d::CCScheduler::scheduleUpdateForTarget(this->m_pScheduler, v8, 0x80000000, 0); v9 = (cocos2d::CCObject *)operator new(0x90u); v10 = (cocos2d::CCTouchDispatcher *)v9; v22 = v9; if ( v9 ) { cocos2d::CCObject::CCObject(v9); v10->cocos2d::CCObject::cocos2d::CCCopying::__vftable = (cocos2d::CCTouchDispatcher_vtbl *)&cocos2d::CCTouchDispatcher::`vftable'{for `cocos2d::CCObject'}; v10->cocos2d::EGLTouchDelegate::__vftable = (cocos2d::EGLTouchDelegate_vtbl *)&cocos2d::CCTouchDispatcher::`vftable'{for `cocos2d::EGLTouchDelegate'}; v10->m_pTargetedHandlers = nullptr; v10->m_pStandardHandlers = nullptr; v10->m_pHandlersToAdd = nullptr; v10->m_pHandlersToRemove = nullptr; v10->m_targetPrio = -500; v10->m_pForcePrioDict = nullptr; v10->m_forcePrio = 0; } else { v10 = nullptr; } this->m_pTouchDispatcher = v10; cocos2d::CCTouchDispatcher::init(v10); v11 = (cocos2d::CCKeypadDispatcher *)operator new(0x58u); v22 = v11; if ( v11 ) v12 = cocos2d::CCKeypadDispatcher::CCKeypadDispatcher(v11); else v12 = nullptr; this->m_pKeypadDispatcher = v12; v13 = (cocos2d::CCKeyboardDispatcher *)operator new(0x60u); v22 = v13; if ( v13 ) v14 = cocos2d::CCKeyboardDispatcher::CCKeyboardDispatcher(v13); else v14 = nullptr; this->m_pKeyboardDispatcher = v14; v15 = (cocos2d::CCMouseDispatcher *)operator new(0x58u); v22 = v15; if ( v15 ) v16 = cocos2d::CCMouseDispatcher::CCMouseDispatcher(v15); else v16 = nullptr; this->m_pMouseDispatcher = v16; v17 = (cocos2d::CCAccelerometer *)operator new(0x28u); v22 = v17; if ( v17 ) v18 = cocos2d::CCAccelerometer::CCAccelerometer(v17); else v18 = nullptr; this->m_pAccelerometer = v18; v19 = cocos2d::CCPoolManager::sharedPoolManager(); cocos2d::CCPoolManager::push(v19); this->m_pAppDelegate = nullptr; this->m_eTextureQuality = 0; v20 = kmVec2Fill((float *)&v22, 480.0, 320.0); cocos2d::CCSize::operator=(&this->m_obScaleFactor, v20); return 1; }