// // FollowRewardPage::onSpecialItem from 0x5005b4 to 0x500868 (692 bytes) // // 0 xrefs: // // 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 FollowRewardPage::onSpecialItem(FollowRewardPage *a1, cocos2d::CCObject *a2) { int v4; // r0 GameManager *v5; // r0 _BOOL4 UGV; // r10 char *v7; // r1 GameManager *v8; // r0 GameManager *v9; // r0 GameManager *v10; // r0 GameManager *v11; // r0 GameManager *v12; // r0 int v13; // r10 FLAlertLayer *v14; // r9 int *v15; // r10 GJRewardItem *v16; // r10 RewardUnlockLayer *v17; // r8 int v18; // [sp+8h] [bp-2Ch] void *v19; // [sp+14h] [bp-20h] BYREF int v20; // [sp+18h] [bp-1Ch] BYREF _BYTE v21[4]; // [sp+1Ch] [bp-18h] BYREF int v22; // [sp+20h] [bp-14h] BYREF _BYTE v23[4]; // [sp+24h] [bp-10h] BYREF _BYTE v24[4]; // [sp+28h] [bp-Ch] BYREF v4 = a2->getTag(a2); v19 = &unk_ACDDA8; v18 = v4; sub_776584((int)&v20, (char *)&unk_939830); sub_776584((int)v21, (char *)&unk_939830); sub_776584((int)&v22, (char *)&unk_939830); switch ( v18 ) { case 1: sub_7753D4((int)&v19, "0007"); v5 = GameManager::sharedState(); UGV = GameManager::getUGV(v5, "22"); sub_7753D4((int)&v20, "YouTube"); sub_7753D4((int)v21, "Subscribe to RobTop Games on YouTube\nto unlock this chest!"); v7 = "Sub!"; goto LABEL_8; case 2: sub_7753D4((int)&v19, "0008"); v8 = GameManager::sharedState(); UGV = GameManager::getUGV(v8, "24"); sub_7753D4((int)&v20, "Twitter"); sub_7753D4((int)v21, "Follow RobTop Games on Twitter\nto unlock this chest!"); v7 = "Follow!"; goto LABEL_8; case 3: sub_7753D4((int)&v19, "0009"); v9 = GameManager::sharedState(); UGV = GameManager::getUGV(v9, "23"); sub_7753D4((int)&v20, "Facebook"); sub_7753D4((int)v21, "Like Geometry Dash on Facebook\nto unlock this chest!"); v7 = "Like!"; goto LABEL_8; case 4: sub_7753D4((int)&v19, "0010"); v10 = GameManager::sharedState(); UGV = GameManager::getUGV(v10, "26"); sub_7753D4((int)&v20, "Twitch"); sub_7753D4((int)v21, "Follow Geometry Dash on Twitch\nto unlock this chest!"); v7 = "Follow!"; goto LABEL_8; case 5: sub_7753D4((int)&v19, "0011"); v11 = GameManager::sharedState(); UGV = GameManager::getUGV(v11, "27"); sub_7753D4((int)&v20, "Discord"); sub_7753D4((int)v21, "Join Geometry Dash on Discord\nto unlock this chest!"); v7 = "Join!"; goto LABEL_8; case 6: sub_7753D4((int)&v19, "0024"); v12 = GameManager::sharedState(); UGV = GameManager::getUGV(v12, "32"); sub_7753D4((int)&v20, "Reddit"); sub_7753D4((int)v21, "Join Geometry Dash on Reddit\nto unlock this chest!"); v7 = "Join!"; LABEL_8: sub_7753D4((int)&v22, v7); if ( UGV ) { v15 = (int *)GameStatsManager::sharedState(); sub_775C20(v24); v16 = GameStatsManager::unlockSpecialChest(v15, (stl::StringData::Internal *)v24); sub_774008(v24); if ( v16 ) { FollowRewardPage::switchToOpenedState(a1, (CCMenuItemSpriteExtra *)a2); v17 = RewardUnlockLayer::create(v16->m_rewardType, nullptr); a1->addChild_0(a1, v17, 100); RewardUnlockLayer::showCollectReward(v17, v16); } } else { v13 = v20; sub_775C20(v23); v14 = FLAlertLayer::create((int)&a1->FLAlertLayerProtocol, v13, (int)v23, (int)"Cancel", v22, 380.0); sub_774008(v23); v14->setTag(v14, v18); ButtonSprite::updateBGImage(v14->m_button2, "GJ_button_02.png"); v14->show(v14); } break; default: break; } sub_774008(&v22); sub_774008(v21); sub_774008(&v20); sub_774008(&v19); }
GD Web Decomp Icon

GD Web Decomp

Raw Source