// // ColorAction::step from 0x5c294c to 0x5c2a38 (236 bytes) // // 4 xrefs: // > LevelEditorLayer::runColorEffect @ 0x461bec // > LevelEditorLayer::stopTriggersInGroup @ 0x4677d2 // > GJBaseGameLayer::updateColor @ 0x58b508 // > GJEffectManager::updateColorEffects @ 0x5c36e8 // // 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:50 +0000 // int __fastcall ColorAction::step(int this, float a2) { int v2; // r4 float v3; // s15 float v4; // s17 float v5; // s16 float v6; // s17 int v7; // r3 char v8; // r3 int v9; // r0 float v10; // s15 v2 = this; if ( !*(_BYTE *)(this + 52) && !*(_BYTE *)(this + 53) ) { v3 = a2 + *(float *)(this + 64); v4 = *(float *)(this + 76); v5 = v3 + *(float *)(this + 148); *(float *)(this + 64) = v3; if ( v5 < v4 ) { if ( v5 > 0.0 ) { v6 = v5 / v4; if ( v6 >= 1.0 ) goto LABEL_6; if ( v6 > 0.0 ) { v9 = GameToolbox::multipliedColorValue( *(_DWORD *)(this + 68), *(unsigned __int8 *)(this + 71) | (*(unsigned __int8 *)(this + 72) << 8) | (*(unsigned __int8 *)(this + 73) << 16), v6); v10 = *(float *)(v2 + 92) + (float)((float)(*(float *)(v2 + 96) - *(float *)(v2 + 92)) * v6); *(_WORD *)(v2 + 54) = v9; this = BYTE2(v9); *(_BYTE *)(v2 + 56) = this; *(float *)(v2 + 60) = v10; goto LABEL_11; } } v8 = *(_BYTE *)(this + 70); *(_WORD *)(this + 54) = *(_WORD *)(this + 68); *(_BYTE *)(this + 56) = v8; v7 = *(_DWORD *)(this + 92); goto LABEL_9; } LABEL_6: *(_WORD *)(this + 54) = *(_WORD *)(this + 71); *(_BYTE *)(this + 56) = *(_BYTE *)(this + 73); v7 = *(_DWORD *)(this + 96); LABEL_9: *(_DWORD *)(this + 60) = v7; LABEL_11: *(_BYTE *)(v2 + 52) = v5 >= *(float *)(v2 + 76); } return this; }
GD Web Decomp Icon

GD Web Decomp

Raw Source