From af6a741eee8971a692c25374338888c6b5234d0b Mon Sep 17 00:00:00 2001 From: GAMMACASE <31375974+GAMMACASE@users.noreply.github.com> Date: Thu, 3 Oct 2024 23:12:08 +0300 Subject: [PATCH] Update KeyValues::SaveToFile --- public/tier1/KeyValues.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/tier1/KeyValues.h b/public/tier1/KeyValues.h index dbdf5544..9b263310 100644 --- a/public/tier1/KeyValues.h +++ b/public/tier1/KeyValues.h @@ -244,7 +244,7 @@ public: // File access. Set UsesEscapeSequences true, if resource file/buffer uses Escape Sequences (eg \n, \t) void UsesEscapeSequences( bool state ); // default false bool LoadFromFile( IFileSystem *filesystem, const char *resourceName, const char *pathID = NULL, GetSymbolProc_t pfnEvaluateSymbolProc = NULL, void *pUnk1 = NULL, const char *pUnk2 = NULL ); - bool SaveToFile( IFileSystem *filesystem, const char *resourceName, const char *pathID = NULL, bool bAllowEmptyString = false ); + bool SaveToFile( IFileSystem *filesystem, const char *resourceName, const char *pathID = NULL, bool bAllowEmptyString = false, bool binaryWrite = true ); // Read from a buffer... Note that the buffer must be null terminated bool LoadFromBuffer( char const *resourceName, const char *pBuffer, IFileSystem *pFileSystem = NULL, const char *pPathID = NULL, GetSymbolProc_t pfnEvaluateSymbolProc = NULL, IKeyValuesErrorSpew *pErrorSpew = NULL, void *pUnk1 = NULL, const char *pUnk2 = NULL );