Skip to content

Commit

Permalink
th09: reinitialize the GUI every time IDirect3DDevice8 is recreated
Browse files Browse the repository at this point in the history
  • Loading branch information
32th-System committed Jun 30, 2022
1 parent e32d4bd commit fd3a488
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions thprac/src/thprac/thprac_th09.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,12 @@ namespace TH09 {
}
g.Close();
}
EHOOK_DY(th09_gui_reinit, (void*)0x42e50f)
{
GameGuiInit(IMPL_WIN32_DX8, 0x4b3108, 0x4b30b0, 0x42d3d0,
Gui::INGAGME_INPUT_GEN2, 0x4acf3a, 0x4acf38, 0,
-1);
}
HOOKSET_ENDDEF()

HOOKSET_DEFINE(THInitHook)
Expand Down

0 comments on commit fd3a488

Please sign in to comment.