// // EditLevelLayer::onLevelInfo from 0x1000eb534 to 0x1000eb69c (360 bytes) // // 1 xrefs: // > EditLevelLayer::init @ 0x1000e9e48 // // 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 EditLevelLayer::onLevelInfo(EditLevelLayer *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // x8 void **v4; // x9 cocos2d::CCString *v5; // x0 char *CString; // x0 std::string *v7; // x1 __int64 v8; // x19 void *v9[2]; // [xsp+28h] [xbp-58h] BYREF char v10; // [xsp+3Fh] [xbp-41h] void *__p[2]; // [xsp+40h] [xbp-40h] BYREF char *longStorage; // [xsp+50h] [xbp-30h] std::string v13; // [xsp+58h] [xbp-28h] BYREF m_level = a1->m_level; if ( m_level->m_levelName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0(__p, (void *)m_level->m_levelName.m_data.m_long.capacitym1, m_level->m_levelName.m_data.m_long.size); m_level = a1->m_level; } else { *(_OWORD *)__p = *(_OWORD *)&m_level->m_levelName.m_data.m_short.sizex2; longStorage = m_level->m_levelName.m_data.m_long.longStorage; } v4 = __p; if ( SHIBYTE(longStorage) < 0 ) v4 = (void **)__p[0]; v5 = (cocos2d::CCString *)sub_100268F4C( "%s\nTotal Attempts: %i\nTotal Jumps: %i\nObjects: %i", (const char *)v4, m_level->m_attempts.random - m_level->m_attempts.seed, m_level->m_jumps.random - m_level->m_jumps.seed, m_level->m_objectCount.random - m_level->m_objectCount.seed); CString = (char *)cocos2d::CCString::getCString(v5); sub_100009900(&v13, CString); if ( SHIBYTE(longStorage) < 0 ) operator delete(__p[0]); if ( a1->m_level->m_objectCount.random - a1->m_level->m_objectCount.seed >= 40001 ) std::string::append(&v13, " (high)"); if ( (v13.__r_.__value_.__r.__words[2] & 0x8000000000000000LL) == 0LL ) v7 = &v13; else v7 = (std::string *)v13.__r_.__value_.__r.__words[0]; sub_100009900(v9, (char *)v7); v8 = FLAlertLayer::create_1(0, "Level Stats", v9, "OK", 0, 300.0); if ( v10 < 0 ) operator delete(v9[0]); (*(void (__fastcall **)(__int64))(*(_QWORD *)v8 + 1288LL))(v8); if ( SHIBYTE(v13.__r_.__value_.__r.__words[2]) < 0 ) operator delete(v13.__r_.__value_.__l.__data_); }
GD Web Decomp Icon

GD Web Decomp

Raw Source