VERY experimental Nintendo Switch 2 emulator
C++
SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability.
bunnei4d6c96b7d8d7
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cppindex 01fc056a1a..76c6a07710 100644--- a/src/core/hle/svc.cpp+++ b/src/core/hle/svc.cpp@@ -90,12 +90,12 @@ Result ConnectToPort(void* _out, const char* port_name) {/// Synchronize to an OS serviceResult SendSyncRequest(Handle handle) {- bool wait = false;Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle);_assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!");DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName());+ bool wait = false;Result res = object->SyncRequest(&wait);if (wait) {Kernel::WaitCurrentThread(WAITTYPE_SYNCH); // TODO(bunnei): Is this correct?