// // LevelPage::onInfo from 0x100403b34 to 0x100403da4 (624 bytes) // // 1 xrefs: // > LevelSelectLayer::onInfo @ 0x1004023b0 // // 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 LevelPage::onInfo(LevelPage *a1, cocos2d::CCObject *a2) { GJGameLevel *m_level; // x0 int v4; // w8 char *v5; // x1 FLAlertLayer *v6; // x19 char *v7; // x1 FLAlertLayer *v8; // x19 int v9; // w21 void **v10; // x20 int random; // w22 int seed; // w23 int v13; // w24 int v14; // w25 int NormalPercent; // w0 void **v16; // x10 cocos2d::CCString *v17; // x0 char *CString; // x0 char *v19; // x1 FLAlertLayer *v20; // x19 void *v21[2]; // [xsp+28h] [xbp-B8h] BYREF char v22; // [xsp+3Fh] [xbp-A1h] void *__dst[2]; // [xsp+40h] [xbp-A0h] BYREF char *longStorage; // [xsp+50h] [xbp-90h] void *v25[2]; // [xsp+58h] [xbp-88h] BYREF char v26; // [xsp+6Fh] [xbp-71h] void *__p[2]; // [xsp+70h] [xbp-70h] BYREF char v28; // [xsp+87h] [xbp-59h] void *v29[2]; // [xsp+88h] [xbp-58h] BYREF char v30; // [xsp+9Fh] [xbp-41h] m_level = a1->m_level; if ( m_level ) { v4 = m_level->m_levelID.random - m_level->m_levelID.seed; if ( v4 == -2 ) { sub_100009900( v29, "The path leads to an old tower. It's been left alone for years, with little reason to explore."); if ( v30 >= 0 ) v7 = (char *)v29; else v7 = (char *)v29[0]; sub_100009900(v25, v7); v8 = FLAlertLayer::create_1(0, (__int64)"The Tower", (__int64)v25, (__int64)"OK", 0, 360.0); if ( v26 < 0 ) operator delete(v25[0]); ((void (__fastcall *)(FLAlertLayer *))v8->show)(v8); } else if ( v4 == -1 ) { sub_100009900(v29, "Roses are red\nViolets are blue\nWelcome to\n2.2"); if ( v30 >= 0 ) v5 = (char *)v29; else v5 = (char *)v29[0]; sub_100009900(__p, v5); v6 = FLAlertLayer::create_1(0, (__int64)"It's a secret...", (__int64)__p, (__int64)"OK", 0, 360.0); if ( v28 < 0 ) operator delete(__p[0]); ((void (__fastcall *)(FLAlertLayer *))v6->show)(v6); } else { if ( m_level->m_levelName.m_data.m_short.shortStorage.__elems_[22] < 0 ) { sub_1000097D0( __dst, (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 *)__dst = *(_OWORD *)&m_level->m_levelName.m_data.m_short.sizex2; longStorage = m_level->m_levelName.m_data.m_long.longStorage; } v9 = SHIBYTE(longStorage); v10 = (void **)__dst[0]; random = m_level->m_attempts.random; seed = m_level->m_attempts.seed; v13 = m_level->m_jumps.random; v14 = m_level->m_jumps.seed; NormalPercent = GJGameLevel::getNormalPercent(m_level); v16 = __dst; if ( v9 < 0 ) v16 = v10; v17 = (cocos2d::CCString *)sub_100268F4C( "%s\n" "Total Attempts: %i\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", (const char *)v16, random - seed, v13 - v14, NormalPercent, a1->m_level->m_practicePercent); CString = (char *)cocos2d::CCString::getCString(v17); sub_100009900(v29, CString); if ( SHIBYTE(longStorage) < 0 ) operator delete(__dst[0]); if ( v30 >= 0 ) v19 = (char *)v29; else v19 = (char *)v29[0]; sub_100009900(v21, v19); v20 = FLAlertLayer::create_1(0, (__int64)"Level Stats", (__int64)v21, (__int64)"OK", 0, 300.0); if ( v22 < 0 ) operator delete(v21[0]); ((void (__fastcall *)(FLAlertLayer *))v20->show)(v20); } if ( v30 < 0 ) operator delete(v29[0]); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source