From f5a86f7087d1ec0839efa14383f412b36c456cfa Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sat, 8 Apr 2023 16:11:25 +0200 Subject: [PATCH] Make global timestamp const Should never change once initialized. --- r5dev/core/stdafx.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/r5dev/core/stdafx.h b/r5dev/core/stdafx.h index 83ffd239..dd36bc31 100644 --- a/r5dev/core/stdafx.h +++ b/r5dev/core/stdafx.h @@ -118,8 +118,6 @@ #include "tier0/dbg.h" #endif // !SDKLAUNCHER && !NETCONSOLE && !PLUGINSDK -inline string g_ProcessTimestamp = CreateTimedFileName(); - #if !defined(SDKLAUNCHER) && !defined (NETCONSOLE) && !defined(PLUGINSDK) #if !defined (DEDICATED) inline CModule g_GameDll = CModule("r5apex.exe"); @@ -135,6 +133,7 @@ inline CModule g_SDKDll = CModule("client.dll"); inline CModule g_GameDll = CModule("r5apex_ds.exe"); inline CModule g_SDKDll = CModule("dedicated.dll"); #endif // !DEDICATED +inline const string g_ProcessTimestamp = CreateTimedFileName(); #define VAR_NAME(varName) #varName