Moved enum PluginError from base/plugins.h to common/error.h

svn-id: r30723
This commit is contained in:
Max Horn 2008-02-01 23:36:45 +00:00
parent 511019bd83
commit 5dfabb24d0
2 changed files with 14 additions and 14 deletions

View File

@ -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"
@ -36,20 +37,6 @@ class Engine;
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

View File

@ -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