// // LocalLevelManager::importLevelsFromFile from 0x1006cee10 to 0x1006ceeb5 (165 bytes) // // 1 xrefs: // > sub_1004832B0 @ 0x1004832ce // // 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:35:37 +0000 // __int64 __fastcall LocalLevelManager::importLevelsFromFile(__int64 a1, unsigned int a2) { unsigned int v2; // ebx void **v3; // r14 void **v4; // r15 void *v5; // rdi void *__p[2]; // [rsp+0h] [rbp-30h] BYREF __int64 v8; // [rsp+10h] [rbp-20h] *(_OWORD *)__p = 0; v8 = 0; v2 = -1; if ( GameToolbox::showOpenFileDialogMulti( (void (__fastcall *)(_QWORD))"Import Levels", (void (__fastcall *)(_QWORD))"GD Level Files (*.gdlvl)", (__int64 *)__p, 0.0) ) { v2 = LocalLevelManager::importLevelsFromPaths(a1, __p, a2); } v3 = (void **)__p[0]; if ( __p[0] ) { v4 = (void **)__p[1]; v5 = __p[0]; if ( __p[1] != __p[0] ) { do { if ( (*(_BYTE *)(v4 - 3) & 1) != 0 ) operator delete(*(v4 - 1)); v4 -= 3; } while ( v4 != v3 ); v5 = __p[0]; } __p[1] = v3; operator delete(v5); } return v2; }
GD Web Decomp Icon

GD Web Decomp

Raw Source