// // LevelBrowserLayer::onInfo from 0x4a591c to 0x4a5b66 (586 bytes) // // 0 xrefs: // // 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:49:54 +0000 // int __fastcall LevelBrowserLayer::onInfo(LevelBrowserLayer *this, cocos2d::CCObject *a2) { int v3; // r3 char *v4; // r1 unsigned int v5; // r3 cocos2d::CCLabelBMFont *v6; // r10 char *v7; // r11 size_t v8; // r0 int v9; // r3 int *v10; // r7 int v11; // r3 int v13[2]; // [sp+Ch] [bp-38h] BYREF cocos2d::CCLabelBMFont *v14; // [sp+14h] [bp-30h] int v15[2]; // [sp+18h] [bp-2Ch] BYREF char *v16; // [sp+20h] [bp-24h] int v17; // [sp+24h] [bp-20h] BYREF int v18; // [sp+28h] [bp-1Ch] int v19; // [sp+2Ch] [bp-18h] int v20[3]; // [sp+30h] [bp-14h] BYREF v13[0] = 0; v13[1] = 0; v14 = nullptr; std::string::__init(v13, "Info", 4u); v15[0] = 0; v15[1] = 0; v16 = nullptr; std::string::__init( v15, "Green users are unregistered.\n" "Gold users are unique registered.\n" "Blue songs are official.\n" "Purple songs are custom.", 0x91u); v17 = 0; v18 = 0; v19 = 0; std::string::__init(&v17, &unk_B6B226, 0); v3 = *((_DWORD *)this + 125); if ( !v3 ) goto LABEL_25; if ( *(_DWORD *)(v3 + 344) == 1 ) { std::string::assign(v13, "Lists"); std::string::assign( v15, "A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of th" "e list.\n" "Usernames are gold for registered users and green for unregistered users. A song is blue i" "f it is official and pink if it is custom."); if ( *(_DWORD *)(*((_DWORD *)this + 125) + 264) != 6 ) goto LABEL_25; std::string::assign(v13, "Top Lists"); v4 = "These lists have been rated by RobTop. The rewards for each one are also decided by him and are variabl" "e from list to list. Note that rated lists can only be Featured and do not reward Creator Points."; goto LABEL_24; } std::string::assign(v13, "Levels"); std::string::assign( v15, "A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set by co" "mmunity votes on each level's page. This is also how Demon difficulties are decided.\n" "Usernames are gold for registered users and green for unregistered users. A song is blue if " "it is official and pink if it is custom."); v5 = *(_DWORD *)(*((_DWORD *)this + 125) + 264); if ( v5 <= 0x17 ) { if ( v5 < 0x15 ) { switch ( v5 ) { case 6u: std::string::assign(&v17, "Info"); std::string::assign(v13, "Featured"); v4 = "Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face i" "ndicates how much he likes a specific level. In order of increasing quality:\n" "Featured, Epic, Legendary, and Mythic."; break; case 9u: std::string::assign(v13, "Map Packs"); v4 = "Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed, " "they reward Stars and Secret Coins."; break; case 3u: std::string::assign(v13, "Trending"); v4 = "New popular levels from the last few days.\n" "Only creators with a rated level, or a level sent by a Rating Advisor, can trend."; break; default: goto LABEL_25; } goto LABEL_24; } goto LABEL_21; } if ( v5 == 31 ) { std::string::assign(v13, "Hyped"); v4 = "Levels sent by Rating Advisors enter the\n" "Hyped list for about a week.\n" "The list reshuffles every hour, so every level has a chance to be at the top."; LABEL_24: std::string::assign(v15, v4); goto LABEL_25; } if ( v5 > 0x1F ) { if ( v5 <= 0x22 ) { LABEL_21: std::string::assign(v13, "The Safe"); v4 = "Every past Daily, Weekly, and Event level.\n" "Safe: Unlock a past level with Demon Keys and play it as it originally appeared. Dailies give" " Stars only, with no diamonds or orbs. Weekly and Event levels still give their c" "hest rewards.\n" "Check: Show only levels you have not beaten.\n" "Clock: Play levels as normal online levels."; goto LABEL_24; } } else { if ( v5 == 28 ) { std::string::assign(v13, "Weekly Levels"); v4 = "New levels are released every week.\nCheck back later for more updates!"; goto LABEL_24; } if ( v5 == 29 ) { std::string::assign(v13, "Bonus Levels"); v4 = "New levels are released from time to time.\nCheck back later for more updates!"; goto LABEL_24; } } LABEL_25: if ( (v13[0] & 1) != 0 ) v6 = v14; else v6 = (cocos2d::CCLabelBMFont *)((char *)v13 + 1); if ( (v15[0] & 1) != 0 ) v7 = v16; else v7 = (char *)v15 + 1; memset(v20, 0, sizeof(v20)); v8 = strlen(v7); std::string::__init(v20, v7, v8); if ( (v17 & 1) != 0 ) { v9 = v18; if ( v18 ) v9 = v19; } else { v9 = (int)(unsigned __int8)v17 >> 1; if ( v9 ) v9 = (int)&v17 + 1; } v10 = FLAlertLayer::create((int)this + 444, v6, (int)v20, (ButtonSprite *)"OK", (ButtonSprite *)v9, 380.0); std::string::~string((int)v20); if ( (v17 & 1) != 0 ) v11 = v18; else v11 = (int)(unsigned __int8)v17 >> 1; if ( v11 ) (*(void (__fastcall **)(int *, int, int))(*v10 + 36))(v10, 6, (unsigned __int8)v17 << 31); (*(void (__fastcall **)(int *))(*v10 + 656))(v10); std::string::~string((int)&v17); std::string::~string((int)v15); return std::string::~string((int)v13); }
GD Web Decomp Icon

GD Web Decomp

Raw Source