forked from dolphin-emu/dolphin
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
This commit is contained in:
@@ -358,7 +358,7 @@ void LoadInput(const char *filename)
|
||||
File::Copy(filename, g_recordFile.c_str());
|
||||
|
||||
g_recordfd = fopen(g_recordFile.c_str(), "r+b");
|
||||
fseek(g_recordfd, 0, SEEK_END);
|
||||
fseeko(g_recordfd, 0, SEEK_END);
|
||||
|
||||
g_rerecords++;
|
||||
|
||||
@@ -469,6 +469,6 @@ void SaveRecording(const char *filename)
|
||||
Core::DisplayMessage(StringFromFormat("Failed to save %s", filename).c_str(), 2000);
|
||||
|
||||
g_recordfd = fopen(g_recordFile.c_str(), "r+b");
|
||||
fseek(g_recordfd, 0, SEEK_END);
|
||||
fseeko(g_recordfd, 0, SEEK_END);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user