From 5788c69c62b3665f4d6027e359dd7522eed755f7 Mon Sep 17 00:00:00 2001 From: theTwister Date: Tue, 12 Sep 2023 19:27:30 +0100 Subject: [PATCH] Added `editor_get_cluster_color` hook --- game/source/editor/editor_stubs.cpp | 12 ++++++++++++ game/source/editor/editor_stubs.hpp | 2 ++ 2 files changed, 14 insertions(+) diff --git a/game/source/editor/editor_stubs.cpp b/game/source/editor/editor_stubs.cpp index fcb659ac1..892ad3e39 100644 --- a/game/source/editor/editor_stubs.cpp +++ b/game/source/editor/editor_stubs.cpp @@ -7,6 +7,8 @@ HOOK_DECLARE(0x0042DF80, editor_change_pvs); HOOK_DECLARE(0x0042DF90, editor_dispose); HOOK_DECLARE(0x0042DFA0, editor_dispose_from_old_map); HOOK_DECLARE(0x0042DFB0, editor_dispose_from_old_structure_bsp); +HOOK_DECLARE(0x0042DFD0, editor_get_cluster_color); +HOOK_DECLARE(0x0042E000, sub_42E000); HOOK_DECLARE(0x0042E010, editor_initialize); HOOK_DECLARE(0x0042E020, editor_initialize_for_new_map); HOOK_DECLARE(0x0042E030, editor_initialize_for_new_structure_bsp); @@ -36,6 +38,16 @@ void __cdecl editor_dispose_from_old_structure_bsp(dword a1) { } +void __cdecl editor_get_cluster_color(s_cluster_reference const* cluster_reference, real_argb_color* cluster_color) +{ +} + +// used in `input_update` +bool __cdecl sub_42E000() +{ + return false; +} + void __cdecl editor_initialize() { } diff --git a/game/source/editor/editor_stubs.hpp b/game/source/editor/editor_stubs.hpp index 21816da05..d982f5487 100644 --- a/game/source/editor/editor_stubs.hpp +++ b/game/source/editor/editor_stubs.hpp @@ -9,6 +9,8 @@ extern void __cdecl editor_change_pvs(s_game_cluster_bit_vectors const* a1, s_ga extern void __cdecl editor_dispose(); extern void __cdecl editor_dispose_from_old_map(); extern void __cdecl editor_dispose_from_old_structure_bsp(dword a1); +extern void __cdecl editor_get_cluster_color(s_cluster_reference const* cluster_reference, real_argb_color* cluster_color); +extern bool __cdecl sub_42E000(); extern void __cdecl editor_initialize(); extern void __cdecl editor_initialize_for_new_map(); extern void __cdecl editor_initialize_for_new_structure_bsp(dword a1);