From 9424c5aef252869835a296c1c497807fe6f3c0c6 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Mon, 28 Feb 2005 13:22:31 +0000 Subject: Changed a few more hard-coded text-ids to constants. svn-id: r16957 --- sword2/defs.h | 7 ++++++- sword2/save_rest.cpp | 14 +++++++------- 2 files changed, 13 insertions(+), 8 deletions(-) (limited to 'sword2') diff --git a/sword2/defs.h b/sword2/defs.h index e7c17a6f83..4c25ca4fe2 100644 --- a/sword2/defs.h +++ b/sword2/defs.h @@ -74,7 +74,12 @@ enum { TEXT_SPEECH_VOLUME = 0x08EB000F, TEXT_FX_VOLUME = 0x08EB0010, TEXT_GFX_QUALITY = 0x08EB0011, - TEXT_REVERSE_STEREO = 0x08EB0015 + TEXT_REVERSE_STEREO = 0x08EB0015, + TEXT_RESTORE_CANT_OPEN = 0x0CBA017E, + TEXT_RESTORE_INCOMPATIBLE = 0x0CBA017F, + TEXT_RESTORE_FAILED = 0x0CBA0181, + TEXT_SAVE_CANT_OPEN = 0x0CBA0182, + TEXT_SAVE_FAILED = 0x0CBA0184 }; // Always 8 (George object used for Nico player character as well) diff --git a/sword2/save_rest.cpp b/sword2/save_rest.cpp index 8fbe6e98b5..a9eef067f0 100644 --- a/sword2/save_rest.cpp +++ b/sword2/save_rest.cpp @@ -108,10 +108,10 @@ uint32 Sword2Engine::saveGame(uint16 slotNo, byte *desc) { switch (errorCode) { case SR_ERR_FILEOPEN: - textId = 213516674; + textId = TEXT_SAVE_CANT_OPEN; break; - default: // SR_ERR_WRITEFAIL - textId = 213516676; + default: + textId = TEXT_SAVE_FAILED; break; } @@ -226,13 +226,13 @@ uint32 Sword2Engine::restoreGame(uint16 slotNo) { switch (errorCode) { case SR_ERR_FILEOPEN: - textId = 213516670; + textId = TEXT_RESTORE_CANT_OPEN; break; case SR_ERR_INCOMPATIBLE: - textId = 213516671; + textId = TEXT_RESTORE_INCOMPATIBLE; break; - default: // SR_ERR_READFAIL - textId = 213516673; + default: + textId = TEXT_RESTORE_FAILED; break; } -- cgit v1.2.3