summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-03-07 12:44:35 -0400
committerGravatar Fernando Sahmkow2020-06-27 11:35:33 -0400
commit83c7ba1ef700eff17f30b6c2782db77710dc322e (patch)
tree63b5901d96afa6a823a8a14859db84d6c74a283d /src/core/hle/kernel/svc.cpp
parentSCC: Small corrections to CancelSynchronization (diff)
downloadyuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.gz
yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.tar.xz
yuzu-83c7ba1ef700eff17f30b6c2782db77710dc322e.zip
SVC: Correct SetThreadActivity.
Diffstat (limited to 'src/core/hle/kernel/svc.cpp')
-rw-r--r--src/core/hle/kernel/svc.cpp5
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
1012/// Sets the thread activity 1012/// Sets the thread activity
1013static ResultCode SetThreadActivity(Core::System& system, Handle handle, u32 activity) { 1013static ResultCode SetThreadActivity(Core::System& system, Handle handle, u32 activity) {
1014 LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, activity=0x{:08X}", handle, activity); 1014 LOG_DEBUG(Kernel_SVC, "called, handle=0x{:08X}, activity=0x{:08X}", handle, activity);
1015 UNIMPLEMENTED();
1016 if (activity > static_cast<u32>(ThreadActivity::Paused)) { 1015 if (activity > static_cast<u32>(ThreadActivity::Paused)) {
1017 return ERR_INVALID_ENUM_VALUE; 1016 return ERR_INVALID_ENUM_VALUE;
1018 } 1017 }
@@ -1039,9 +1038,7 @@ static ResultCode SetThreadActivity(Core::System& system, Handle handle, u32 act
1039 return ERR_BUSY; 1038 return ERR_BUSY;
1040 } 1039 }
1041 1040
1042 thread->SetActivity(static_cast<ThreadActivity>(activity)); 1041 return thread->SetActivity(static_cast<ThreadActivity>(activity));
1043
1044 return RESULT_SUCCESS;
1045} 1042}
1046 1043
1047/// Gets the thread context 1044/// Gets the thread context