XObject Save/Restore

This commit is contained in:
Dr. Chat 2015-11-28 16:18:05 -06:00 committed by Ben Vanik
parent 938d849c06
commit ed85346f3b
1 changed files with 13 additions and 5 deletions

View File

@ -20,6 +20,7 @@
#include "xenia/xbox.h" #include "xenia/xbox.h"
namespace xe { namespace xe {
class ByteStream;
class Emulator; class Emulator;
} // namespace xe } // namespace xe
@ -109,15 +110,19 @@ struct X_OBJECT_TYPE {
class XObject { class XObject {
public: public:
enum Type { enum Type {
kTypeModule, kTypeUndefined,
kTypeThread, kTypeEnumerator,
kTypeEvent, kTypeEvent,
kTypeFile, kTypeFile,
kTypeSemaphore, kTypeIOCompletion,
kTypeNotifyListener, kTypeModule,
kTypeMutant, kTypeMutant,
kTypeNotifyListener,
kTypeSemaphore,
kTypeSession,
kTypeSocket,
kTypeThread,
kTypeTimer, kTypeTimer,
kTypeEnumerator,
}; };
XObject(KernelState* kernel_state, Type type); XObject(KernelState* kernel_state, Type type);
@ -143,6 +148,9 @@ class XObject {
void Release(); void Release();
X_STATUS Delete(); X_STATUS Delete();
virtual bool Save(ByteStream* stream) { return false; };
virtual bool Restore(ByteStream* stream) { return false; };
// Reference() // Reference()
// Dereference() // Dereference()