// // WorldLevelPage::onInfo from 0x95e6f0 to 0x95e988 (664 bytes) // // 3 xrefs: // > @ 0x451f8 // > WorldLevelPage::init @ 0x962664 // > @ 0x122a350 // // 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 WorldLevelPage::onInfo(WorldLevelPage *a1, cocos2d::CCObject *a2) { const char *v3; // x24 GJGameLevel *m_level; // x0 unsigned int v5; // w23 unsigned int v6; // w22 unsigned int NormalPercent; // w0 cocos2d::CCString *v8; // x0 char *CString; // x0 char *v10; // x0 FLAlertLayer *v11; // x22 char *v12; // x0 char *v13; // x0 unsigned int *v14; // x1 int v15; // w2 unsigned int *v16; // x1 int v17; // w2 unsigned int *v18; // x1 int v19; // w2 char *v20; // [xsp+58h] [xbp+58h] BYREF const char *v21; // [xsp+60h] [xbp+60h] BYREF if ( a1->m_level ) { sub_D18D28(&v21); v3 = v21; m_level = a1->m_level; v5 = m_level->m_attempts.random - m_level->m_attempts.seed; v6 = m_level->m_jumps.random - m_level->m_jumps.seed; NormalPercent = GJGameLevel::getNormalPercent(m_level); v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\n" "Total Attempts: %i\n" "Total Jumps: %i\n" "Normal: %i%%\n" "Practice: %i%%", v3, v5, v6, NormalPercent, (unsigned int)a1->m_level->m_practicePercent); CString = (char *)cocos2d::CCString::getCString(v8); sub_D153B8((int)&v20, CString); v10 = (char *)(v21 - 24); if ( v21 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v14 = (unsigned int *)(v21 - 8); do v15 = __ldaxr(v14); while ( __stlxr(v15 - 1, v14) ); } else { v15 = *((_DWORD *)v21 - 2); *((_DWORD *)v21 - 2) = v15 - 1; } if ( v15 <= 0 ) operator delete(v10); } sub_D153B8((int)&v21, v20); v11 = FLAlertLayer::create(0, (__int64)"Level Stats", (__int64)&v21); v12 = (char *)(v21 - 24); if ( v21 - 24 != (const char *)&qword_124B6B0 ) { if ( &pthread_create ) { v16 = (unsigned int *)(v21 - 8); do v17 = __ldaxr(v16); while ( __stlxr(v17 - 1, v16) ); } else { v17 = *((_DWORD *)v21 - 2); *((_DWORD *)v21 - 2) = v17 - 1; } if ( v17 <= 0 ) operator delete(v12); } v11->show(v11); v13 = v20 - 24; if ( v20 - 24 != (char *)&qword_124B6B0 ) { if ( &pthread_create ) { v18 = (unsigned int *)(v20 - 8); do v19 = __ldaxr(v18); while ( __stlxr(v19 - 1, v18) ); } else { v19 = *((_DWORD *)v20 - 2); *((_DWORD *)v20 - 2) = v19 - 1; } if ( v19 <= 0 ) operator delete(v13); } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source