diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-03-07 17:44:35 +0100 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:35:33 +0200 |
commit | 83c7ba1ef700eff17f30b6c2782db77710dc322e (patch) | |
tree | 63b5901d96afa6a823a8a14859db84d6c74a283d /src/core/hle/kernel/svc.cpp | |
parent | SCC: Small corrections to CancelSynchronization (diff) | |
download | yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.gz yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.bz2 yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.lz yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.xz yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.zst yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.zip |
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 |