diff options
author | Torbjörn Andersson | 2005-02-28 13:22:31 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-02-28 13:22:31 +0000 |
commit | 9424c5aef252869835a296c1c497807fe6f3c0c6 (patch) | |
tree | d24135bfb39069d5046ab136bb9c4e690cb855ee | |
parent | c840db8ab2404c050ac8b71719058eb36168e33b (diff) | |
download | scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.tar.gz scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.tar.bz2 scummvm-rg350-9424c5aef252869835a296c1c497807fe6f3c0c6.zip |
Changed a few more hard-coded text-ids to constants.
svn-id: r16957
-rw-r--r-- | sword2/defs.h | 7 | ||||
-rw-r--r-- | sword2/save_rest.cpp | 14 |
2 files changed, 13 insertions, 8 deletions
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; } |