summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Yuri Kunde Schlesner2014-12-22 04:32:03 -0200
committerGravatar Yuri Kunde Schlesner2015-01-09 03:51:55 -0200
commitba72208cd4905410eab8b996da0fa05fd05c72ff (patch)
tree3dcaf53894232e83741d3a524c7c53b8da60409c /src/core/hle/kernel/kernel.cpp
parentMove ThreadContext to core/core.h and deal with the fallout (diff)
downloadyuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.gz
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.tar.xz
yuzu-ba72208cd4905410eab8b996da0fa05fd05c72ff.zip
Kernel: Move Thread's definition to the header file
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index 1537702cf..5dfc41bab 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -81,8 +81,7 @@ bool HandleTable::IsValid(Handle handle) const {
81 81
82Object* HandleTable::GetGeneric(Handle handle) const { 82Object* HandleTable::GetGeneric(Handle handle) const {
83 if (handle == CurrentThread) { 83 if (handle == CurrentThread) {
84 // TODO(yuriks) Directly return the pointer once this is possible. 84 return GetCurrentThread();
85 handle = GetCurrentThreadHandle();
86 } else if (handle == CurrentProcess) { 85 } else if (handle == CurrentProcess) {
87 LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess); 86 LOG_ERROR(Kernel, "Current process (%08X) pseudo-handle not supported", CurrentProcess);
88 return nullptr; 87 return nullptr;