From 67c657bf80513c02f4e60e0953c58103e9f80405 Mon Sep 17 00:00:00 2001 From: mailwl Date: Sat, 23 Apr 2016 16:17:03 +0300 Subject: [PATCH] return checks if event and memory created --- src/core/hle/service/gsp_gpu.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/core/hle/service/gsp_gpu.cpp b/src/core/hle/service/gsp_gpu.cpp index 9fb4962d8..d254fdd2e 100644 --- a/src/core/hle/service/gsp_gpu.cpp +++ b/src/core/hle/service/gsp_gpu.cpp @@ -376,7 +376,14 @@ void SignalInterrupt(InterruptId interrupt_id) { if (!gpu_right_acquired) { return; } - + if (nullptr == g_interrupt_event) { + LOG_WARNING(Service_GSP, "cannot synchronize until GSP event has been created!"); + return; + } + if (nullptr == g_shared_memory) { + LOG_WARNING(Service_GSP, "cannot synchronize until GSP shared memory has been created!"); + return; + } for (int thread_id = 0; thread_id < 0x4; ++thread_id) { InterruptRelayQueue* interrupt_relay_queue = GetInterruptRelayQueue(thread_id); u8 next = interrupt_relay_queue->index;