From d8417ca45574e66e2dcfebda9c7c3044cccc7fe6 Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 14 Jan 2024 22:57:04 +0100 Subject: [PATCH] ReVPK: improve logger name formatting --- src/revpk/revpk.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/revpk/revpk.cpp b/src/revpk/revpk.cpp index 5e2b733c..7d3c16a2 100644 --- a/src/revpk/revpk.cpp +++ b/src/revpk/revpk.cpp @@ -222,11 +222,10 @@ static void ReVPK_Unpack(const CCommand& args) return; } - CUtlString prefixName = PackedStore_GetDirNameParts(vpk.m_DirFilePath, 1); - CUtlString levelName = PackedStore_GetDirNameParts(vpk.m_DirFilePath, 2); + CUtlString baseName = PackedStore_GetDirBaseName(vpk.m_DirFilePath); // Write the unpack log to a file. - CFmtStr1024 textFileName("%s%s%s_%s.log", outPath, UNPACK_LOG_DIR, prefixName.String(), levelName.String()); + CFmtStr1024 textFileName("%s%s%s.log", outPath, UNPACK_LOG_DIR, baseName.String()); SpdLog_InstallSupplementalLogger("supplemental_logger_mt", textFileName.String()); const char* actualDirFile = vpk.m_DirFilePath.String();