driver cross-compilation
This commit is contained in:
@@ -98,7 +98,7 @@ IINIFile *CINIManager::ReadFile( const char *psz )
|
||||
if (!pFile)
|
||||
return NULL;
|
||||
data = CUtlBuffer<char>(pFile->Size()+1);
|
||||
pFile->Read(data.GetMemory(), pFile->Size());
|
||||
uint32_t nSize = pFile->Read(data.GetMemory(), pFile->Size());
|
||||
pFile->Close();
|
||||
|
||||
return ReadString(data.GetMemory());
|
||||
@@ -259,8 +259,6 @@ IINIFile *CINIManager::ReadString( const char *psz )
|
||||
pCurrentSectionData->m_eSectionType = SECTIONTYPE_STRING;
|
||||
pCurrentSectionData->m_szKey = tokens[i];
|
||||
|
||||
|
||||
|
||||
i++;
|
||||
if (i>=tokens.GetSize())
|
||||
{
|
||||
|
||||
@@ -41,9 +41,9 @@ public:
|
||||
pHandle = new CLIBCFileHandle;
|
||||
pHandle->m_pFileSystem = this;
|
||||
pHandle->m_pFile = pFile;
|
||||
pHandle->Seek(SEEKMODE_RELATIVE_START, 0);
|
||||
pHandle->m_nSize = pHandle->Tell();
|
||||
pHandle->Seek(SEEKMODE_RELATIVE_END, 0);
|
||||
pHandle->m_nSize = pHandle->Tell();
|
||||
pHandle->Seek(SEEKMODE_RELATIVE_START, 0);
|
||||
return pHandle;
|
||||
}
|
||||
virtual size_t Write( IFileHandle *pFile, const void *pData, size_t nDataSize ) override
|
||||
|
||||
Reference in New Issue
Block a user