// // EditLevelLayer::onPlay from 0x100110324 to 0x1001104e4 (448 bytes) // // 3 xrefs: // > EditLevelLayer::FLAlert_Clicked @ 0x100112458 // > EditLevelLayer::keyDown @ 0x100112610 // > EditLevelLayer::init @ 0x10010f76c // // 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 10:59:08 +0000 // double __fastcall EditLevelLayer::onPlay(__int64 a1) { double result; // d0 __int64 v3; // x0 __int64 v4; // x8 __int64 v5; // x9 __int64 v6; // x8 _BYTE *v7; // x19 __int64 v8; // x0 __int64 v9; // x0 __int64 v10; // x0 __int64 v11; // x20 __int64 v12; // x20 __int64 v13; // x0 void *v14[2]; // [xsp+10h] [xbp-40h] BYREF char v15; // [xsp+27h] [xbp-29h] void *__p[2]; // [xsp+28h] [xbp-28h] BYREF char v17; // [xsp+3Fh] [xbp-11h] if ( (*(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1) + 176) & 1) == 0 && (*(_BYTE *)(a1 + 496) & 1) == 0 ) { v3 = *(_QWORD *)(a1 + 472); v4 = *(char *)(v3 + 1495); if ( v4 < 0 ) v4 = *(_QWORD *)(v3 + 1480); if ( v4 && (*(_DWORD *)(v3 + 1520) != *(_DWORD *)(v3 + 788) || *(_DWORD *)(v3 + 1524) != 4) ) sub_1000CEBEC(v3); if ( (*(_BYTE *)(a1 + 536) & 1) != 0 ) goto LABEL_16; v5 = *(_QWORD *)(a1 + 472); v6 = *(char *)(v5 + 1495); if ( v6 < 0 ) v6 = *(_QWORD *)(v5 + 1480); if ( !v6 ) { LABEL_16: sub_100111734(a1); v8 = (*(__int64 (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); *(_BYTE *)(a1 + 496) = 1; v9 = FMODAudioEngine::sharedEngine(v8); v10 = FMODAudioEngine::stopAllMusic(v9, 1); v11 = FMODAudioEngine::sharedEngine(v10); sub_100009900(v14, "playSound_01.ogg"); FMODAudioEngine::playEffect(v11, v14, 1.0, 0.0, 0.3); if ( v15 < 0 ) operator delete(v14[0]); EditLevelLayer::verifyLevelName(a1); v12 = cocos2d::CCDelayTime::create(0.0); cocos2d::CCCallFunc::create(a1, EditLevelLayer::playStep2, 0); v13 = sub_10021D420(v12); *(_QWORD *)&result = cocos2d::CCNode::runAction(a1, v13).n128_u64[0]; } else { sub_100009900(__p, "There is a saved checkpoint for this level.\nDo you want to load it?"); v7 = (_BYTE *)FLAlertLayer::create_1(a1 + 416, "Load Save", __p, "New Game", "Load Save", 380.0); if ( v17 < 0 ) operator delete(__p[0]); sub_10034B6D0(v7); v7[656] = 1; (*(void (__fastcall **)(_BYTE *, __int64))(*(_QWORD *)v7 + 72LL))(v7, 11); (*(void (__fastcall **)(_BYTE *))(*(_QWORD *)v7 + 1312LL))(v7); } } return result; }