// // AppDelegate::trySaveGame from 0x140083500 to 0x1400835d3 (211 bytes) // // 2 xrefs: // > @ 0x14053c560 // > @ 0x1406c6ab0 // // This function is hookable on this platform! // // Using BromaIDA 8.0.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit ba9f177b at Thu Jul 16 22:52:06 2026 from https://github.com/geode-sdk/bindings // // local variable allocation has failed, the output may be wrong! // Hidden C++ exception states: #wind=1 void AppDelegate::trySaveGame(AppDelegate *a1, bool a2) { GManager *v3; // rcx LocalLevelManager *v4; // rax float v5; // xmm1_4 __int64 v6; // rax void *v7; // [rsp+30h] [rbp+8h] if ( a2 ) *((_DWORD *)&a1[2].m_resourceRootPath.m_data.m_bigStorage + 2) = 0; if ( *((float *)&a1[2].m_resourceRootPath.m_data.m_bigStorage + 2) == 0.0 || sub_14003CF30() - *((float *)&a1[2].m_resourceRootPath.m_data.m_bigStorage + 2) >= 10.0 ) { if ( a1[2].m_resourceRootPath.m_data.m_smallStorage._Elems[0] ) { v3 = (GManager *)qword_1406C2ED8; if ( !qword_1406C2ED8 ) { v7 = operator new(0x668u); qword_1406C2ED8 = sub_14017AB00(v7); (*(void (__fastcall **)(__int64))(*(_QWORD *)qword_1406C2ED8 + 72LL))(qword_1406C2ED8); v3 = (GManager *)qword_1406C2ED8; } GManager::save(v3); v4 = LocalLevelManager::sharedState(); GManager::save(v4); v5 = sub_14003CF30(); *((float *)&a1[2].m_resourceRootPath.m_data.m_bigStorage + 2) = v5; } v6 = cocos2d::CCApplication::sharedApplication(a1, a2); (*(void (__fastcall **)(__int64))(*(_QWORD *)v6 + 56LL))(v6); } }