ini fixes
This commit is contained in:
@@ -95,11 +95,13 @@ IINIFile *CINIManager::ReadFile( const char *psz )
|
||||
CUtlBuffer<char> data;
|
||||
|
||||
pFile = filesystem->Open(psz, FILEMODE_READ);
|
||||
if (!pFile)
|
||||
return NULL;
|
||||
data = CUtlBuffer<char>(pFile->Size()+1);
|
||||
pFile->Read(data.GetMemory(), pFile->Size());
|
||||
pFile->Close();
|
||||
|
||||
ReadString(data.GetMemory());
|
||||
return ReadString(data.GetMemory());
|
||||
}
|
||||
|
||||
IINIFile *CINIManager::ReadString( const char *psz )
|
||||
|
||||
Reference in New Issue
Block a user