aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--base/plugins.h15
-rw-r--r--common/error.h13
2 files changed, 14 insertions, 14 deletions
diff --git a/base/plugins.h b/base/plugins.h
index 23a28b745c..b37c4eba29 100644
--- a/base/plugins.h
+++ b/base/plugins.h
@@ -27,6 +27,7 @@
#define BASE_PLUGINS_H
#include "common/array.h"
+#include "common/error.h"
#include "common/list.h"
#include "common/singleton.h"
#include "common/util.h"
@@ -37,20 +38,6 @@ class FSList;
class OSystem;
/**
- * Error codes which mayb be reported by plugins under various circumstances.
- * @todo Turn this into a global 'ErrorCode' enum used by all of ScummVM ?
- */
-enum PluginError {
- kNoError = 0, // No error occured
- kInvalidPathError,
- kNoGameDataFoundError,
- kUnsupportedGameidError,
-
- kUnknownError // Catch-all error, used if no other error code matches
-};
-
-
-/**
* Abstract base class for the plugin system.
* Subclasses for this can be used to wrap both static and dynamic
* plugins.
diff --git a/common/error.h b/common/error.h
index 0ac84df5c3..90a140e08a 100644
--- a/common/error.h
+++ b/common/error.h
@@ -44,4 +44,17 @@ enum SFMError {
SFM_DIR_ROFS //mkdir()::EROFS: The parent directory resides on a read-only file system
};
+/**
+ * Error codes which may be reported by plugins under various circumstances.
+ * @todo Turn this into a global 'ErrorCode' enum used by all of ScummVM ?
+ */
+enum PluginError {
+ kNoError = 0, // No error occured
+ kInvalidPathError,
+ kNoGameDataFoundError,
+ kUnsupportedGameidError,
+
+ kUnknownError // Catch-all error, used if no other error code matches
+};
+
#endif //COMMON_ERROR_H