// // GameManager::syncPlatformAchievements from 0x32231c to 0x3223cc (176 bytes) // // 4 xrefs: // > MenuLayer::syncPlatformAchievements @ 0x309eaa // > MenuLayer::onGooglePlayGames @ 0x30a262 // > MenuLayer::onGameCenter @ 0x30a32c // > LoadingLayer::loadAssets @ 0x30bb18 // // 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 // void GameManager::syncPlatformAchievements(GameManager *a1) { AchievementManager *v2; // r0 unsigned int v3; // r5 cocos2d::CCArray *AllAchievements; // r7 cocos2d::CCDictionary *v5; // r8 cocos2d::CCString *v6; // r0 const char *CString; // r8 AchievementManager *v8; // r0 int v9; // r11 AchievementManager *v10; // r0 std::string v11; // [sp+8h] [bp-Ch] BYREF if ( !a1->m_googlePlaySignedIn && (PlatformToolbox::isLocalPlayerAuthenticated() || PlatformToolbox::isSignedInGooglePlay()) ) { a1->m_googlePlaySignedIn = 1; v2 = AchievementManager::sharedState(); v3 = 0; AllAchievements = AchievementManager::getAllAchievements(v2); while ( v3 < cocos2d::CCArray::count(AllAchievements) ) { v5 = (cocos2d::CCDictionary *)cocos2d::CCArray::objectAtIndex(AllAchievements, v3); sub_776584((int)&v11, "identifier"); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, &v11); CString = cocos2d::CCString::getCString(v6); sub_774008(&v11); ++v3; v8 = AchievementManager::sharedState(); v9 = AchievementManager::percentForAchievement(v8, CString); v10 = AchievementManager::sharedState(); AchievementManager::reportPlatformAchievementWithID(v10, CString, v9); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source