// // LevelBrowserLayer::onInfo from 0x10041692c to 0x100416ba8 (636 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x10041540c // // 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 __fastcall LevelBrowserLayer::onInfo(LevelBrowserLayer *a1, cocos2d::CCObject *a2) { GJSearchObject *m_searchObject; // x8 const std::string::value_type *v4; // x1 SearchType m_searchType; // w8 std::string *v6; // x20 std::string *v7; // x1 std::string *v8; // x4 FLAlertLayer *v9; // x19 std::string::size_type size; // x8 void *__p[2]; // [xsp+0h] [xbp-70h] BYREF char v12; // [xsp+17h] [xbp-59h] std::string v13; // [xsp+18h] [xbp-58h] BYREF std::string v14; // [xsp+30h] [xbp-40h] BYREF std::string v15; // [xsp+48h] [xbp-28h] BYREF sub_100009900(&v15, "Info"); sub_100009900( &v14, "Green users are unregistered.\n" "Gold users are unique registered.\n" "Blue songs are official.\n" "Purple songs are custom."); sub_100009900(&v13, ""); m_searchObject = a1->m_searchObject; if ( !m_searchObject ) goto LABEL_15; if ( m_searchObject->m_searchMode == 1 ) { std::string::assign(&v15, "Lists"); std::string::assign( &v14, "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 ( a1->m_searchObject->m_searchType != (Recent|MostLiked) ) goto LABEL_15; std::string::assign(&v15, "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."; } else { std::string::assign(&v15, "Levels"); std::string::assign( &v14, "A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set by " "community 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 i" "f it is official and pink if it is custom."); m_searchType = a1->m_searchObject->m_searchType; if ( m_searchType > Sent ) { if ( m_searchType == FeaturedLite ) { std::string::assign(&v15, "Weekly Levels"); v4 = "New levels are released every week.\nCheck back later for more updates!"; } else { if ( m_searchType != (FeaturedLite|Downloaded) ) goto LABEL_15; std::string::assign(&v15, "Bonus Levels"); v4 = "New levels are released from time to time.\nCheck back later for more updates!"; } } else if ( m_searchType == (Recent|MostLiked) ) { std::string::assign(&v13, "Info"); std::string::assign(&v15, "Featured"); v4 = "Levels on this list have been rated and featured by RobTop. The extra visual around the difficulty face indic" "ates how much he likes a specific level. In order of increasing quality:\n" "Featured, Epic, Legendary, and Mythic."; } else { if ( m_searchType != (Sends|Downloaded) ) goto LABEL_15; std::string::assign(&v15, "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."; } } std::string::assign(&v14, v4); LABEL_15: if ( (v15.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v6 = &v15; else v6 = (std::string *)v15.__r_.__value_.__r.__words[0]; if ( (v14.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v7 = &v14; else v7 = (std::string *)v14.__r_.__value_.__r.__words[0]; sub_100009900(__p, (char *)v7); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) { if ( v13.__r_.__value_.__l.__size_ ) v8 = (std::string *)v13.__r_.__value_.__r.__words[0]; else v8 = nullptr; } else if ( *((_BYTE *)&v13.__r_.__value_.__s + 23) ) { v8 = &v13; } else { v8 = nullptr; } v9 = FLAlertLayer::create_1( (__int64)&a1->FLAlertLayerProtocol, (__int64)v6, (__int64)__p, (__int64)"OK", (__int64)v8, 380.0); if ( v12 < 0 ) operator delete(__p[0]); size = HIBYTE(v13.__r_.__value_.__r.__words[2]); if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) != 0LL ) size = v13.__r_.__value_.__l.__size_; if ( size ) ((void (__fastcall *)(FLAlertLayer *, __int64))v9->setTag)(v9, 6); ((void (__fastcall *)(FLAlertLayer *))v9->show)(v9); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v13.__r_.__value_.__l.__data_); if ( SHIBYTE(v14.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v14.__r_.__value_.__l.__data_); if ( SHIBYTE(v15.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v15.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source