From f32be876337e3b280ee4ea257e9868a0d61e399d Mon Sep 17 00:00:00 2001 From: Max Horn Date: Wed, 5 Nov 2008 17:24:56 +0000 Subject: 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 --- base/main.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'base') 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: -- cgit v1.2.3