mirror of
https://github.com/libretro/scummvm.git
synced 2024-11-27 11:20:40 +00:00
Moved enum PluginError from base/plugins.h to common/error.h
svn-id: r30723
This commit is contained in:
parent
511019bd83
commit
5dfabb24d0
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user