summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Src/NandPaths.cpp
diff options
context:
space:
mode:
authorShawn Hoffman <godisgovernment@gmail.com>2010-12-04 03:50:55 +0000
committerShawn Hoffman <godisgovernment@gmail.com>2010-12-04 03:50:55 +0000
commite70e6236248aebe8740a3369e613d07f351c9546 (patch)
treefcbfedcf5f06064ab1fdc721f89ad5552924feb1 /Source/Core/Common/Src/NandPaths.cpp
parent97e3a3ea6fda441b2b342f795aa0afd9de2d8e14 (diff)
Second attempt at issue 3458. Fixes issue 3458.
Replaces all occurrences of ftell and fseek with ftello and fseeko, respectively. This matters on non-win32 where only these names are altered by the _FILE_OFFSET_BITS define. Win32 still just maps the funcs to ftelli64/fseeki64. Also add some File::GetSize I had skipped in my last commit. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6515 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/Common/Src/NandPaths.cpp')
-rw-r--r--Source/Core/Common/Src/NandPaths.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/Common/Src/NandPaths.cpp b/Source/Core/Common/Src/NandPaths.cpp
index 94772188b5..5234f9ae38 100644
--- a/Source/Core/Common/Src/NandPaths.cpp
+++ b/Source/Core/Common/Src/NandPaths.cpp
@@ -56,7 +56,7 @@ bool CheckTitleTMD(u64 _titleID)
if(pTMDFile)
{
u64 TitleID = 0xDEADBEEFDEADBEEFULL;
- fseek(pTMDFile, 0x18C, SEEK_SET);
+ fseeko(pTMDFile, 0x18C, SEEK_SET);
fread(&TitleID, 8, 1, pTMDFile);
fclose(pTMDFile);
if (_titleID == Common::swap64(TitleID))
@@ -76,7 +76,7 @@ bool CheckTitleTIK(u64 _titleID)
if(pTIKFile)
{
u64 TitleID = 0xDEADBEEFDEADBEEFULL;
- fseek(pTIKFile, 0x1dC, SEEK_SET);
+ fseeko(pTIKFile, 0x1dC, SEEK_SET);
fread(&TitleID, 8, 1, pTIKFile);
fclose(pTIKFile);
if (_titleID == Common::swap64(TitleID))