Преглед изворни кода

return checks if event and memory created

mailwl пре 10 година
родитељ
комит
67c657bf80
1 измењених фајлова са 8 додато и 1 уклоњено
  1. 8 1
      src/core/hle/service/gsp_gpu.cpp

+ 8 - 1
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;