driver cross-compilation

This commit is contained in:
2025-10-29 01:30:21 +02:00
parent 1a888aad7b
commit a22ab19a8c
15 changed files with 336 additions and 22 deletions

View File

@@ -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())
{

View File

@@ -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