// // GameLevelManager::getLengthStr from 0x3c095c to 0x3c0a82 (294 bytes) // // 1 xrefs: // > LevelSearchLayer::getLevelLenKey @ 0x3acef0 // // 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 // GameLevelManager *__fastcall GameLevelManager::getLengthStr( GameLevelManager *this, bool a2, int a3, _BOOL4 a4, bool a5, bool a6, bool a7, char a8) { int v10; // r6 const char *v11; // r1 int v12; // r4 _BOOL4 v13; // r3 cocos2d::CCString *v14; // r0 char *CString; // r0 cocos2d::CCString *v16; // r0 char *v17; // r1 GameLevelManager *v18; // r0 _BOOL4 v19; // r7 GameLevelManager_vtbl *v22; // [sp+1Ch] [bp-10h] BYREF _BYTE v23[4]; // [sp+20h] [bp-Ch] BYREF v10 = 1; sub_776584((int)&v22, (char *)&unk_939830); v11 = nullptr; v12 = 0; while ( 2 ) { switch ( v10 ) { case 2: v13 = a4; goto LABEL_22; case 3: v13 = a5; goto LABEL_22; case 4: v13 = a6; goto LABEL_22; case 5: v13 = a7; LABEL_22: if ( !v13 ) goto LABEL_10; goto LABEL_6; case 6: if ( !a8 ) goto LABEL_12; goto LABEL_6; default: if ( a3 ) { LABEL_6: if ( v12 ) sub_774544((int)&v22, ","); v14 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(v10 - 1)); CString = (char *)cocos2d::CCString::getCString(v14); sub_774544((int)&v22, CString); ++v12; v11 = (const char *)(v10 - 1); } if ( v10 != 6 ) { LABEL_10: ++v10; continue; } LABEL_12: if ( v12 == 1 ) { v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v11); v17 = (char *)cocos2d::CCString::getCString(v16); v18 = this; goto LABEL_17; } sub_776584((int)v23, (char *)&unk_939830); v19 = sub_3BE0D8((int)&v22, (int)v23); sub_774008(v23); if ( v19 ) { v18 = this; v17 = "-"; LABEL_17: sub_776584((int)v18, v17); } else { this->__vftable = v22; v22 = (GameLevelManager_vtbl *)&unk_ACDDA8; } sub_774008(&v22); return this; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source