mirror of
https://github.com/0TheSpy/Seaside.git
synced 2026-10-10 03:43:16 +08:00
Update KeyValues.cpp
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user