// // GameLevelManager::getDifficultyStr from 0x3c07e8 to 0x3c092e (326 bytes) // // 1 xrefs: // > LevelSearchLayer::getSearchDiffKey @ 0x3acbb4 // // 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::getDifficultyStr( GameLevelManager *this, bool a2, int a3, int a4, bool a5, bool a6, bool a7, bool a8, bool a9, unsigned __int8 a10) { int v11; // r7 char *v12; // r1 int v13; // r5 const char *v14; // r1 _BOOL4 v15; // r3 cocos2d::CCString *v16; // r0 char *CString; // r0 cocos2d::CCString *v18; // r0 char *v19; // r1 GameLevelManager *v20; // r0 _BOOL4 v21; // r7 GameLevelManager_vtbl *v24; // [sp+1Ch] [bp-10h] BYREF _BYTE v25[4]; // [sp+20h] [bp-Ch] BYREF v11 = a10; if ( a3 ) { v12 = "-1"; LABEL_7: sub_776584((int)this, v12); return this; } if ( a9 ) { v12 = "-2"; goto LABEL_7; } if ( a10 ) { v12 = "-3"; goto LABEL_7; } sub_776584((int)&v24, (char *)&unk_939830); v13 = 2; v14 = nullptr; while ( 2 ) { switch ( v13 ) { case 3: v15 = a5; goto LABEL_27; case 4: v15 = a6; goto LABEL_27; case 5: v15 = a7; LABEL_27: if ( !v15 ) goto LABEL_16; goto LABEL_12; case 6: if ( !a8 ) goto LABEL_18; goto LABEL_12; default: if ( a4 ) { LABEL_12: if ( v11 ) sub_774544((int)&v24, ","); v16 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"%i", (const char *)(v13 - 1)); CString = (char *)cocos2d::CCString::getCString(v16); sub_774544((int)&v24, CString); ++v11; v14 = (const char *)(v13 - 1); } if ( v13 != 6 ) { LABEL_16: ++v13; continue; } LABEL_18: if ( v11 == 1 ) { v18 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat((cocos2d::CCString *)"%i", v14); v19 = (char *)cocos2d::CCString::getCString(v18); v20 = this; goto LABEL_22; } sub_776584((int)v25, (char *)&unk_939830); v21 = sub_3BE0D8((int)&v24, (int)v25); sub_774008(v25); if ( v21 ) { v20 = this; v19 = "-"; LABEL_22: sub_776584((int)v20, v19); } else { this->__vftable = v24; v24 = (GameLevelManager_vtbl *)&unk_ACDDA8; } sub_774008(&v24); return this; } } }
GD Web Decomp Icon

GD Web Decomp

Raw Source