From 24cd3aa2d54b273900362579853603158aa6b739 Mon Sep 17 00:00:00 2001 From: Amos <48657826+Mauler125@users.noreply.github.com> Date: Sat, 12 Mar 2022 13:19:31 +0100 Subject: [PATCH] Small improvements --- r5dev/engine/sys_dll.cpp | 9 ++++++--- r5dev/tier0/IConVar.cpp | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/r5dev/engine/sys_dll.cpp b/r5dev/engine/sys_dll.cpp index 0282c864..b5439134 100644 --- a/r5dev/engine/sys_dll.cpp +++ b/r5dev/engine/sys_dll.cpp @@ -1,5 +1,6 @@ #include "core/stdafx.h" #include "engine/sys_dll.h" +#include "engine/sys_utils.h" //----------------------------------------------------------------------------- // Sys_Error_Internal @@ -7,9 +8,11 @@ //----------------------------------------------------------------------------- int HSys_Error_Internal(char* fmt, va_list args) { - printf("\n_______________________________________________________________\n"); - printf("] ENGINE ERROR ################################################\n"); - vprintf(fmt, args); + char buffer[2048]{}; + Error(eDLL_T::NONE, "_______________________________________________________________\n"); + Error(eDLL_T::NONE, "] ENGINE ERROR ################################################\n"); + vsprintf(buffer, fmt, args); + Error(eDLL_T::NONE, "%s\n", buffer); /////////////////////////////////////////////////////////////////////////// return Sys_Error_Internal(fmt, args); diff --git a/r5dev/tier0/IConVar.cpp b/r5dev/tier0/IConVar.cpp index 3abcb04f..ba874e94 100644 --- a/r5dev/tier0/IConVar.cpp +++ b/r5dev/tier0/IConVar.cpp @@ -80,7 +80,7 @@ void ConVar::Init(void) const cl_conoverlay_script_server_clr = new ConVar("cl_conoverlay_script_server_clr", "130 120 245 255", FCVAR_DEVELOPMENTONLY, "Script SERVER VM RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr); cl_conoverlay_script_client_clr = new ConVar("cl_conoverlay_script_client_clr", "117 116 139 255", FCVAR_DEVELOPMENTONLY, "Script CLIENT VM RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr); - cl_conoverlay_script_ui_clr = new ConVar("cl_conoverlay_script_ui_clr ", "200 110 110 255", FCVAR_DEVELOPMENTONLY, "Script UI VM RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr); + cl_conoverlay_script_ui_clr = new ConVar("cl_conoverlay_script_ui_clr" , "200 110 110 255", FCVAR_DEVELOPMENTONLY, "Script UI VM RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr); cl_conoverlay_native_server_clr = new ConVar("cl_conoverlay_native_server_clr", "020 050 248 255", FCVAR_DEVELOPMENTONLY, "Native SERVER RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr); cl_conoverlay_native_client_clr = new ConVar("cl_conoverlay_native_client_clr", "070 070 070 255", FCVAR_DEVELOPMENTONLY, "Native CLIENT RUI console overlay log color.", false, 1.f, false, 50.f, nullptr, nullptr);