From f5ab6fb5e8be7b73e6003d4145081d5e0c0ce287 Mon Sep 17 00:00:00 2001 From: Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> Date: Wed, 27 Dec 2023 00:32:01 +0000 Subject: Folder restructuring from primedev (#624) Copies of over the primedev folder structure for easier cherry-picking of further changes Co-authored-by: F1F7Y --- NorthstarDLL/core/tier0.cpp | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 NorthstarDLL/core/tier0.cpp (limited to 'NorthstarDLL/core/tier0.cpp') diff --git a/NorthstarDLL/core/tier0.cpp b/NorthstarDLL/core/tier0.cpp deleted file mode 100644 index 1f59722c..00000000 --- a/NorthstarDLL/core/tier0.cpp +++ /dev/null @@ -1,30 +0,0 @@ -#include "tier0.h" - -IMemAlloc* g_pMemAllocSingleton = nullptr; - -CommandLineType CommandLine; -Plat_FloatTimeType Plat_FloatTime; -ThreadInServerFrameThreadType ThreadInServerFrameThread; - -typedef IMemAlloc* (*CreateGlobalMemAllocType)(); -CreateGlobalMemAllocType CreateGlobalMemAlloc; - -// needs to be a seperate function, since memalloc.cpp calls it -void TryCreateGlobalMemAlloc() -{ - // init memalloc stuff - CreateGlobalMemAlloc = - reinterpret_cast(GetProcAddress(GetModuleHandleA("tier0.dll"), "CreateGlobalMemAlloc")); - g_pMemAllocSingleton = CreateGlobalMemAlloc(); // if it already exists, this returns the preexisting IMemAlloc instance -} - -ON_DLL_LOAD("tier0.dll", Tier0GameFuncs, (CModule module)) -{ - // shouldn't be necessary, but do this just in case - TryCreateGlobalMemAlloc(); - - // setup tier0 funcs - CommandLine = module.GetExport("CommandLine").RCast(); - Plat_FloatTime = module.GetExport("Plat_FloatTime").RCast(); - ThreadInServerFrameThread = module.GetExport("ThreadInServerFrameThread").RCast(); -} -- cgit v1.2.3