diff options
author | James Brown | 2004-07-11 04:41:48 +0000 |
---|---|---|
committer | James Brown | 2004-07-11 04:41:48 +0000 |
commit | 9756a420a3629900783c63f1bc4778c08e2c969b (patch) | |
tree | 80124eac426f0a93ac6a4767ab669a5186a48eed /sword1/sword1.cpp | |
parent | 26f4df6aa35199522be4111da17e38f7a6ffbd61 (diff) | |
download | scummvm-rg350-9756a420a3629900783c63f1bc4778c08e2c969b.tar.gz scummvm-rg350-9756a420a3629900783c63f1bc4778c08e2c969b.tar.bz2 scummvm-rg350-9756a420a3629900783c63f1bc4778c08e2c969b.zip |
Use extrapath in Sword1 engine (from 0.6.0 branch). More verbose errors to go with the forthcoming new manual. Sword1 CD swapping doesn't work as expected HERE, either :)
svn-id: r14188
Diffstat (limited to 'sword1/sword1.cpp')
-rw-r--r-- | sword1/sword1.cpp | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/sword1/sword1.cpp b/sword1/sword1.cpp index da41398659..b29ad6f09b 100644 --- a/sword1/sword1.cpp +++ b/sword1/sword1.cpp @@ -41,6 +41,9 @@ #include "music.h" #include "control.h" +#include "gui/message.h" +#include "gui/newgui.h" + using namespace Sword1; /* Broken Sword 1 */ @@ -1062,8 +1065,12 @@ void SwordEngine::checkCdFiles(void) { // check if we're running from cd, hdd or _systemVars.runningFromCd = false; _systemVars.playSpeech = true; return ; - } else - error("SPEECH2.CLU not found.\nPlease copy the SPEECH.CLU from CD2 and rename it to SPEECH2.CLU"); + } else { + const char msg[] = "SPEECH2.CLU not found.\nPlease copy the SPEECH.CLU from CD2 and rename it to SPEECH2.CLU"; + GUI::MessageDialog dialog(msg); + dialog.runModal(); + error(msg); + } } else { // speech1.clu & speech2.clu not present. are we running from cd? if (test.open("cd1.id")) { _systemVars.runningFromCd = true; @@ -1073,8 +1080,12 @@ void SwordEngine::checkCdFiles(void) { // check if we're running from cd, hdd or _systemVars.runningFromCd = true; _systemVars.currentCD = 2; test.close(); - } else - error("Unable to find files.\nPlease read the instructions again"); + } else { + const char msg[] = "Unable to find the game files.\nPlease read the ScummVM documentation"; + GUI::MessageDialog dialog(msg); + dialog.runModal(); + error(msg); + } } } |