diff options
| author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-03-07 12:44:35 -0400 |
|---|---|---|
| committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 11:35:33 -0400 |
| commit | 83c7ba1ef700eff17f30b6c2782db77710dc322e (patch) | |
| tree | 63b5901d96afa6a823a8a14859db84d6c74a283d /src/core/hle/kernel/svc.cpp | |
| parent | a66c61ca2de61e3a46fa857cf8afea359b2fb8eb (diff) | |
SVC: Correct SetThreadActivity.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
| -rw-r--r-- | src/core/hle/kernel/svc.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/kernel/svc.cpp b/src/core/hle/kernel/svc.cpp index 718462b2b..da2f90a1d 100644 --- a/src/core/hle/kernel/svc.cpp +++ b/src/core/hle/kernel/svc.cpp @@ -1012,7 +1012,6 @@ static ResultCode UnmapPhysicalMemory(Core::System& system, VAddr addr, u64 size /// Sets the thread activity static ResultCode SetThreadActivity(Core::System& system, Handle handle, u32 activity) { LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, activity=0x{:08X}", handle, activity); - UNIMPLEMENTED(); if (activity > static_cast<u32>(ThreadActivity::Paused)) { return ERR_INVALID_ENUM_VALUE; } @@ -1039,9 +1038,7 @@ static ResultCode SetThreadActivity(Core::System& system, Handle handle, u32 act return ERR_BUSY; } - thread->SetActivity(static_cast<ThreadActivity>(activity)); - - return RESULT_SUCCESS; + return thread->SetActivity(static_cast<ThreadActivity>(activity)); } /// Gets the thread context |
