mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-14 02:18:19 -05:00
kernel: convert KProcess to new style
This commit is contained in:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user