arm64 : intp fixes

This commit is contained in:
hymei
2022-02-23 20:10:25 +08:00
committed by nillerusr
parent df78eef85f
commit 0499fde751
5 changed files with 40 additions and 36 deletions

View File

@@ -40,11 +40,11 @@ public:
class CFSIOWriteBinary : public IFileWriteBinary
{
public:
virtual int create( const char *pFileName );
virtual int write( void *pData, int size, int file );
virtual void close( int file );
virtual void seek( int file, int pos );
virtual unsigned int tell( int file );
virtual intp create( const char *pFileName );
virtual int write( void *pData, int size, intp file );
virtual void close( intp file );
virtual void seek( intp file, int pos );
virtual unsigned int tell( intp file );
};
@@ -110,28 +110,28 @@ void CFSIOReadBinary::close( intp file )
//-----------------------------------------------------------------------------
// RIFF writer that use the file system
//-----------------------------------------------------------------------------
int CFSIOWriteBinary::create( const char *pFileName )
intp CFSIOWriteBinary::create( const char *pFileName )
{
g_pFullFileSystem->SetFileWritable( pFileName, true );
return (intp)g_pFullFileSystem->Open( pFileName, "wb" );
}
int CFSIOWriteBinary::write( void *pData, int size, int file )
int CFSIOWriteBinary::write( void *pData, int size, intp file )
{
return g_pFullFileSystem->Write( pData, size, (FileHandle_t)file );
}
void CFSIOWriteBinary::close( int file )
void CFSIOWriteBinary::close( intp file )
{
g_pFullFileSystem->Close( (FileHandle_t)file );
}
void CFSIOWriteBinary::seek( int file, int pos )
void CFSIOWriteBinary::seek( intp file, int pos )
{
g_pFullFileSystem->Seek( (FileHandle_t)file, pos, FILESYSTEM_SEEK_HEAD );
}
unsigned int CFSIOWriteBinary::tell( int file )
unsigned int CFSIOWriteBinary::tell( intp file )
{
return g_pFullFileSystem->Tell( (FileHandle_t)file );
}