diff options
| author | 2014-12-22 04:32:03 -0200 | |
|---|---|---|
| committer | 2015-01-09 03:51:55 -0200 | |
| commit | ba72208cd4905410eab8b996da0fa05fd05c72ff (patch) | |
| tree | 3dcaf53894232e83741d3a524c7c53b8da60409c /src/core/hle/kernel/kernel.cpp | |
| parent | Move ThreadContext to core/core.h and deal with the fallout (diff) | |
| download | yuzu-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.cpp | 3 |
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 | ||
| 82 | Object* HandleTable::GetGeneric(Handle handle) const { | 82 | Object* 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; |