From 40608ba6ef286997fa9480f481c99f0560464cfb Mon Sep 17 00:00:00 2001 From: neptunium Date: Fri, 20 Oct 2023 01:15:10 +0200 Subject: [PATCH] tweak(font-renderer): remove useless file, move it to FontRendererImpl.cpp --- .../font-renderer/src/FontRendererImpl.cpp | 5 +++++ code/components/font-renderer/src/GtaTest.cpp | 15 --------------- 2 files changed, 5 insertions(+), 15 deletions(-) delete mode 100644 code/components/font-renderer/src/GtaTest.cpp 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(); -});