// // LevelEditorLayer::onStopPlaytest from 0x78dd90 to 0x78e174 (996 bytes) // // 3 xrefs: // > LevelEditorLayer::postUpdate @ 0x79b104 // > EditorUI::onStopPlaytest @ 0x7ce9d0 // > @ 0x1024d8 // // This function is hookable on this platform (idp: arm, 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 12:53:28 +0000 // __int64 __fastcall LevelEditorLayer::onStopPlaytest(UILayer **this) { char *v2; // x19 __int64 v3; // x0 UILayer *v4; // x1 _BYTE *v5; // x1 __int64 v6; // x2 __int64 v7; // x3 _QWORD *v8; // x1 __int64 v9; // x0 __int64 v10; // x24 _QWORD *v11; // x23 int v12; // w22 __int64 v13; // x28 __int64 v14; // x22 _BYTE *v15; // x27 const cocos2d::CCPoint *v16; // x0 long double v17; // q1 long double v18; // q0 FMODAudioEngine *v19; // x0 __int64 v20; // x0 FMODAudioEngine *v21; // x0 FMODAudioEngine *v22; // x0 FMODAudioEngine *v23; // x0 FMOD::ChannelControl **v24; // x0 EditorUI *v25; // x0 __int64 *v27; // x2 __int64 v28; // x20 __int64 v29; // x0 __int64 v30; // x1 void (__fastcall *v31)(__int64, __int64); // x21 __int64 v32; // x0 cocos2d::CCDirector *v33; // x0 cocos2d::CCDirector *fixed; // x0 char *v35; // [xsp+78h] [xbp+78h] unsigned __int64 v36; // [xsp+80h] [xbp+80h] __int64 v37; // [xsp+88h] [xbp+88h] float v38; // [xsp+98h] [xbp+98h] BYREF float v39; // [xsp+9Ch] [xbp+9Ch] float v40; // [xsp+A0h] [xbp+A0h] BYREF float v41; // [xsp+A4h] [xbp+A4h] v35 = (char *)(this + 1536); v2 = (char *)(this + 1536); v3 = cocos2d::CCDirector::sharedDirector(_stack_chk_guard); *(_BYTE *)((*(__int64 (__fastcall **)(__int64))(*(_QWORD *)v3 + 192LL))(v3) + 132) = 0; UILayer::editorPlaytest(*(this + 1661), 0); GJBaseGameLayer::restoreAllUIObjects((GJBaseGameLayer *)this); GJBaseGameLayer::resetStoppedAreaObjects((GJBaseGameLayer *)this); LevelEditorLayer::quickUpdateAllPositions((LevelEditorLayer *)this); GJBaseGameLayer::resetLevelVariables((GJBaseGameLayer *)this); GJBaseGameLayer::syncBGTextures((GJBaseGameLayer *)this); LevelEditorLayer::removePlayerCollisionBlock((__int64)this); if ( v2[1729] ) { v33 = (cocos2d::CCDirector *)cocos2d::CCDirector::sharedDirector((cocos2d::CCDirector *)(unsigned __int8)v2[1729]); fixed = (cocos2d::CCDirector *)cocos2d::CCDirector::resetSmoothFixCounter(v33); *(_BYTE *)(cocos2d::CCDirector::sharedDirector(fixed) + 178) = 0; } GJBaseGameLayer::setActiveStartPosObject((GJBaseGameLayer *)this, nullptr); *((_BYTE *)this + 1982) = 1; v4 = *this; *((float *)this + 3556) = 1.0; (*((void (__fastcall **)(UILayer **, float))v4 + 183))(this, 1.0); *((float *)this + 3557) = 1.0; LevelEditorLayer::updatePlayerState((__int64)this, 0); PlayerObject::releaseAllButtons(*(this + 407)); cocos2d::CCNode::pauseSchedulerAndActions(*(this + 407)); LevelEditorLayer::updatePreviewParticles(this); GJBaseGameLayer::toggleDualMode((GJBaseGameLayer *)this, nullptr, 0, *(this + 407), 1); v5 = *(this + 407); if ( v5[2424] ) { v29 = (__int64)*(this + 407); v28 = (__int64)*(this + 1779); v30 = *(_QWORD *)v5; goto LABEL_27; } if ( *((_BYTE *)this + 1010) ) { v27 = (__int64 *)*(this + 408); if ( *((_BYTE *)v27 + 2424) ) { v28 = (__int64)*(this + 1779); v29 = (__int64)*(this + 408); v30 = *v27; LABEL_27: v31 = *(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v28 + 184LL); v32 = (*(__int64 (__fastcall **)(__int64))(v30 + 192))(v29); v31(v28, v32); (*(void (__fastcall **)(_QWORD, __int64))(*(_QWORD *)*(this + 1779) + 344LL))(*(this + 1779), 1); v5 = *(this + 407); } } v36 = 0; (*(void (__fastcall **)(_BYTE *, _QWORD))(*(_QWORD *)v5 + 344LL))(v5, 0); (*(void (__fastcall **)(_QWORD, _QWORD))(*(_QWORD *)*(this + 408) + 344LL))(*(this + 408), 0); v6 = (__int64)*(this + 1671); v7 = (__int64)*(this + 1672); if ( (v7 - v6) >> 3 ) { do { v8 = *(_QWORD **)(v6 + 8 * v36); if ( v8 ) { v9 = (__int64)(v8[1] - *v8) >> 3; if ( (int)v9 > 0 ) { v10 = 0; v37 = 4 * ((unsigned int)(v9 - 1) + 1LL); do { v11 = *(_QWORD **)(**(_QWORD **)(v6 + 8 * v36) + 2 * v10); if ( v11 ) { v12 = *(_DWORD *)(**((_QWORD **)*(this + 1692) + v36) + v10); if ( v12 > 0 ) { v13 = 0; v14 = 8 * ((unsigned int)(v12 - 1) + 1LL); do { v15 = *(_BYTE **)(*v11 + v13); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v15 + 1376LL))(v15); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v15 + 1288LL))(v15); v16 = (const cocos2d::CCPoint *)(*(__int64 (__fastcall **)(_BYTE *))(*(_QWORD *)v15 + 192LL))(v15); cocos2d::CCPoint::CCPoint((cocos2d::CCPoint *)&v38, v16); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v15 + 1360LL))(v15); *(float *)&v17 = v38; *(float *)&v18 = v40; if ( v38 != v40 || (*(float *)&v17 = v39, *(float *)&v18 = v41, v39 != v41) ) (*(void (__fastcall **)(_BYTE *, float *, long double, long double))(*(_QWORD *)v15 + 184LL))( v15, &v40, v18, v17); v13 += 8; v15[864] = 1; v15[865] = 1; v15[840] = 1; } while ( v13 != v14 ); v6 = (__int64)*(this + 1671); } } v10 += 4; } while ( v10 != v37 ); v7 = (__int64)*(this + 1672); } } ++v36; } while ( v36 < (v7 - v6) >> 3 ); } LevelEditorLayer::resetToggledGroups((__int64)this); LevelEditorLayer::resetMovingObjects((LevelEditorLayer *)this); LevelEditorLayer::updateAnimateOnTriggerObjects((LevelEditorLayer *)this, 1u); GJEffectManager::reset(*(this + 269)); v19 = (FMODAudioEngine *)GJBaseGameLayer::resetGroupCounters((GJBaseGameLayer *)this, 0); v20 = FMODAudioEngine::sharedEngine(v19); v21 = (FMODAudioEngine *)FMODAudioEngine::resumeAllAudio(v20); v22 = (FMODAudioEngine *)FMODAudioEngine::sharedEngine(v21); v23 = (FMODAudioEngine *)FMODAudioEngine::stopAllMusic(v22, 1); v24 = (FMOD::ChannelControl **)FMODAudioEngine::sharedEngine(v23); FMODAudioEngine::stopAllEffects(v24); if ( v35[1723] ) LevelEditorLayer::timeObjectChanged((LevelEditorLayer *)this); v25 = *(this + 1781); if ( v25 ) EditorUI::updateSlider(v25); v35[317] = 0; return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source