From e33aac9b2fa651230b7300d428ab8a15e5f899f3 Mon Sep 17 00:00:00 2001 From: purpasmart96 Date: Fri, 30 Jan 2015 12:14:33 -0800 Subject: [PATCH] GSP_GPU: Fix Shared memory & Create Event --- src/core/hle/service/gsp_gpu.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index 5b91f17d2..331da404d 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp @@ -389,11 +389,11 @@ const Interface::FunctionInfo FunctionTable[] = { // Interface class Interface::Interface() { - Register(FunctionTable, ARRAY_SIZE(FunctionTable)); - - g_interrupt_event = 0; - g_shared_memory = 0; + g_interrupt_event = Kernel::Event::Create(RESETTYPE_ONESHOT, "GSP_GPU:g_interrupt_event").MoveFrom(); + g_shared_memory = Kernel::SharedMemory::Create("GSP_GPU:g_shared_memory").MoveFrom(); g_thread_id = 1; + + Register(FunctionTable, ARRAY_SIZE(FunctionTable)); } } // namespace