aboutsummaryrefslogtreecommitdiff
path: root/base
diff options
context:
space:
mode:
authorMax Horn2008-11-05 17:24:56 +0000
committerMax Horn2008-11-05 17:24:56 +0000
commitf32be876337e3b280ee4ea257e9868a0d61e399d (patch)
tree999037656b6a01f8a0e379801f64c79d18a76dba /base
parentfe2935ad4b550afa68977169140267ef2ef4a3da (diff)
downloadscummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.tar.gz
scummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.tar.bz2
scummvm-rg350-f32be876337e3b280ee4ea257e9868a0d61e399d.zip
Turned enum PluginError into Common::Error, which in the future is to be used in more places. Help with this is highly welcome
svn-id: r34906
Diffstat (limited to 'base')
-rw-r--r--base/main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/base/main.cpp b/base/main.cpp
index 4245e6c3b1..cde4e4fd2c 100644
--- a/base/main.cpp
+++ b/base/main.cpp
@@ -132,18 +132,18 @@ static int runGame(const EnginePlugin *plugin, OSystem &system, const Common::St
// Create the game engine
Engine *engine = 0;
- PluginError err = (*plugin)->createInstance(&system, &engine);
- if (!engine || err != kNoError) {
+ Common::Error err = (*plugin)->createInstance(&system, &engine);
+ if (!engine || err != Common::kNoError) {
// TODO: Show an error dialog or so?
// TODO: Also take 'err' into consideration...
//GUI::MessageDialog alert("ScummVM could not find any game in the specified directory!");
//alert.runModal();
const char *errMsg = 0;
switch (err) {
- case kInvalidPathError:
+ case Common::kInvalidPathError:
errMsg = "Invalid game path";
break;
- case kNoGameDataFoundError:
+ case Common::kNoGameDataFoundError:
errMsg = "Unable to locate game data";
break;
default: