From 434b04379a4352b096d8ae21c47eff72750567d6 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Tue, 4 Jul 2023 22:36:29 +0200 Subject: [PATCH] Light string formatting improvements Nothing major this time around. --- r5dev/core/dllmain.cpp | 2 +- r5dev/core/init.cpp | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/r5dev/core/dllmain.cpp b/r5dev/core/dllmain.cpp index 36bde38b..56502b59 100644 --- a/r5dev/core/dllmain.cpp +++ b/r5dev/core/dllmain.cpp @@ -134,7 +134,7 @@ void SDK_Shutdown() } g_bSdkInitialized = false; - spdlog::info("Shutdown GameSDK\n"); + DevMsg(eDLL_T::NONE, "GameSDK shutdown initiated\n"); curl_global_cleanup(); diff --git a/r5dev/core/init.cpp b/r5dev/core/init.cpp index a9192a47..8b086192 100644 --- a/r5dev/core/init.cpp +++ b/r5dev/core/init.cpp @@ -190,6 +190,7 @@ void Systems_Init() DevMsg(eDLL_T::NONE, "%-16s '%10.6f' seconds ('%12lu' clocks)\n", "Detour->Attach()", initTimer.GetDuration().GetSeconds(), initTimer.GetDuration().GetCycles()); DevMsg(eDLL_T::NONE, "+-------------------------------------------------------------+\n"); + DevMsg(eDLL_T::NONE, "\n"); ConVar_StaticInit(); } @@ -227,6 +228,7 @@ void Systems_Shutdown() DevMsg(eDLL_T::NONE, "%-16s '%10.6f' seconds ('%12lu' clocks)\n", "Detour->Detach()", shutdownTimer.GetDuration().GetSeconds(), shutdownTimer.GetDuration().GetCycles()); DevMsg(eDLL_T::NONE, "+-------------------------------------------------------------+\n"); + DevMsg(eDLL_T::NONE, "\n"); } ///////////////////////////////////////////////////// @@ -284,9 +286,9 @@ void QuerySystemInfo() DevMsg(eDLL_T::NONE, "%-25s: '%s'\n","CPU vendor tag", pi.m_szProcessorID); DevMsg(eDLL_T::NONE, "%-25s: '%12hhu' ('%2hhu' %s)\n", "CPU core count", pi.m_nPhysicalProcessors, pi.m_nLogicalProcessors, "logical"); DevMsg(eDLL_T::NONE, "%-25s: '%12lld' ('%6.1f' %s)\n", "CPU core speed", pi.m_Speed, float(pi.m_Speed / 1000000), "MHz"); - DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' (0x%-10X)\n", "L1 cache", "(KiB)", pi.m_nL1CacheSizeKb, pi.m_nL1CacheDesc); - DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' (0x%-10X)\n", "L2 cache", "(KiB)", pi.m_nL2CacheSizeKb, pi.m_nL2CacheDesc); - DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' (0x%-10X)\n", "L3 cache", "(KiB)", pi.m_nL3CacheSizeKb, pi.m_nL3CacheDesc); + DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' ('0x%-8X')\n", "L1 cache", "(KiB)", pi.m_nL1CacheSizeKb, pi.m_nL1CacheDesc); + DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' ('0x%-8X')\n", "L2 cache", "(KiB)", pi.m_nL2CacheSizeKb, pi.m_nL2CacheDesc); + DevMsg(eDLL_T::NONE, "%-20s%s: '%12lu' ('0x%-8X')\n", "L3 cache", "(KiB)", pi.m_nL3CacheSizeKb, pi.m_nL3CacheDesc); MEMORYSTATUSEX statex{}; statex.dwLength = sizeof(statex);