From: Laszlo T. <ave...@us...> - 2006-01-05 10:48:36
|
Update of /cvsroot/gemrb/gemrb/gemrb/plugins/Core In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19039 Modified Files: SaveGameIterator.cpp Log Message: savegameiterator will ignore games with incorrect worldmap (useful for mixed tob/soa saves) Index: SaveGameIterator.cpp =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/plugins/Core/SaveGameIterator.cpp,v retrieving revision 1.36 retrieving revision 1.37 diff -C2 -d -r1.36 -r1.37 *** SaveGameIterator.cpp 3 Jan 2006 19:45:53 -0000 1.36 --- SaveGameIterator.cpp 5 Jan 2006 10:48:27 -0000 1.37 *************** *** 211,216 **** ResolveFilePath( ftmp ); #endif ! if (access( ftmp, R_OK )) return false; return true; --- 211,230 ---- ResolveFilePath( ftmp ); #endif ! if (access( ftmp, R_OK )) { ! printMessage("SaveGameIterator"," ",YELLOW); ! printf("Ignoring slot %s because of no appropriate preview!\n", dtmp); ! return false; ! } ! ! snprintf( ftmp, _MAX_PATH, "%s%s%s.wmp", dtmp, SPathDelimiter, ! core->WorldMapName ); ! #ifndef WIN32 ! ResolveFilePath( ftmp ); ! #endif ! if (access( ftmp, R_OK )) { ! printMessage("SaveGameIterator"," ",YELLOW); ! printf("Ignoring slot %s because of no appropriate worldmap!\n", dtmp); return false; + } return true; |