[Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.360,1.361

Travis Howell kirben at users.sourceforge.net
Wed Dec 10 21:21:00 CET 2003


Update of /cvsroot/scummvm/scummvm/simon
In directory sc8-pr-cvs1:/tmp/cvs-serv17462/simon

Modified Files:
	simon.cpp 
Log Message:

Correct filename


Index: simon.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/simon/simon.cpp,v
retrieving revision 1.360
retrieving revision 1.361
diff -u -d -r1.360 -r1.361
--- simon.cpp	11 Dec 2003 04:41:42 -0000	1.360
+++ simon.cpp	11 Dec 2003 05:20:01 -0000	1.361
@@ -4766,11 +4766,12 @@
 	bool success;
 	char buf[256];
 
+	char *filename = gen_savename(_saveLoadSlot);
 	if (_saveLoadFlag == 2) {
 		Subroutine *sub;
 		success = load_game(_saveLoadSlot);
 		if (!success) {
-			sprintf(buf, "Failed to save game state to file:\n\n%s", _saveLoadName);
+			sprintf(buf, "Failed to load game state to file:\n\n%s", filename);
 		} else {
 			// Redraw Inventory
 			lock();
@@ -4784,7 +4785,7 @@
 	} else {
 		success = save_game(_saveLoadSlot, _saveLoadName);
 		if (!success)
-			sprintf(buf, "Failed to load game state to file:\n\n%s", _saveLoadName);
+			sprintf(buf, "Failed to save game state to file:\n\n%s", filename);
 	}
 
 	if (!success) {
@@ -4792,7 +4793,7 @@
 		dialog.runModal();
 
 	} else if (_saveLoadFlag == 1) {
-		sprintf(buf, "Successfully saved game state in file:\n\n%s", _saveLoadName);
+		sprintf(buf, "Successfully saved game state in file:\n\n%s", filename);
 		GUI::TimedMessageDialog dialog(buf, 1500);
 		dialog.runModal();
 





More information about the Scummvm-git-logs mailing list