dolphin/Source/Core/Common
blubberdiblub 38e80fe094 Fixes some file handling in IPC_HLE
* change File::GetSize to fetch the size directly from the open file instead
  of stat'ing it when challed with a FILE*
* use changed File::GetSize(FILE *f) instead of calling with file name in two
  places
* remove "seek_pos % file_size" hack for ZTP, so one can seek to the end of
  file again. Please check Zelda: Twilight Princess for regressions
* return error codes when reading or writing from/to a file

A lot of those changes are from j4ck.fr0st, so kudos to him.

I did not change the file open mode for ISFS_OPEN_WRITE to "wb". While that
would probably be more correct, it says in the comment that it might affect
Mario Kart Wii. I would prefer somebody with that game try that change
locally first.

Please check your games for regressions (or even improvement). Some games that
may be affected are Zelda - Twilight Princess and Metroid Prime 3.

Fixes issue 1749



git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6634 8ced0084-cf51-0410-be5f-012b33b47a6e
2010-12-21 18:03:44 +00:00
..
Src Fixes some file handling in IPC_HLE 2010-12-21 18:03:44 +00:00
CMakeLists.txt Build fix for linux. svnrev.h was not found when compiling OCLTextureDecoder.cpp as that include directory was only used in Core/Common. 2010-12-19 14:02:43 +00:00
Common.vcproj Made LinearDiskCache a template class. Keys are now some POD type (fixed size). Eliminates casting and key size checking. 2010-11-15 05:22:03 +00:00
make_svnrev.h.vbs ok...svnrev crap finally under control? please? 2010-08-08 16:34:32 +00:00
SubWCRev.exe replace SubWCRev.exe with a statically linked one... >.> 2009-03-22 22:11:27 +00:00
SVNRevGen.vcproj ok...svnrev crap finally under control? please? 2010-08-08 16:34:32 +00:00