// // EndLevelLayer::getCoinString from 0x427b10 to 0x427c4a (314 bytes) // // 1 xrefs: // > EndLevelLayer::customSetup @ 0x42978a // // 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 // EndLevelLayer *__fastcall EndLevelLayer::getCoinString(EndLevelLayer *this, int a2) { int *v4; // r5 int v5; // r3 int v6; // r0 int v7; // r7 int v8; // r1 cocos2d::CCString *v9; // r0 char *CString; // r0 int v11; // r2 _BOOL4 v12; // r11 _BOOL4 v13; // r5 _BOOL4 v14; // r7 int v15; // r3 char *v17; // [sp+8h] [bp-Ch] BYREF if ( *(_DWORD *)(a2 + 480) ) { sub_776584((int)&v17, "all coins"); v4 = *(int **)(*(_DWORD *)(a2 + 480) + 1544); v5 = v4[165]; v6 = v4[166]; v7 = v4[168]; v8 = v4[169]; if ( v4[151] <= 1 || (v11 = v4[162] - v4[163] - 1, v12 = v4[162] - v4[163] == 1, v13 = v5 - v6 == 1, v14 = v7 - v8 == 1, v11) && v5 - v6 != 1 && !v14 ) { LABEL_4: v9 = (cocos2d::CCString *)cocos2d::CCString::createWithFormat( (cocos2d::CCString *)"You need to collect %s to verify the level!", v17); CString = (char *)cocos2d::CCString::getCString(v9); sub_776584((int)this, CString); sub_774008(&v17); return this; } sub_7753D4((int)&v17, "coin "); if ( v12 ) { if ( v13 ) { v15 = 1; goto LABEL_15; } } else { sub_774544((int)&v17, "1"); if ( v13 ) { LABEL_12: v15 = 0; LABEL_15: if ( !v14 && *(int *)(*(_DWORD *)(*(_DWORD *)(a2 + 480) + 1544) + 604) > 2 ) { if ( !v15 ) sub_774544((int)&v17, ", "); sub_774544((int)&v17, "3"); } goto LABEL_4; } sub_774544((int)&v17, ", "); } sub_774544((int)&v17, "2"); goto LABEL_12; } sub_776584((int)this, (char *)&unk_939830); return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source