// // LevelEditorLayer::transferDefaultColors from 0x1000c20a0 to 0x1000c22de (574 bytes) // // 2 xrefs: // > LevelEditorLayer::updateGameObjects @ 0x1000ad0c2 // > LevelEditorLayer::onPlaytest @ 0x1000c5b57 // // This function is hookable on this platform (idp: pc, 32 bit: False, 64 bit: True! // // 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 12:20:34 +0000 // double __fastcall LevelEditorLayer::transferDefaultColors(__int64 a1, __int64 a2, __int64 a3) { __int64 AllColorActions; // rax unsigned int *v5; // rax __int64 *v6; // r15 unsigned __int64 v7; // r12 __int64 v8; // rcx __int16 v9; // dx __int64 v10; // r13 __int64 ColorAction; // rax int v12; // edx __int64 v13; // rcx __int64 v14; // rax __int16 v15; // r15 char v16; // r12 __int64 v17; // rax __int64 v18; // rax __int16 v19; // r15 char v20; // r12 __int64 v21; // rax __int64 v22; // rax __int16 v23; // r15 char v24; // r12 __int64 ColorSprite; // rax __int64 v26; // rax __int16 v27; // r15 char v28; // r12 __int64 v29; // rax __int64 v30; // rax __int16 v31; // r15 char v32; // r12 __int64 v33; // rax __int64 v34; // rax __int16 v35; // r15 char v36; // r12 __int64 v37; // rax __int64 v38; // rbx unsigned int active; // eax AllColorActions = GJEffectManager::getAllColorActions(a2); if ( AllColorActions ) { v5 = *(unsigned int **)(AllColorActions + 56); if ( *v5 ) { v6 = *((__int64 **)v5 + 2); v7 = (unsigned __int64)&v6[*v5 - 1]; do { v10 = *v6; if ( !*v6 ) break; ColorAction = GJEffectManager::getColorAction(a3, *(unsigned int *)(v10 + 92)); v12 = *(_DWORD *)(v10 + 88); if ( v12 <= 0 ) { v8 = v10 + 72; } else { v13 = *(_QWORD *)(a1 + 3256); v8 = v12 == 1 ? v13 + 2602 : v13 + 2605; } v9 = *(_WORD *)v8; *(_BYTE *)(ColorAction + 77) = *(_BYTE *)(v8 + 2); *(_WORD *)(ColorAction + 75) = v9; *(_DWORD *)(ColorAction + 100) = *(_DWORD *)(v10 + 96); *(_BYTE *)(ColorAction + 84) = *(_BYTE *)(v10 + 84); *(_DWORD *)(ColorAction + 120) = *(_DWORD *)(v10 + 120); *(_OWORD *)(ColorAction + 104) = *(_OWORD *)(v10 + 104); *(_BYTE *)(ColorAction + 125) = *(_BYTE *)(v10 + 125); GJEffectManager::colorActionChanged(a3, ColorAction); ++v6; } while ( (unsigned __int64)v6 <= v7 ); } } v14 = *(_QWORD *)(a1 + 3256); v15 = *(_WORD *)(v14 + 2602); v16 = *(_BYTE *)(v14 + 2604); v17 = GJEffectManager::getColorAction(a3, 1005); *(_BYTE *)(v17 + 77) = v16; *(_WORD *)(v17 + 75) = v15; v18 = *(_QWORD *)(a1 + 3256); v19 = *(_WORD *)(v18 + 2605); v20 = *(_BYTE *)(v18 + 2607); v21 = GJEffectManager::getColorAction(a3, 1006); *(_BYTE *)(v21 + 77) = v20; *(_WORD *)(v21 + 75) = v19; v22 = *(_QWORD *)(a1 + 3256); v23 = *(_WORD *)(v22 + 2602); v24 = *(_BYTE *)(v22 + 2604); ColorSprite = GJEffectManager::getColorSprite(a3, 1005); *(_BYTE *)(ColorSprite + 322) = v24; *(_WORD *)(ColorSprite + 320) = v23; v26 = *(_QWORD *)(a1 + 3256); v27 = *(_WORD *)(v26 + 2602); v28 = *(_BYTE *)(v26 + 2604); v29 = GJEffectManager::getColorSprite(a3, 1005); *(_BYTE *)(v29 + 325) = v28; *(_WORD *)(v29 + 323) = v27; v30 = *(_QWORD *)(a1 + 3256); v31 = *(_WORD *)(v30 + 2605); v32 = *(_BYTE *)(v30 + 2607); v33 = GJEffectManager::getColorSprite(a3, 1006); *(_BYTE *)(v33 + 322) = v32; *(_WORD *)(v33 + 320) = v31; v34 = *(_QWORD *)(a1 + 3256); v35 = *(_WORD *)(v34 + 2605); v36 = *(_BYTE *)(v34 + 2607); v37 = GJEffectManager::getColorSprite(a3, 1006); *(_BYTE *)(v37 + 325) = v36; *(_WORD *)(v37 + 323) = v35; v38 = *(_QWORD *)(a1 + 2152); active = GJEffectManager::activeColorForIndex(v38, 1005); return GJEffectManager::calculateLightBGColor(v38, active); }
GD Web Decomp Icon

GD Web Decomp

Raw Source