kernel/svc: Implement the resource limit svcGetInfo option
Allows a process to register the resource limit as part of its handle table.
This commit is contained in:
parent
adc4d332fc
commit
312690b450
4 changed files with 34 additions and 9 deletions
|
@ -44,6 +44,10 @@ SharedPtr<Process> Process::Create(KernelCore& kernel, std::string&& name) {
|
|||
return process;
|
||||
}
|
||||
|
||||
SharedPtr<ResourceLimit> Process::GetResourceLimit() const {
|
||||
return resource_limit;
|
||||
}
|
||||
|
||||
void Process::LoadFromMetadata(const FileSys::ProgramMetadata& metadata) {
|
||||
program_id = metadata.GetTitleID();
|
||||
is_64bit_process = metadata.Is64BitProgram();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue