forked from ShuriZma/suyu
1
0
Fork 0

return checks if event and memory created

This commit is contained in:
mailwl 2016-04-23 16:17:03 +03:00
parent efdff9ad3e
commit 67c657bf80
1 changed files with 8 additions and 1 deletions

View File

@ -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;