// // GameManager::syncPlatformAchievements from 0x100369e30 to 0x100369f37 (263 bytes) // // 5 xrefs: // > MenuLayer::onGameCenter @ 0x10037cbe9 // > MenuLayer::onGooglePlayGames @ 0x10037cd35 // > MenuLayer::syncPlatformAchievements @ 0x10037ce3b // > MenuLayer::FLAlert_Clicked @ 0x10037d19f // > LoadingLayer::loadAssets @ 0x10038c83a // // 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:28:59 +0000 // void __fastcall GameManager::syncPlatformAchievements(__int64 a1, __int64 a2) { __int64 v2; // rax __int64 AllAchievements; // rbx unsigned int v4; // r14d __int64 v5; // rdi unsigned int v6; // r13d __int64 v7; // rax __int64 v8; // rax __int64 v9; // rdi __int64 CString; // r12 char v11; // [rsp+0h] [rbp-40h] BYREF char v12[11]; // [rsp+1h] [rbp-3Fh] BYREF void *__p; // [rsp+10h] [rbp-30h] if ( !*(_BYTE *)(a1 + 505) && ((unsigned __int8)PlatformToolbox::isLocalPlayerAuthenticated() || (unsigned __int8)PlatformToolbox::isSignedInGooglePlay()) ) { *(_BYTE *)(a1 + 505) = 1; v2 = AchievementManager::sharedState(a1, a2); AllAchievements = AchievementManager::getAllAchievements(v2); if ( (unsigned int)sub_1007FEF90(AllAchievements) ) { v4 = 0; do { v8 = sub_1007FEFE0(AllAchievements, v4); v11 = 20; strcpy(v12, "identifier"); v9 = cocos2d::CCDictionary::objectForKey(v8, &v11); CString = cocos2d::CCString::getCString(v9); if ( (v11 & 1) != 0 ) { v9 = (__int64)__p; operator delete(__p); } v5 = AchievementManager::sharedState(v9, &v11); v6 = AchievementManager::percentForAchievement(v5, CString); v7 = AchievementManager::sharedState(v5, CString); AchievementManager::reportPlatformAchievementWithID(v7, CString, v6); ++v4; } while ( v4 < (unsigned int)sub_1007FEF90(AllAchievements) ); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source