// // AppDelegate::trySaveGame from 0x10073bc70 to 0x10073bda0 (304 bytes) // // 1 xrefs: // > @ 0x100b9adb0 // // 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:36:27 +0000 // id __fastcall AppDelegate::trySaveGame(__int64 a1, __int64 a2) { char v2; // bl __int64 v3; // r14 id result; // rax __int64 v5; // rax char v6; // r15 __int64 v7; // rax timeb v8; // [rsp+0h] [rbp-30h] BYREF v2 = a2; v3 = a1; if ( (_DWORD)a2 ) { *(_QWORD *)(a1 + 88) = 0; } else if ( *(double *)(a1 + 88) != 0.0 ) { a1 = (__int64)&v8; ftime(&v8); result = (id)v8.millitm; if ( (double)v8.millitm / 1000.0 + (double)SLODWORD(v8.time) - *(double *)(v3 + 88) < 10.0 ) return result; } if ( *(_BYTE *)(v3 + 80) == 1 ) { v5 = GameManager::sharedState(); v6 = GManager::save(v5, (unsigned __int8)a2 ^ 1u); *(_BYTE *)(LocalLevelManager::sharedState() + 600) = a2 ^ 1; a1 = LocalLevelManager::sharedState(); a2 = (unsigned __int8)a2 ^ 1u; if ( (unsigned __int8)GManager::save(a1, a2) || v6 ) { a1 = (__int64)&v8; ftime(&v8); *(double *)(v3 + 88) = (double)v8.millitm / 1000.0 + (double)SLODWORD(v8.time); } if ( v2 ) { v7 = GameManager::sharedState(); sub_1004A5220(v7, 30.0); a1 = LocalLevelManager::sharedState(); sub_1004A5220(a1, 30.0); } } return sub_1004BDDC0(a1, a2); }
GD Web Decomp Icon

GD Web Decomp

Raw Source