// // LevelEditorLayer::onResumePlaytest from 0x4680d0 to 0x468196 (198 bytes) // // 2 xrefs: // > EditorUI::onPlaytest @ 0x489e9a // > EditorUI::handleAction @ 0x6f2890 // // 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:48:58 +0000 // int __fastcall LevelEditorLayer::onResumePlaytest(cocos2d::CCNode **this) { int v2; // r0 cocos2d::CCDirector *v3; // r0 cocos2d::CCDirector *v4; // r0 cocos2d::CCDirector *fixed; // r0 float v6; // s15 int v7; // r1 cocos2d::CCNode *v8; // r2 v2 = cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)this); *(_BYTE *)((*(int (__fastcall **)(int))(*(_DWORD *)v2 + 96))(v2) + 92) = 1; UILayer::editorPlaytest(*(this + 2810), 1); v3 = (cocos2d::CCDirector *)LevelEditorLayer::addPlayerCollisionBlock((int)this); if ( *((_BYTE *)this + 11709) ) { v4 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector(v3); fixed = (cocos2d::CCDirector *)cocos2d::CCDirector::resetSmoothFixCounter(v4); *(_BYTE *)(cocos2d::CCDirector::sharedDirector(fixed) + 142) = 1; } v6 = COERCE_FLOAT((*(int (__fastcall **)(_DWORD))(*(_DWORD *)*(this + 609) + 84))(*(this + 609))); *((float *)this + 2957) = v6; if ( v6 < 0.7 ) v7 = LODWORD(v6); else v7 = 1060320051; (*(void (__fastcall **)(_DWORD, int))(*(_DWORD *)*(this + 609) + 80))(*(this + 609), v7); v8 = *this; *((_BYTE *)this + 1438) = 0; (*((void (__fastcall **)(cocos2d::CCNode **, _DWORD))v8 + 183))(this, *(this + 2959)); LevelEditorLayer::updatePlayerState((int)this, 1); cocos2d::CCNode::resumeSchedulerAndActions(*(this + 519)); cocos2d::CCNode::pauseSchedulerAndActions(*(this + 520)); *(this + 82) = *(this + 2960); LevelEditorLayer::recreateGroups(this); GJBaseGameLayer::optimizeMoveGroups((GJBaseGameLayer *)this); LevelEditorLayer::dirtifyTriggers(this); return GJBaseGameLayer::resumeAudio((GJBaseGameLayer *)this); }
GD Web Decomp Icon

GD Web Decomp

Raw Source