Changed a few more hard-coded text-ids to constants.

svn-id: r16957
This commit is contained in:
Torbjörn Andersson 2005-02-28 13:22:31 +00:00
parent c840db8ab2
commit 9424c5aef2
2 changed files with 13 additions and 8 deletions

View File

@ -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)

View File

@ -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;
}