// // lightColorForPath from 0x58be44 to 0x58bedc (152 bytes) // // 4 xrefs: // > GJPathPage::unlockAnimationStep2 @ 0x58c03e // > GJPathPage::playUnlockAnimation @ 0x58c6fe // > GJPathPage::unlockAnimationStep3 @ 0x58cb7c // > GJPathPage::unlockAnimationStep3 @ 0x58cc20 // // 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 // float *__fastcall lightColorForPath(float *a1, int a2) { int v3; // r4 int v4; // r5 int v5; // r6 switch ( a2 ) { case 1: v3 = 0; v4 = 150; goto LABEL_15; case 2: v3 = 255; goto LABEL_4; case 3: v3 = 0; LABEL_4: v4 = 255; v5 = 50; goto LABEL_16; case 4: v3 = 255; goto LABEL_6; case 5: v3 = 0; v4 = 100; goto LABEL_15; case 6: v3 = 0; v4 = 150; v5 = 200; goto LABEL_16; case 7: v3 = 0; LABEL_6: v4 = 0; goto LABEL_15; case 8: v3 = 255; goto LABEL_13; case 9: v3 = 50; goto LABEL_13; default: v3 = 0; LABEL_13: v4 = 255; LABEL_15: v5 = 255; LABEL_16: memset(a1, 0, 0x10u); a1[3] = 1.0; *a1 = (float)v5 / 255.0; a1[1] = (float)v4 / 255.0; a1[2] = (float)v3 / 255.0; return a1; } }
GD Web Decomp Icon

GD Web Decomp

Raw Source