// // GJGameLevel::clearPlatformerSave from 0x1402640e0 to 0x1402641ab (203 bytes) // // 13 xrefs: // > EditLevelLayer::onPlay @ 0x14017b152 // > EditLevelLayer::FLAlert_Clicked @ 0x14017c751 // > sub_140274000 @ 0x1402740af // > sub_140274000 @ 0x14027411f // > sub_140274000 @ 0x14027418f // > sub_140274000 @ 0x1402741ff // > sub_140274000 @ 0x140274283 // > GameLevelOptionsLayer::FLAlert_Clicked @ 0x1403aa9c1 // > LevelEditorLayer::saveLevel @ 0x1403ff2e9 // > LevelInfoLayer::onPlay @ 0x140421941 // > LevelInfoLayer::FLAlert_Clicked @ 0x140426462 // > PlayLayer::levelComplete @ 0x140506b00 // > @ 0x14091c850 // // 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 11:28:49 +0000 // // Hidden C++ exception states: #wind=2 void __fastcall GJGameLevel::clearPlatformerSave(__int64 a1) { int v2; // eax const void **v3; // rax void *v4; // [rsp+20h] [rbp-38h] _BYTE v5[32]; // [rsp+28h] [rbp-30h] BYREF sub_1400405A0((void **)(a1 + 1632), &byte_1406ED6E0, 0); sub_1400405A0((void **)(a1 + 1664), &byte_1406ED6E0, 0); *(_QWORD *)(a1 + 1696) = 0; if ( !*(_QWORD *)&qword_14090BFB0 ) { v4 = operator new(0x690u); *(_QWORD *)&qword_14090BFB0 = GameLevelManager::GameLevelManager((__int64)v4); (*(void (__fastcall **)(_QWORD))(**(_QWORD **)&qword_14090BFB0 + 72LL))(*(_QWORD *)&qword_14090BFB0); } v2 = *(_DWORD *)(a1 + 1220); if ( v2 == 3 || v2 == 2 ) { v3 = (const void **)sub_140222BE0((__int64)v5, a1); sub_140223100(3, v3); sub_14003D310((__int64)v5); } }