// // GJBaseGameLayer::updateLevelColors from 0x58c50c to 0x58c77a (622 bytes) // // 10 xrefs: // > PlayLayer::setupHasCompleted @ 0x40a690 // > PlayLayer::setupHasCompleted @ 0x40a898 // > PlayLayer::postUpdate @ 0x40cca6 // > PlayLayer::resetLevel @ 0x4128e2 // > LevelEditorLayer::onPlaytest @ 0x46851e // > LevelEditorLayer::postUpdate @ 0x46ad86 // > LevelEditorLayer::updateGameObjects @ 0x46cec0 // > GJBaseGameLayer::asyncBGLoaded @ 0x58c792 // > GJBaseGameLayer::asyncGLoaded @ 0x58c7de // > GJBaseGameLayer::asyncMGLoaded @ 0x58c7f0 // // This function is hookable on this platform (idp: arm, 32 bit: True, 64 bit: False! // // Using BromaIDA 8.3.0 @ https://github.com/Stazzical/BromaIDA // Using bindings at commit 1c6ec395 at Thu Nov 26 21:29:22 2026 from https://github.com/geode-sdk/bindings // Generated at Fri, 27 Nov 2026 11:53:03 +0000 // int __fastcall GJBaseGameLayer::updateLevelColors(GJBaseGameLayer *this) { int active; // r0 char v3; // r3 int v4; // r0 int v5; // r0 int v6; // r0 int v7; // r0 char v8; // r3 GJEffectManager *v9; // r0 float v10; // s16 int v11; // r5 int shouldBlend; // r0 int v13; // r5 int v14; // r0 int result; // r0 unsigned int v16; // r5 int v17; // r0 unsigned int v18; // r5 int v19; // r0 unsigned int v20; // r5 float v21; // r0 unsigned int v22; // r5 float v23; // r0 int v24; // r5 int v25; // r0 int v26; // r5 int v27; // r0 unsigned __int8 v28[4]; // [sp+4h] [bp-1Ch] _BYTE v29[4]; // [sp+8h] [bp-18h] BYREF int v30; // [sp+Ch] [bp-14h] _BYTE v31[4]; // [sp+10h] [bp-10h] BYREF int v32; // [sp+14h] [bp-Ch] int v33; // [sp+18h] [bp-8h] active = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1000); v3 = BYTE1(active); v29[0] = active; v29[2] = BYTE2(active); v4 = *((_DWORD *)this + 612); v29[1] = v3; (*(void (__fastcall **)(int, _BYTE *))(*(_DWORD *)v4 + 480))(v4, v29); v5 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1001); LOWORD(v30) = v5; BYTE2(v30) = BYTE2(v5); GJGroundLayer::updateGround01Color(*((_DWORD *)this + 614), v30); GJGroundLayer::updateGround01Color(*((_DWORD *)this + 615), v30); if ( *(_DWORD *)(*((_DWORD *)this + 614) + 320) ) { v6 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1009); LOWORD(v33) = v6; BYTE2(v33) = BYTE2(v6); GJGroundLayer::updateGround02Color(*((_DWORD *)this + 614), v33); GJGroundLayer::updateGround02Color(*((_DWORD *)this + 615), v33); } v7 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1002); v8 = BYTE1(v7); v31[0] = v7; v31[2] = BYTE2(v7); v9 = *((GJEffectManager **)this + 381); v31[1] = v8; v10 = COERCE_FLOAT(GJEffectManager::activeOpacityForIndex(v9, 1002)); (*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*((_DWORD *)this + 614) + 328) + 480))( *(_DWORD *)(*((_DWORD *)this + 614) + 328), v31); (*(void (__fastcall **)(_DWORD, _BYTE *))(**(_DWORD **)(*((_DWORD *)this + 615) + 328) + 480))( *(_DWORD *)(*((_DWORD *)this + 615) + 328), v31); *(_DWORD *)v28 = (unsigned int)(float)(v10 * 255.0); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 614) + 328) + 456))( *(_DWORD *)(*((_DWORD *)this + 614) + 328), v28[0]); (*(void (__fastcall **)(_DWORD, _DWORD))(**(_DWORD **)(*((_DWORD *)this + 615) + 328) + 456))( *(_DWORD *)(*((_DWORD *)this + 615) + 328), v28[0]); v11 = *((_DWORD *)this + 614); shouldBlend = GJEffectManager::shouldBlend(*((GJEffectManager **)this + 381), 1002); GJGroundLayer::updateLineBlend(v11, shouldBlend); v13 = *((_DWORD *)this + 615); v14 = GJEffectManager::shouldBlend(*((GJEffectManager **)this + 381), 1002); result = GJGroundLayer::updateLineBlend(v13, v14); v16 = *((_DWORD *)this + 616); if ( v16 ) { v17 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1013); LOWORD(v32) = v17; BYTE2(v32) = BYTE2(v17); GJMGLayer::updateGroundColor(v16, v32, 1); v18 = *((_DWORD *)this + 616); v19 = GJEffectManager::activeColorForIndex(*((GJEffectManager **)this + 381), 1014); LOWORD(v33) = v19; BYTE2(v33) = BYTE2(v19); GJMGLayer::updateGroundColor(v18, v33, 0); v20 = *((_DWORD *)this + 616); v21 = COERCE_FLOAT(GJEffectManager::activeOpacityForIndex(*((GJEffectManager **)this + 381), 1013)); GJMGLayer::updateGroundOpacity(v20, (unsigned __int8)(unsigned int)(float)(v21 * 255.0), 1); v22 = *((_DWORD *)this + 616); v23 = COERCE_FLOAT(GJEffectManager::activeOpacityForIndex(*((GJEffectManager **)this + 381), 1014)); GJMGLayer::updateGroundOpacity(v22, (unsigned __int8)(unsigned int)(float)(v23 * 255.0), 0); v24 = *((_DWORD *)this + 616); v25 = GJEffectManager::shouldBlend(*((GJEffectManager **)this + 381), 1013); GJMGLayer::updateMG01Blend(v24, v25); v26 = *((_DWORD *)this + 616); v27 = GJEffectManager::shouldBlend(*((GJEffectManager **)this + 381), 1014); return GJMGLayer::updateMG02Blend(v26, v27); } return result; }
GD Web Decomp Icon

GD Web Decomp

Raw Source