Changeset - r6163:3d7d8a7d9968
[Not reviewed]
master
0 2 0
Darkvater - 18 years ago 2007-02-27 15:17:06
darkvater@openttd.org
(svn r8914) -Regression (UTF8): Win9x is very picky about trailing slashes in paths, so C:\\* will not work (but C:\Windows\\* does; go figure). Thanks glx for pointing it out and for the initial fix.
2 files changed with 4 insertions and 6 deletions:
0 comments (0 inline, 0 general)
src/newgrf_gui.cpp
Show inline comments
 
@@ -485,6 +485,9 @@ static void NewGRFWndProc(Window *w, Win
 
			break;
 

	
 
		case WE_DESTROY:
 
			if (!WP(w, newgrf_d).execute) {
 
				CopyGRFConfigList(WP(w, newgrf_d).orig_list, *WP(w, newgrf_d).list);
 
			}
 
			/* Remove the temporary copy of grf-list used in window */
 
			ClearGRFConfigList(WP(w, newgrf_d).list);
 
			break;
src/saveload.cpp
Show inline comments
 
@@ -1593,13 +1593,8 @@ SaveOrLoadResult SaveOrLoad(const char *
 
			/* 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
0 comments (0 inline, 0 general)