aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorMax Horn2011-04-18 18:19:53 +0200
committerMax Horn2011-04-18 18:22:04 +0200
commit3a574199b0b3e848d786d71a50a1107536507479 (patch)
tree3a9b0bd121b780d71ea5c5f310ead62efe5209bf /common
parent1037ed247042485df1ad312d9ddfbd17251ed907 (diff)
downloadscummvm-rg350-3a574199b0b3e848d786d71a50a1107536507479.tar.gz
scummvm-rg350-3a574199b0b3e848d786d71a50a1107536507479.tar.bz2
scummvm-rg350-3a574199b0b3e848d786d71a50a1107536507479.zip
COMMON: Cleanup names/handling of some error codes
Diffstat (limited to 'common')
-rw-r--r--common/error.cpp12
-rw-r--r--common/error.h5
2 files changed, 10 insertions, 7 deletions
diff --git a/common/error.cpp b/common/error.cpp
index 86557ee2dc..8fa58e2259 100644
--- a/common/error.cpp
+++ b/common/error.cpp
@@ -66,11 +66,15 @@ static String errorToString(ErrorCode errorCode) {
case kWritingFailed:
return _s("Writing data failed");
- case kUnknownError:
- case kPluginNotFound:
- case kPluginNotSupportSaves:
- case kNoSavesError:
+ case kEnginePluginNotFound:
+ return _s("Could not find suitable engine plugin");
+ case kEnginePluginNotSupportSaves:
+ return _s("Engine plugin does not support save states");
+
case kArgumentNotProcessed:
+ return _s("Command line argument not processed");
+
+ case kUnknownError:
default:
return _s("Unknown error");
}
diff --git a/common/error.h b/common/error.h
index 5c19761d6c..1ffbba723a 100644
--- a/common/error.h
+++ b/common/error.h
@@ -63,9 +63,8 @@ enum ErrorCode {
kWritingFailed, ///< Failure to write data -- disk full?
// The following are used by --list-saves
- kPluginNotFound, ///< Failed to find plugin to handle target
- kPluginNotSupportSaves, ///< Failed if plugin does not support saves
- kNoSavesError, ///< There are no saves to show
+ kEnginePluginNotFound, ///< Failed to find plugin to handle target
+ kEnginePluginNotSupportSaves, ///< Failed if plugin does not support listing save states
kArgumentNotProcessed, ///< Used in command line parsing