// // AppDelegate::trySaveGame from 0x1003073b0 to 0x1003074bc (268 bytes) // // 1 xrefs: // > @ 0x10092b4b0 // // 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 11:03:08 +0000 // void __fastcall AppDelegate::trySaveGame(__int64 a1, int a2) { __int64 v3; // x20 unsigned __int64 v4; // d1 __int64 v5; // x0 _BOOL4 v6; // w21 __int64 v7; // x0 __int64 v8; // x0 unsigned __int64 v9; // d1 __int64 v10; // x0 __int64 v11; // x0 timeb v12; // [xsp+0h] [xbp-30h] BYREF v3 = a1; if ( a2 ) { *(_QWORD *)(a1 + 40) = 0; } else if ( *(double *)(a1 + 40) != 0.0 ) { a1 = ftime(&v12); LOWORD(v4) = v12.millitm; if ( (double)v4 / 1000.0 + (double)v12.time - *(double *)(v3 + 40) < 10.0 ) return; } if ( *(_BYTE *)(v3 + 32) == 1 ) { v5 = GameManager::sharedState(a1); v6 = GManager::save(v5, a2 ^ 1u); *(_BYTE *)(LocalLevelManager::sharedState() + 600) = a2 ^ 1; v7 = LocalLevelManager::sharedState(); v8 = GManager::save(v7, a2 ^ 1u); if ( (v8 & 1) != 0 || v6 ) { v8 = ftime(&v12); LOWORD(v9) = v12.millitm; *(double *)(v3 + 40) = (double)v9 / 1000.0 + (double)v12.time; } if ( a2 ) { v10 = GameManager::sharedState(v8); GManager::waitForSave(v10, 30.0); v11 = LocalLevelManager::sharedState(); GManager::waitForSave(v11, 30.0); } } nullsub_80(); }