diff options
| author | Shawn Hoffman <godisgovernment@gmail.com> | 2010-12-03 12:42:01 +0000 |
|---|---|---|
| committer | Shawn Hoffman <godisgovernment@gmail.com> | 2010-12-03 12:42:01 +0000 |
| commit | 3d441febda6a22a6e35168f5f5f4218275cf8295 (patch) | |
| tree | 1e181d6738bc9897fcd17d85ab51c4154f0eaa5d /Source/Core/DiscIO/Src/FileBlob.cpp | |
| parent | 08a3b60f8c52a88de31070e1cb4f8e5dadab47e8 (diff) | |
Attempt to fix issue r3458. I don't have a 32bit linux install, however I know it will at least fix compressing. Please test if uncompressed games run.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6510 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DiscIO/Src/FileBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/Src/FileBlob.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/Core/DiscIO/Src/FileBlob.cpp b/Source/Core/DiscIO/Src/FileBlob.cpp index faee3e5c6c..d2ab9c0562 100644 --- a/Source/Core/DiscIO/Src/FileBlob.cpp +++ b/Source/Core/DiscIO/Src/FileBlob.cpp @@ -19,6 +19,7 @@ #include "Blob.h" #include "FileBlob.h" +#include "FileUtil.h" namespace DiscIO { @@ -26,9 +27,7 @@ namespace DiscIO PlainFileReader::PlainFileReader(FILE* file__) { file_ = file__; - fseek(file_, 0, SEEK_END); - size = ftell(file_); - fseek(file_, 0, SEEK_SET); + size = File::GetSize(file__); } PlainFileReader* PlainFileReader::Create(const char* filename) |
