kernel: convert KProcess to new style
This commit is contained in:
parent
6bfb4c8f71
commit
9863db9db4
10 changed files with 254 additions and 240 deletions
|
@ -18,14 +18,14 @@ namespace {
|
|||
std::optional<u64> GetTitleIDForProcessID(const Core::System& system, u64 process_id) {
|
||||
const auto& list = system.Kernel().GetProcessList();
|
||||
const auto iter = std::find_if(list.begin(), list.end(), [&process_id](const auto& process) {
|
||||
return process->GetProcessID() == process_id;
|
||||
return process->GetProcessId() == process_id;
|
||||
});
|
||||
|
||||
if (iter == list.end()) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
return (*iter)->GetProgramID();
|
||||
return (*iter)->GetProgramId();
|
||||
}
|
||||
} // Anonymous namespace
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue