added forgotten files
This commit is contained in:
@@ -92,16 +92,15 @@ public:
|
||||
IINIFile *CINIManager::ReadFile( const char *psz )
|
||||
{
|
||||
IFileHandle *pFile;
|
||||
CUtlBuffer<char> data;
|
||||
const char *szData;
|
||||
|
||||
pFile = filesystem->Open(psz, FILEMODE_READ);
|
||||
if (!pFile)
|
||||
return NULL;
|
||||
data = CUtlBuffer<char>(pFile->Size()+1);
|
||||
uint32_t nSize = pFile->Read(data.GetMemory(), pFile->Size());
|
||||
pFile->Close();
|
||||
szData = filesystem->ReadString(pFile);
|
||||
filesystem->Close(pFile);
|
||||
|
||||
return ReadString(data.GetMemory());
|
||||
return ReadString(szData);
|
||||
}
|
||||
|
||||
IINIFile *CINIManager::ReadString( const char *psz )
|
||||
|
||||
BIN
tier2/fileformats/ini.o
Normal file
BIN
tier2/fileformats/ini.o
Normal file
Binary file not shown.
Reference in New Issue
Block a user