aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTravis Howell2003-12-11 05:20:01 +0000
committerTravis Howell2003-12-11 05:20:01 +0000
commit1e90d540eb55387dcac94293053c6917b11de74e (patch)
tree27947d73d710345a0e5decd3bee2dd811d38e2c6
parent8c1cf30b6bbe6c6a26c900887c7eeb350af7091f (diff)
downloadscummvm-rg350-1e90d540eb55387dcac94293053c6917b11de74e.tar.gz
scummvm-rg350-1e90d540eb55387dcac94293053c6917b11de74e.tar.bz2
scummvm-rg350-1e90d540eb55387dcac94293053c6917b11de74e.zip
Correct filename
svn-id: r11568
-rw-r--r--simon/simon.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/simon/simon.cpp b/simon/simon.cpp
index eab73e8763..b32244188a 100644
--- a/simon/simon.cpp
+++ b/simon/simon.cpp
@@ -4766,11 +4766,12 @@ void SimonEngine::quick_load_or_save() {
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 @@ void SimonEngine::quick_load_or_save() {
} 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 @@ void SimonEngine::quick_load_or_save() {
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();