// // GameStatsManager::isItemUnlocked from 0x10032fc38 to 0x10032fd24 (236 bytes) // // 20 xrefs: // > GauntletSelectLayer::onPlay @ 0x1001bf970 // > GameOptionsLayer::setupOptions @ 0x1002e1928 // > GameOptionsLayer::onPracticeMusicSync @ 0x1002e1cd0 // > SecretLayer3::onClick @ 0x10030f144 // > SecretLayer3::onClick @ 0x10030f16c // > SecretLayer3::onClick @ 0x10030f194 // > GameManager::isIconUnlocked @ 0x100312adc // > GameManager::isColorUnlocked @ 0x100312ec8 // > GameManager::dataLoaded @ 0x10031bb28 // > GameStatsManager::trySelectActivePath @ 0x10032fd94 // > GameStatsManager::trySelectActivePath @ 0x10032fdfc // > GameStatsManager::recountSpecialStats @ 0x100335ac8 // > GameStatsManager::isItemEnabled @ 0x10033623c // > SongInfoLayer::init @ 0x1003a862c // > SongInfoLayer::onMenuMusic @ 0x1003a8998 // > SongInfoLayer::onPracticeMusic @ 0x1003a8a2c // > GJPathSprite::updateState @ 0x1003b8544 // > GJPathPage::init @ 0x1003b8a7c // > LevelSelectLayer::init @ 0x100401994 // > LevelPage::onSecretDoor @ 0x1004054c8 // // 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 // bool __fastcall GameStatsManager::isItemUnlocked(GameStatsManager *a1, UnlockType a2, int a3) { GameStatsManager *v5; // x0 GJStoreItem *StoreItem; // x0 GJStoreItem *v7; // x21 GameStatsManager *v8; // x0 GameStatsManager *v9; // x0 int SecretChestForItem; // w0 int v11; // w21 GameStatsManager *v12; // x0 cocos2d::CCString *SpecialChestKeyForItem; // x19 GameStatsManager *v14; // x0 GameStatsManager *v15; // x20 char *CString; // x0 void *__p[2]; // [xsp+8h] [xbp-38h] BYREF char v19; // [xsp+1Fh] [xbp-21h] v5 = GameStatsManager::sharedState(); StoreItem = GameStatsManager::getStoreItem(v5, a3, a2); if ( StoreItem && (v7 = StoreItem, v8 = GameStatsManager::sharedState(), GameStatsManager::isStoreItemUnlocked(v8, v7->m_index.random - v7->m_index.seed)) || (v9 = GameStatsManager::sharedState(), SecretChestForItem = GameStatsManager::getSecretChestForItem(v9, a3, a2), SecretChestForItem >= 1) && (v11 = SecretChestForItem, v12 = GameStatsManager::sharedState(), GameStatsManager::isSecretChestUnlocked(v12, v11)) ) { LOBYTE(SpecialChestKeyForItem) = 1; } else { v14 = GameStatsManager::sharedState(); SpecialChestKeyForItem = GameStatsManager::getSpecialChestKeyForItem(v14, a3, a2); if ( SpecialChestKeyForItem ) { v15 = GameStatsManager::sharedState(); CString = (char *)cocos2d::CCString::getCString(SpecialChestKeyForItem); sub_100009900(__p, CString); LOBYTE(SpecialChestKeyForItem) = GameStatsManager::isSpecialChestUnlocked(v15, __p); if ( v19 < 0 ) operator delete(__p[0]); } } return (char)SpecialChestKeyForItem; }
GD Web Decomp Icon

GD Web Decomp

Raw Source