Skip to content

Commit

Permalink
Added editor_get_cluster_color hook
Browse files Browse the repository at this point in the history
  • Loading branch information
theTwister authored and theTwister committed Sep 12, 2023
1 parent b1aa423 commit 5788c69
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions game/source/editor/editor_stubs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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()
{
}
Expand Down
2 changes: 2 additions & 0 deletions game/source/editor/editor_stubs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 5788c69

Please sign in to comment.