aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorEugene Sandulenko2010-05-21 18:25:01 +0000
committerEugene Sandulenko2010-05-21 18:25:01 +0000
commit1a938956ec00247794151bb2b72f088f68581857 (patch)
tree34fb503f7c326f84d0c31e93f7fb4e4a55627e0f /common
parent01c55efc95b2510eca1842058ab878e1ebd5ed4e (diff)
downloadscummvm-rg350-1a938956ec00247794151bb2b72f088f68581857.tar.gz
scummvm-rg350-1a938956ec00247794151bb2b72f088f68581857.tar.bz2
scummvm-rg350-1a938956ec00247794151bb2b72f088f68581857.zip
Implement FR #2988017: exit status with --list-saves always 0
svn-id: r49132
Diffstat (limited to 'common')
-rw-r--r--common/error.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/common/error.h b/common/error.h
index c4d383e508..7aff8d40b9 100644
--- a/common/error.h
+++ b/common/error.h
@@ -59,10 +59,16 @@ enum Error {
kPathNotDirectory, ///< The specified path does not point to a directory
kPathNotFile, ///< The specified path does not point to a file
- kCreatingFileFailed,
- kReadingFailed, ///< Failed creating a (savestate) file
+ kCreatingFileFailed, ///< Failed creating a (savestate) file
+ kReadingFailed, ///< Failed to read a file (permission denied?)
kWritingFailed, ///< Failure to write data -- disk full?
+ // The following are used by --list-saves
+ kPluginNotFound, ///< Failed to find plugin to handle tager
+ kPluginNotSupportSaves, ///< Failed if plugin does not support saves
+ kNoSavesError, ///< There are no saves to show
+
+ kArgumentNotProcessed, ///< Used in command line parsing
kUnknownError ///< Catch-all error, used if no other error code matches
};