diff options
author | Johannes Schickel | 2008-05-24 22:44:15 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-05-24 22:44:15 +0000 |
commit | 6866a4e133f2ae505bc142bc4b35e79d48f5191a (patch) | |
tree | 126d1f0f151d3d87d14d5165495dff04499d918c /engines/kyra/resource.cpp | |
parent | 68fd8b74b0a42279056a4143455bb8b40dc83ca9 (diff) | |
download | scummvm-rg350-6866a4e133f2ae505bc142bc4b35e79d48f5191a.tar.gz scummvm-rg350-6866a4e133f2ae505bc142bc4b35e79d48f5191a.tar.bz2 scummvm-rg350-6866a4e133f2ae505bc142bc4b35e79d48f5191a.zip |
- Cleanup
- Added support for showing kyra.dat error messages in a dialog
svn-id: r32259
Diffstat (limited to 'engines/kyra/resource.cpp')
-rw-r--r-- | engines/kyra/resource.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/engines/kyra/resource.cpp b/engines/kyra/resource.cpp index 197f363b1e..6fa256ce40 100644 --- a/engines/kyra/resource.cpp +++ b/engines/kyra/resource.cpp @@ -30,8 +30,6 @@ #include "common/fs.h" #include "common/func.h" -#include "gui/message.h" - #include "kyra/resource.h" #define INS_CACHE_THRESHOLD 300000 // all files with file size greater than this will be cached @@ -57,8 +55,7 @@ bool Resource::reset() { if (!loadPakFile(StaticResource::staticDataFilename()) || !StaticResource::checkKyraDat()) { Common::String errorMessage = "You're missing the '" + StaticResource::staticDataFilename() + "' file or it got corrupted, (re)get it from the ScummVM website"; - ::GUI::MessageDialog errorMsg(errorMessage); - errorMsg.runModal(); + _vm->GUIErrorMessage(errorMessage); error(errorMessage.c_str()); } |