// // GameStatsManager::unlockSpecialChest from 0x41c7a8 to 0x41c830 (136 bytes) // // 11 xrefs: // > GameManager::rewardedVideoHidden @ 0x320332 // > GameStatsManager::unlockGauntletChest @ 0x41c85e // > GameStatsManager::unlockPathChest @ 0x41c8d6 // > GameStatsManager::unlockOnlineChest @ 0x42060a // > SupportLayer::onGetReward @ 0x42c87c // > GJShopLayer::dialogClosed @ 0x4e1e04 // > SecretLayer3::onChest01 @ 0x4eb2fe // > SecretLayer3::onChest02 @ 0x4eb39a // > SecretLayer4::onChest01 @ 0x4efefe // > FollowRewardPage::onSpecialItem @ 0x5007d2 // > SecretRewardsLayer::onSpecialItem @ 0x5859e8 // // 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 // GJRewardItem *__fastcall GameStatsManager::unlockSpecialChest(int *a1, stl::StringData::Internal *a2) { stl::StringData::Internal *v3; // r2 stl::StringData::Internal *v4; // r3 int isSpecialChestUnlocked; // r4 GJRewardItem *RewardForSpecialChest; // r4 std::string v8[2]; // [sp+0h] [bp-8h] BYREF v8[0].m_data.m_data = (stl::StringData::Internal *)a1; v8[1].m_data.m_data = a2; sub_775C20(v8); isSpecialChestUnlocked = GameStatsManager::isSpecialChestUnlocked((int)a1, (char **)v8, v3, v4); sub_774008(v8); if ( isSpecialChestUnlocked ) return nullptr; sub_775C20(v8); RewardForSpecialChest = (GJRewardItem *)GameStatsManager::getRewardForSpecialChest((int)a1, v8); sub_774008(v8); if ( RewardForSpecialChest ) { GameStatsManager::preProcessReward((GameStatsManager *)a1, RewardForSpecialChest); GameStatsManager::registerRewardsFromItem((GameStatsManager *)a1, RewardForSpecialChest); cocos2d::CCDictionary::setObject(a1[133], RewardForSpecialChest); } return RewardForSpecialChest; }
GD Web Decomp Icon

GD Web Decomp

Raw Source