// // GameManager::syncPlatformAchievements from 0x1003b42c0 to 0x1003b43a8 (232 bytes) // // 3 xrefs: // > LoadingLayer::loadAssets @ 0x10026f010 // > sub_1003053C8 @ 0x1003053f0 // > MenuLayer::syncPlatformAchievements @ 0x1003055bc // // 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:55 +0000 // __int64 __fastcall GameManager::syncPlatformAchievements(__int64 result) { __int64 v1; // x19 __int64 v2; // x0 __int64 v3; // x19 unsigned int v4; // w20 __int64 v5; // x22 __int64 v6; // x0 char *CString; // x22 __int64 v8; // x0 __int64 v9; // x23 __int64 v10; // x0 void *__p[2]; // [xsp+8h] [xbp-48h] BYREF char v12; // [xsp+1Fh] [xbp-31h] if ( (*(_BYTE *)(result + 505) & 1) == 0 ) { v1 = result; if ( (sub_1001F9264() & 1) != 0 || (result = sub_1001F926C(), (_DWORD)result) ) { *(_BYTE *)(v1 + 505) = 1; v2 = AchievementManager::sharedState(); v3 = sub_10010E3A4(v2); result = sub_1002E757C(v3); if ( (_DWORD)result ) { v4 = 0; do { v5 = sub_1002E75A0(v3, v4); sub_100009900(__p, "identifier"); v6 = cocos2d::CCDictionary::objectForKey(v5, __p); CString = (char *)cocos2d::CCString::getCString(v6); if ( v12 < 0 ) operator delete(__p[0]); v8 = AchievementManager::sharedState(); v9 = AchievementManager::percentForAchievement(v8, CString); v10 = AchievementManager::sharedState(); sub_10010EA18(v10, (__int64)CString, v9); ++v4; result = sub_1002E757C(v3); } while ( v4 < (unsigned int)result ); } } } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source