stratosphere: fix building with latest libnx

This commit is contained in:
Michael Scire 2020-03-29 15:24:40 -07:00
parent 87ec045a98
commit 7fc1e86bf5
12 changed files with 109 additions and 110 deletions

View file

@ -43,7 +43,7 @@ namespace ams::pm::impl {
const ncm::ProgramLocation loc;
const cfg::OverrideStatus status;
Handle handle;
ProcessState state;
svc::ProcessState state;
u32 flags;
os::WaitableHolder waitable_holder;
private:
@ -87,20 +87,20 @@ namespace ams::pm::impl {
return this->status;
}
ProcessState GetState() const {
svc::ProcessState GetState() const {
return this->state;
}
void SetState(ProcessState state) {
void SetState(svc::ProcessState state) {
this->state = state;
}
bool HasStarted() const {
return this->state != ProcessState_Created && this->state != ProcessState_CreatedAttached;
return this->state != svc::ProcessState_Created && this->state != svc::ProcessState_CreatedAttached;
}
bool HasExited() const {
return this->state == ProcessState_Exited;
bool HasTerminated() const {
return this->state == svc::ProcessState_Terminated;
}
#define DEFINE_FLAG_SET(flag) \