summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2014-06-06 00:44:44 -0400
committerGravatar bunnei2014-06-13 09:51:13 -0400
commit4d6c96b7d8d77b87fcc137aa03cd6a4e4313bdc7 (patch)
treef6e1a5f5bb503cf570c7f8cee1312ce48feaa97b /src
parentHLE: Updated all uses of NULL to nullptr (to be C++11 compliant) (diff)
downloadyuzu-4d6c96b7d8d77b87fcc137aa03cd6a4e4313bdc7.tar.gz
yuzu-4d6c96b7d8d77b87fcc137aa03cd6a4e4313bdc7.tar.xz
yuzu-4d6c96b7d8d77b87fcc137aa03cd6a4e4313bdc7.zip
SVC: Moved declaration of "wait" variable in SendSyncRequest for improved readability.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/svc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/svc.cpp b/src/core/hle/svc.cpp
index 01fc056a1..76c6a0771 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) {
90 90
91/// Synchronize to an OS service 91/// Synchronize to an OS service
92Result SendSyncRequest(Handle handle) { 92Result SendSyncRequest(Handle handle) {
93 bool wait = false;
94 Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle); 93 Kernel::Object* object = Kernel::g_object_pool.GetFast<Kernel::Object>(handle);
95 94
96 _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!"); 95 _assert_msg_(KERNEL, (object != nullptr), "called, but kernel object is nullptr!");
97 DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName()); 96 DEBUG_LOG(SVC, "called handle=0x%08X(%s)", handle, object->GetTypeName());
98 97
98 bool wait = false;
99 Result res = object->SyncRequest(&wait); 99 Result res = object->SyncRequest(&wait);
100 if (wait) { 100 if (wait) {
101 Kernel::WaitCurrentThread(WAITTYPE_SYNCH); // TODO(bunnei): Is this correct? 101 Kernel::WaitCurrentThread(WAITTYPE_SYNCH); // TODO(bunnei): Is this correct?