From 8dff5a61fb4ee8e5d0c120d4567e971e309edc80 Mon Sep 17 00:00:00 2001 From: 0TheSpy <5511c282@opayq.com> Date: Sat, 29 Oct 2022 19:05:44 +0300 Subject: [PATCH] Update KeyValues.cpp --- SpyCustom/KeyValues.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SpyCustom/KeyValues.cpp b/SpyCustom/KeyValues.cpp index c255c85..2d33f02 100644 --- a/SpyCustom/KeyValues.cpp +++ b/SpyCustom/KeyValues.cpp @@ -1259,22 +1259,22 @@ public: void ReportError(const char* pError) { - printf("KeyValues Error: %s in file %s\n", pError, m_pFilename); + printfdbg("KeyValues Error: %s in file %s\n", pError, m_pFilename); for (int i = 0; i < m_maxErrorIndex; i++) { if (m_errorStack[i] != INVALID_KEY_SYMBOL) { if (i < m_errorIndex) { - printf("%s, ", iff.keyValuesSystem->GetStringForSymbol(m_errorStack[i])); + printfdbg("%s, ", iff.keyValuesSystem->GetStringForSymbol(m_errorStack[i])); } else { - printf("(*%s*), ", iff.keyValuesSystem->GetStringForSymbol(m_errorStack[i])); + printfdbg("(*%s*), ", iff.keyValuesSystem->GetStringForSymbol(m_errorStack[i])); } } } - printf("\n"); + printfdbg("\n"); } private: @@ -1577,7 +1577,7 @@ void KeyValues::ParseIncludedKeys(char const* resourceName, const char* filetoin } else { - printf("KeyValues::ParseIncludedKeys: Couldn't load included keyvalue file %s\n", fullpath); + printfdbg("KeyValues::ParseIncludedKeys: Couldn't load included keyvalue file %s\n", fullpath); newKV->deleteThis(); } @@ -1827,4 +1827,4 @@ bool KeyValues::LoadFromBuffer(char const* resourceName, const char* pBuffer, IB int nLen = Q_strlen(pBuffer); CUtlBuffer buf(pBuffer, nLen, CUtlBuffer::READ_ONLY | CUtlBuffer::TEXT_BUFFER); return LoadFromBuffer(resourceName, buf, pFileSystem, pPathID); -} \ No newline at end of file +}