ini fixes

This commit is contained in:
2025-10-28 19:23:56 +02:00
parent d19f874272
commit 1a888aad7b

View File

@@ -95,11 +95,13 @@ IINIFile *CINIManager::ReadFile( const char *psz )
CUtlBuffer<char> data; CUtlBuffer<char> data;
pFile = filesystem->Open(psz, FILEMODE_READ); pFile = filesystem->Open(psz, FILEMODE_READ);
if (!pFile)
return NULL;
data = CUtlBuffer<char>(pFile->Size()+1); data = CUtlBuffer<char>(pFile->Size()+1);
pFile->Read(data.GetMemory(), pFile->Size()); pFile->Read(data.GetMemory(), pFile->Size());
pFile->Close(); pFile->Close();
ReadString(data.GetMemory()); return ReadString(data.GetMemory());
} }
IINIFile *CINIManager::ReadString( const char *psz ) IINIFile *CINIManager::ReadString( const char *psz )