diff options
Diffstat (limited to 'src/saveload.cpp')
-rw-r--r-- | src/saveload.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/saveload.cpp b/src/saveload.cpp index e4aa5d593..7b3b199f8 100644 --- a/src/saveload.cpp +++ b/src/saveload.cpp @@ -1595,7 +1595,13 @@ SaveOrLoadResult SaveOrLoad(const char *filename, int mode) /* No loader found, treat as version 0 and use LZO format */ if (fmt == endof(_saveload_formats)) { DEBUG(sl, 0, "Unknown savegame type, trying to load it as the buggy format"); +#if defined(WINCE) + /* Of course some system had not to support rewind ;) */ + fseek(_sl.fh, 0L, SEEK_SET); + clearerr(_sl.fh); +#else rewind(_sl.fh); +#endif _sl_version = 0; _sl_minor_version = 0; fmt = _saveload_formats + 1; // LZO |