// // InfoLayer::onLevelInfo from 0x42f054 to 0x42f286 (562 bytes) // // 0 xrefs: // // 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 InfoLayer::onLevelInfo(InfoLayer *a1, cocos2d::CCObject *a2) { GJLevelList *m_levelList; // r0 GameLevelManager *v4; // r0 GJGameLevel *SavedLevel; // r5 GameManager *v6; // r0 int v7; // r8 cocos2d::CCString *v8; // r0 char *CString; // r0 cocos2d::CCString *v10; // r0 char *v11; // r0 int random; // r2 int seed; // r3 cocos2d::CCString *v14; // r0 char *v15; // r0 float v16; // s15 FLAlertLayer *v17; // r5 int v18; // [sp+Ch] [bp-28h] char *v19; // [sp+14h] [bp-20h] BYREF int v20; // [sp+18h] [bp-1Ch] BYREF char *v21; // [sp+1Ch] [bp-18h] BYREF _BYTE v22[4]; // [sp+20h] [bp-14h] BYREF _BYTE v23[4]; // [sp+24h] [bp-10h] BYREF char *v24; // [sp+28h] [bp-Ch] BYREF m_levelList = a1->m_levelList; if ( m_levelList ) { GJLevelList::showListInfo(m_levelList); } else { v4 = GameLevelManager::sharedState(); SavedLevel = GameLevelManager::getSavedLevel(v4, a1->m_level); if ( !SavedLevel ) SavedLevel = a1->m_level; sub_775C20(&v19); sub_775C20(&v20); if ( !*((_DWORD *)v19 - 3) ) sub_7753D4((int)&v19, "NA"); if ( !*(_DWORD *)(v20 - 12) ) sub_7753D4((int)&v20, "NA"); sub_776584((int)&v21, (char *)&unk_939830); v6 = GameManager::sharedState(); if ( GameManager::getGameVariable(v6, "0089") || a1->m_score ) { sub_776584((int)v22, "(No description provided)"); GJGameLevel::getUnpackedLevelDescription((GJGameLevel *)&v24, (stl::StringData::Internal *)SavedLevel); sub_776584((int)v23, (char *)&unk_939830); v18 = sub_774DBC(&v24, v23); sub_774008(v23); if ( v18 ) sub_7753D4((int)v22, v24); sub_77441C(&v21, v22); sub_774544((int)&v21, "\n\n"); sub_774008(&v24); sub_774008(v22); v7 = 1; } else { v7 = 0; } v8 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"Uploaded: %s ago\nUpdated: %s ago", v19, v20); CString = (char *)cocos2d::CCString::getCString(v8); sub_774544((int)&v21, CString); if ( SavedLevel->m_starsRequested > 0 ) { sub_776584((int)&v24, "Stars"); if ( GJGameLevel::isPlatformer(SavedLevel) ) sub_7753D4((int)&v24, "Moons"); v10 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\n%s Requested: %i", v21, v24, SavedLevel->m_starsRequested); v11 = (char *)cocos2d::CCString::getCString(v10); sub_7753D4((int)&v21, v11); sub_774008(&v24); } random = SavedLevel->m_originalLevel.random; seed = SavedLevel->m_originalLevel.seed; if ( random != seed ) { v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%s\nOriginal: %i", v21, random - seed); v15 = (char *)cocos2d::CCString::getCString(v14); sub_7753D4((int)&v21, v15); } sub_776584((int)&v24, v21); v16 = 380.0; if ( !v7 ) v16 = 300.0; v17 = FLAlertLayer::create(0, (int)"Level Info", (int)&v24, (int)"OK", 0, v16); sub_774008(&v24); v17->show(v17); sub_774008(&v21); sub_774008(&v20); sub_774008(&v19); } }
GD Web Decomp Icon

GD Web Decomp

Raw Source