mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-27 13:14:15 -04:00
mitm/cfg: pass around override status for decision-making
This commit is contained in:
parent
37e065fa2d
commit
421324b498
59 changed files with 425 additions and 265 deletions
|
@ -41,6 +41,7 @@ namespace ams::pm::impl {
|
|||
const os::ProcessId process_id;
|
||||
const ldr::PinId pin_id;
|
||||
const ncm::ProgramLocation loc;
|
||||
const cfg::OverrideStatus status;
|
||||
Handle handle;
|
||||
ProcessState state;
|
||||
u32 flags;
|
||||
|
@ -58,7 +59,7 @@ namespace ams::pm::impl {
|
|||
return (this->flags & flag);
|
||||
}
|
||||
public:
|
||||
ProcessInfo(Handle h, os::ProcessId pid, ldr::PinId pin, const ncm::ProgramLocation &l);
|
||||
ProcessInfo(Handle h, os::ProcessId pid, ldr::PinId pin, const ncm::ProgramLocation &l, const cfg::OverrideStatus &s);
|
||||
~ProcessInfo();
|
||||
void Cleanup();
|
||||
|
||||
|
@ -78,10 +79,14 @@ namespace ams::pm::impl {
|
|||
return this->pin_id;
|
||||
}
|
||||
|
||||
const ncm::ProgramLocation &GetProgramLocation() {
|
||||
const ncm::ProgramLocation &GetProgramLocation() const {
|
||||
return this->loc;
|
||||
}
|
||||
|
||||
const cfg::OverrideStatus &GetOverrideStatus() const {
|
||||
return this->status;
|
||||
}
|
||||
|
||||
ProcessState GetState() const {
|
||||
return this->state;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue