diff --git a/code/components/font-renderer/src/FontRendererImpl.cpp b/code/components/font-renderer/src/FontRendererImpl.cpp index 07c2f511b4..ea0ecaa79a 100644 --- a/code/components/font-renderer/src/FontRendererImpl.cpp +++ b/code/components/font-renderer/src/FontRendererImpl.cpp @@ -269,3 +269,8 @@ void FontRendererImpl::DrawPerFrame() FontRendererImpl g_fontRenderer; FontRenderer* TheFonts = &g_fontRenderer; + +static HookFunction hookFunction([]() +{ + TheFonts->Initialize(); +}); diff --git a/code/components/font-renderer/src/GtaTest.cpp b/code/components/font-renderer/src/GtaTest.cpp deleted file mode 100644 index 531a1e274d..0000000000 --- a/code/components/font-renderer/src/GtaTest.cpp +++ /dev/null @@ -1,15 +0,0 @@ -/* - * This file is part of the CitizenFX project - http://citizen.re/ - * - * See LICENSE and MENTIONS in the root of the source tree for information - * regarding licensing. - */ - -#include "StdInc.h" -#include "FontRendererImpl.h" -#include "Hooking.h" - -static HookFunction hf([] () -{ - TheFonts->Initialize(); -});