// // LevelBrowserLayer::onInfo from 0x10048dbf0 to 0x10048df20 (816 bytes) // // 1 xrefs: // > LevelBrowserLayer::init @ 0x10048c21c // // 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) { double v2; // xmm0_8 LevelBrowserLayer *v3; // rbx GJSearchObject *m_searchObject; // rax const std::string::value_type *v5; // rsi std::string::pointer data; // r14 const char *v7; // r15 size_t v8; // rax size_t v9; // r12 char *v10; // r13 char *v11; // rbx size_t v12; // r14 FLAlertLayerProtocol *v13; // rbx std::string::pointer v14; // r8 __int64 v15; // rbx _QWORD __dst[2]; // [rsp+8h] [rbp-88h] BYREF void *__p; // [rsp+18h] [rbp-78h] std::string v18; // [rsp+20h] [rbp-70h] BYREF std::string __src; // [rsp+38h] [rbp-58h] BYREF std::string v20; // [rsp+50h] [rbp-40h] BYREF v3 = a1; v20.__r_.__value_.__s.0 = (std::string::__short::$7162EEB0FEF29CC674EFA33D0008C7E0)8; strcpy(v20.__r_.__value_.__s.__data_, "Info"); __src.__r_.__value_.__r.__words[2] = (std::string::size_type)operator new(0x98u); __src.__r_.__value_.__r.__words[0] = 153; __src.__r_.__value_.__l.__size_ = 145; strcpy( __src.__r_.__value_.__l.__data_, "Green users are unregistered.\n" "Gold users are unique registered.\n" "Blue songs are official.\n" "Purple songs are custom."); *(_WORD *)&v18.__r_.__value_.__l.0 = 0; m_searchObject = a1->m_searchObject; if ( m_searchObject ) { if ( m_searchObject->m_searchMode == 1 ) { std::string::assign(&v20, "Lists"); std::string::assign( &__src, "A list may have rewards if it is rated by RobTop. The difficulty face is manually set by the creator of " "the list.\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."); if ( a1->m_searchObject->m_searchType == (Recent|MostLiked) ) { std::string::assign(&v20, "Top Lists"); v5 = "These lists have been rated by RobTop. The rewards for each one are also decided by him and are var" "iable from list to list. Note that rated lists can only be Featured and do not reward Creator Points."; LABEL_10: std::string::assign(&__src, v5); } } else { std::string::assign(&v20, "Levels"); std::string::assign( &__src, "A level rewards Stars if it is rated by RobTop. For unrated levels, the difficulty face is set b" "y 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" " if it is official and pink if it is custom."); switch ( a1->m_searchObject->m_searchType ) { case Recent|MostLiked: std::string::assign(&v18, "Info"); std::string::assign(&v20, "Featured"); v5 = "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."; goto LABEL_10; case Sends|Downloaded: std::string::assign(&v20, "Map Packs"); v5 = "Map Packs are collections of 3 rated levels of similar difficulty set by RobTop. Once completed, " "they reward Stars and Secret Coins."; goto LABEL_10; case FeaturedLite: std::string::assign(&v20, "Weekly Levels"); v5 = "New levels are released every week.\nCheck back later for more updates!"; goto LABEL_10; case FeaturedLite|Downloaded: std::string::assign(&v20, "Bonus Levels"); v5 = "New levels are released from time to time.\nCheck back later for more updates!"; goto LABEL_10; default: break; } } } if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) { data = v20.__r_.__value_.__l.__data_; if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_13: v7 = __src.__r_.__value_.__s.__data_; goto LABEL_16; } } else { data = v20.__r_.__value_.__s.__data_; if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) goto LABEL_13; } v7 = __src.__r_.__value_.__l.__data_; LABEL_16: v8 = strlen(v7); if ( v8 >= 0xFFFFFFFFFFFFFFF8LL ) sub_100006BF0(v2); v9 = v8; if ( v8 >= 0x17 ) { v11 = data; v12 = 26; if ( (v8 | 7) != 0x17 ) v12 = (v8 | 7) + 1; v10 = (char *)operator new(v12); __p = v10; __dst[0] = v12 | 1; __dst[1] = v9; data = v11; v3 = a1; goto LABEL_23; } LOBYTE(__dst[0]) = 2 * v8; v10 = (char *)__dst + 1; if ( v8 ) LABEL_23: memmove(v10, v7, v9); v13 = &v3->FLAlertLayerProtocol; v10[v9] = 0; if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) { if ( v18.__r_.__value_.__l.__size_ ) v14 = v18.__r_.__value_.__l.__data_; else v14 = nullptr; } else { v14 = nullptr; if ( v18.__r_.__value_.__s.0 ) v14 = v18.__r_.__value_.__s.__data_; } v15 = FLAlertLayer::create_1(v13, data, __dst, "OK", v14, 380.0); if ( (__dst[0] & 1) != 0 ) operator delete(__p); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) == 0 ) { if ( !(*(_BYTE *)&v18.__r_.__value_.__l.0 >> 1) ) goto LABEL_38; goto LABEL_37; } if ( v18.__r_.__value_.__l.__size_ ) LABEL_37: (*(void (__fastcall **)(__int64, __int64))(*(_QWORD *)v15 + 72LL))(v15, 6); LABEL_38: (*(void (__fastcall **)(__int64))(*(_QWORD *)v15 + 1288LL))(v15); if ( (*(_BYTE *)&v18.__r_.__value_.__s.0 & 1) != 0 ) { operator delete(v18.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { LABEL_40: if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) == 0 ) return; goto LABEL_41; } } else if ( (*(_BYTE *)&__src.__r_.__value_.__s.0 & 1) == 0 ) { goto LABEL_40; } operator delete(__src.__r_.__value_.__l.__data_); if ( (*(_BYTE *)&v20.__r_.__value_.__s.0 & 1) != 0 ) LABEL_41: operator delete(v20.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source