// // GameManager::verifyAchievementUnlocks from 0x7227d8 to 0x722944 (364 bytes) // // 3 xrefs: // > GameManager::dataLoaded @ 0x727c88 // > GameManager::dataLoaded @ 0x727d74 // > @ 0x4be08 // // 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 12:52:24 +0000 // __int64 __fastcall GameManager::verifyAchievementUnlocks(GameManager *this) { unsigned int v2; // w20 AchievementManager *v3; // x0 cocos2d::CCArray *AllAchievements; // x23 __int64 v5; // x0 cocos2d::CCString *v6; // x0 char *CString; // x21 AchievementManager *v8; // x0 AchievementManager *v9; // x0 size_t v11; // x0 __int128 v12; // [xsp+50h] [xbp+50h] BYREF void *v13; // [xsp+60h] [xbp+60h] v2 = 0; v3 = (AchievementManager *)AchievementManager::sharedState(_stack_chk_guard); AllAchievements = (cocos2d::CCArray *)AchievementManager::getAllAchievements(v3); if ( (unsigned int)cocos2d::CCArray::count(AllAchievements) ) { do { v5 = cocos2d::CCArray::objectAtIndex(AllAchievements, v2); BYTE9(v12) = 0; WORD5(v12) = 0; HIDWORD(v12) = 0; v13 = nullptr; LOBYTE(v12) = 20; strcpy((char *)&v12 + 1, "identif"); v6 = (cocos2d::CCString *)cocos2d::CCDictionary::objectForKey(v5, &v12); CString = (char *)cocos2d::CCString::getCString(v6); v8 = (AchievementManager *)(unsigned __int8)v12; if ( (v12 & 1) != 0 ) operator delete(v13); v9 = (AchievementManager *)AchievementManager::sharedState(v8); if ( AchievementManager::isAchievementEarned(v9, CString) && (v12 = 0u, v13 = nullptr, v11 = strlen(CString), std::string::__init((__int64 *)&v12, CString, v11), GameManager::completedAchievement(this, (PlatformToolbox *)&v12), (v12 & 1) != 0) ) { ++v2; operator delete(v13); } else { ++v2; } } while ( v2 < (unsigned int)cocos2d::CCArray::count(AllAchievements) ); } return _stack_chk_guard; }
GD Web Decomp Icon

GD Web Decomp

Raw Source