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