From adbce38f1380d3a44f6f9e0a3e815d0190d3e831 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 21 Oct 2009 06:49:52 +0000 Subject: [PATCH] fix data type: this returns -1 on error (this should actually be 64-bit, but that's a bigger change) --- stepmania/src/RageFileManager.cpp | 2 +- stepmania/src/RageUtil.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageFileManager.cpp b/stepmania/src/RageFileManager.cpp index e07a7540bf..b4d6d65493 100644 --- a/stepmania/src/RageFileManager.cpp +++ b/stepmania/src/RageFileManager.cpp @@ -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 ); } diff --git a/stepmania/src/RageUtil.h b/stepmania/src/RageUtil.h index 435e9c8502..a5e115c4a9 100644 --- a/stepmania/src/RageUtil.h +++ b/stepmania/src/RageUtil.h @@ -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 );