src/saveload.cpp
changeset 7431 f340111a55ec
parent 7425 350b9265b7a2
child 7451 82101e591f90
--- a/src/saveload.cpp	Sun Jun 17 19:46:01 2007 +0000
+++ b/src/saveload.cpp	Sun Jun 17 20:09:05 2007 +0000
@@ -1584,6 +1584,11 @@
 	}
 
 	_sl.fh = (mode == SL_SAVE) ? FioFOpenFile(filename, "wb", sb) : FioFOpenFile(filename, "rb", sb);
+
+	/* Make it a little easier to load savegames from the console */
+	if (_sl.fh == NULL && mode == SL_LOAD) _sl.fh = FioFOpenFile(filename, "rb", SAVE_DIR);
+	if (_sl.fh == NULL && mode == SL_LOAD) _sl.fh = FioFOpenFile(filename, "rb", BASE_DIR);
+
 	if (_sl.fh == NULL) {
 		DEBUG(sl, 0, "Cannot open savegame '%s' for saving/loading.", filename);
 		return SL_ERROR;