summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/svc
diff options
context:
space:
mode:
authorGravatar Liam2023-03-07 16:45:13 -0500
committerGravatar Liam2023-03-12 22:09:27 -0400
commit9863db9db45339d5cf8f685b316e93660da71b0b (patch)
tree32258e70294d126857d41f2182c55e4b3e580fa5 /src/core/hle/kernel/svc
parentkernel: convert KThread to new style (diff)
downloadyuzu-9863db9db45339d5cf8f685b316e93660da71b0b.tar.gz
yuzu-9863db9db45339d5cf8f685b316e93660da71b0b.tar.xz
yuzu-9863db9db45339d5cf8f685b316e93660da71b0b.zip
kernel: convert KProcess to new style
Diffstat (limited to 'src/core/hle/kernel/svc')
-rw-r--r--src/core/hle/kernel/svc/svc_info.cpp2
-rw-r--r--src/core/hle/kernel/svc/svc_process.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/svc/svc_info.cpp b/src/core/hle/kernel/svc/svc_info.cpp
index 7d94347c5..04b6d6964 100644
--- a/src/core/hle/kernel/svc/svc_info.cpp
+++ b/src/core/hle/kernel/svc/svc_info.cpp
@@ -103,7 +103,7 @@ Result GetInfo(Core::System& system, u64* result, InfoType info_id_type, Handle
103 R_SUCCEED(); 103 R_SUCCEED();
104 104
105 case InfoType::ProgramId: 105 case InfoType::ProgramId:
106 *result = process->GetProgramID(); 106 *result = process->GetProgramId();
107 R_SUCCEED(); 107 R_SUCCEED();
108 108
109 case InfoType::UserExceptionContextAddress: 109 case InfoType::UserExceptionContextAddress:
diff --git a/src/core/hle/kernel/svc/svc_process.cpp b/src/core/hle/kernel/svc/svc_process.cpp
index e4149fba9..b538c37e7 100644
--- a/src/core/hle/kernel/svc/svc_process.cpp
+++ b/src/core/hle/kernel/svc/svc_process.cpp
@@ -11,7 +11,7 @@ namespace Kernel::Svc {
11void ExitProcess(Core::System& system) { 11void ExitProcess(Core::System& system) {
12 auto* current_process = GetCurrentProcessPointer(system.Kernel()); 12 auto* current_process = GetCurrentProcessPointer(system.Kernel());
13 13
14 LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessID()); 14 LOG_INFO(Kernel_SVC, "Process {} exiting", current_process->GetProcessId());
15 ASSERT_MSG(current_process->GetState() == KProcess::State::Running, 15 ASSERT_MSG(current_process->GetState() == KProcess::State::Running,
16 "Process has already exited"); 16 "Process has already exited");
17 17
@@ -80,7 +80,7 @@ Result GetProcessList(Core::System& system, s32* out_num_processes, VAddr out_pr
80 std::min(static_cast<std::size_t>(out_process_ids_size), num_processes); 80 std::min(static_cast<std::size_t>(out_process_ids_size), num_processes);
81 81
82 for (std::size_t i = 0; i < copy_amount; ++i) { 82 for (std::size_t i = 0; i < copy_amount; ++i) {
83 memory.Write64(out_process_ids, process_list[i]->GetProcessID()); 83 memory.Write64(out_process_ids, process_list[i]->GetProcessId());
84 out_process_ids += sizeof(u64); 84 out_process_ids += sizeof(u64);
85 } 85 }
86 86