// // GameStatsManager::resetSpecialStatAchievements from 0x40dfe0 to 0x40e0fe (286 bytes) // // 1 xrefs: // > GameStatsManager::recountSpecialStats @ 0x41d2ae // // 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 GameStatsManager::resetSpecialStatAchievements(GameStatsManager *a1) { int i; // r6 int v2; // r8 char *v3; // r1 int j; // r7 cocos2d::CCString *v5; // r0 char *CString; // r11 GameManager *v7; // r10 char *v8; // [sp+1Ch] [bp-10h] BYREF const char *v9; // [sp+20h] [bp-Ch] BYREF for ( i = 0; i != 13; ++i ) { sub_776584((int)&v8, (char *)&unk_939830); switch ( i ) { case 1: v3 = "geometry.ach.shardFire"; goto LABEL_5; case 2: v3 = "geometry.ach.shardIce"; goto LABEL_5; case 3: v3 = "geometry.ach.shardPoison"; goto LABEL_5; case 4: v3 = "geometry.ach.shardShadow"; goto LABEL_5; case 5: v3 = "geometry.ach.shardLava"; goto LABEL_5; case 6: v3 = "geometry.ach.shardBonus"; goto LABEL_5; case 7: v3 = "geometry.ach.shardEarth"; goto LABEL_5; case 8: v3 = "geometry.ach.shardBlood"; goto LABEL_5; case 9: v3 = "geometry.ach.shardMetal"; goto LABEL_5; case 10: v3 = "geometry.ach.shardLight"; goto LABEL_5; case 11: v3 = "geometry.ach.shardSoul"; goto LABEL_5; case 12: v3 = "geometry.ach.shardBonusB"; LABEL_5: sub_7753D4((int)&v8, v3); v2 = 5; break; default: sub_7753D4((int)&v8, "geometry.ach.diamonds"); v2 = 18; break; } for ( j = 1; j <= v2; ++j ) { v5 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%s%02d", v8, j); CString = (char *)cocos2d::CCString::getCString(v5); v7 = GameManager::sharedState(); sub_776584((int)&v9, CString); GameManager::resetAchievement(v7, &v9); sub_774008(&v9); } sub_774008(&v8); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source