// // LevelInfoLayer::onEdit from 0x1002acd90 to 0x1002acf12 (386 bytes) // // 2 xrefs: // > LevelInfoLayer::onPlay @ 0x1002ac523 // > LevelInfoLayer::init @ 0x1002aaad1 // // 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 12:28:00 +0000 // void __fastcall LevelInfoLayer::onEdit(__int64 a1, __int64 a2) { __int64 v3; // rax __int128 *v4; // rax __int64 v5; // rdx double v6; // xmm0_8 __int64 v7; // rax __int64 v8; // r14 __int64 v9; // rdi __int64 v10; // rbx _DWORD *v11; // rax char *v12; // rax __int64 v13; // rbx _BYTE v14[16]; // [rsp+8h] [rbp-48h] BYREF void *__p; // [rsp+18h] [rbp-38h] __int128 v16; // [rsp+20h] [rbp-30h] BYREF void *v17; // [rsp+30h] [rbp-20h] if ( *(_BYTE *)(a1 + 488) || *(_BYTE *)(a1 + 645) != 1 || *(_BYTE *)(cocos2d::CCDirector::sharedDirector(a1, a2) + 176) ) { return; } v3 = *(_QWORD *)(a1 + 504); if ( *(_DWORD *)(v3 + 1140) == 4 ) goto LABEL_14; if ( (*(_BYTE *)(v3 + 392) & 1) != 0 ) { sub_10001AD30(&v16, *(const void **)(v3 + 408), *(_QWORD *)(v3 + 400)); } else { v4 = (__int128 *)(v3 + 392); v17 = *((void **)v4 + 2); v16 = *v4; } if ( (v16 & 1) != 0 ) { v13 = *((_QWORD *)&v16 + 1); operator delete(v17); if ( v13 ) goto LABEL_10; LABEL_14: LevelInfoLayer::downloadLevel(a1); return; } if ( !((unsigned __int8)v16 >> 1) ) goto LABEL_14; LABEL_10: (*(void (__fastcall **)(__int64, _QWORD))(*(_QWORD *)a1 + 1072LL))(a1, 0); *(_BYTE *)(a1 + 488) = 1; *(_QWORD *)&v6 = GameManager::sharedState(a1, 0, v5).u64[0]; *(_DWORD *)(v7 + 708) = 3; v8 = FMODAudioEngine::sharedEngine(v6); GJGameLevel::getAudioFileName(v14, *(_QWORD *)(a1 + 504)); v9 = v8; FMODAudioEngine::loadMusic(v8, v14, 1, 0, 0, 0, 1.0, 0.0, 1.0); if ( (v14[0] & 1) != 0 ) { v9 = (__int64)__p; operator delete(__p); } v10 = cocos2d::CCDirector::sharedDirector(v9, v14); v11 = LevelEditorLayer::scene(*(_QWORD *)(a1 + 504), 0); v12 = cocos2d::CCTransitionFade::create_1((__int64)v11, 0.5); cocos2d::CCDirector::replaceScene(v10, v12); }
GD Web Decomp Icon

GD Web Decomp

Raw Source