Make XObject::GetWaitHandle a protected function

This commit is contained in:
Dr. Chat
2015-12-17 18:32:45 -06:00
committed by Ben Vanik
parent e619e4590c
commit 68f9949829
8 changed files with 22 additions and 18 deletions

View File

@@ -187,7 +187,6 @@ class XObject {
static object_ref<T> GetNativeObject(KernelState* kernel_state,
void* native_ptr, int32_t as_type = -1);
virtual xe::threading::WaitHandle* GetWaitHandle() { return nullptr; }
protected:
bool SaveObject(ByteStream* stream);
@@ -195,6 +194,7 @@ class XObject {
// Called on successful wait.
virtual void WaitCallback() {}
virtual xe::threading::WaitHandle* GetWaitHandle() { return nullptr; }
// Creates the kernel object for guest code to use. Typically not needed.
uint8_t* CreateNative(uint32_t size);