// // GameStatsManager::verifyPathAchievements from 0x51e1b0 to 0x51e26e (190 bytes) // // 2 xrefs: // > GameManager::dataLoaded @ 0x41c5ee // > GJAccountManager::onSyncAccountCompleted @ 0x582b94 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // 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:51:50 +0000 // int __fastcall GameStatsManager::verifyPathAchievements(GameStatsManager *this) { char *v2; // r2 int v3; // r4 int v4; // r3 int result; // r0 int v6; // r5 int v7; // r10 cocos2d::CCString *v8; // r0 const char *CString; // r0 const char *v10; // r7 size_t v11; // r0 GameManager *v12; // r0 AchievementManager *v13; // r11 int v14[3]; // [sp+14h] [bp-20h] BYREF int v15[3]; // [sp+20h] [bp-14h] BYREF v2 = (char *)_stack_chk_guard; v3 = 30; v4 = (int)"geometry.ach.path%02d.%02d"; do { result = GameStatsManager::getStatFromKey(this, v3, v2, v4); v6 = 1; v7 = result; do { v4 = 100 * v6; if ( v7 < 100 * v6 ) { v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"geometry.ach.path%02d.%02d", (const char *)(v3 - 29), v6); CString = (const char *)cocos2d::CCString::getCString(v8); memset(v14, 0, sizeof(v14)); v10 = CString; v11 = strlen(CString); v12 = (GameManager *)std::string::__init(v14, v10, v11); v13 = (AchievementManager *)GameManager::sharedState(v12); std::string::basic_string(v15, (int)v14); GameManager::resetAchievement(v13, (int)v15); std::string::~string((int)v15); result = std::string::~string((int)v14); } ++v6; } while ( v6 != 11 ); ++v3; } while ( v3 != 40 ); return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source