fix data type: this returns -1 on error (this should actually be 64-bit, but that's a bigger change)
This commit is contained in:
@@ -910,7 +910,7 @@ bool IsADirectory( const RString &sPath )
|
||||
return FILEMAN->IsADirectory( sPath );
|
||||
}
|
||||
|
||||
unsigned GetFileSizeInBytes( const RString &sPath )
|
||||
int GetFileSizeInBytes( const RString &sPath )
|
||||
{
|
||||
return FILEMAN->GetFileSizeInBytes( sPath );
|
||||
}
|
||||
|
||||
@@ -584,7 +584,7 @@ bool DeleteRecursive( RageFileDriver *prfd, const RString &sDir ); /* delete the
|
||||
bool DoesFileExist( const RString &sPath );
|
||||
bool IsAFile( const RString &sPath );
|
||||
bool IsADirectory( const RString &sPath );
|
||||
unsigned GetFileSizeInBytes( const RString &sFilePath );
|
||||
int GetFileSizeInBytes( const RString &sFilePath );
|
||||
|
||||
// call FixSlashesInPlace on any path that came from the user
|
||||
void FixSlashesInPlace( RString &sPath );
|
||||
|
||||
Reference in New Issue
Block a user