core: hle: kernel: Migrate ProcessState to enum class.
This commit is contained in:
parent
a264b54022
commit
97879faea4
|
@ -72,14 +72,14 @@ public:
|
||||||
~KProcess() override;
|
~KProcess() override;
|
||||||
|
|
||||||
enum class State {
|
enum class State {
|
||||||
Created = Svc::ProcessState_Created,
|
Created = static_cast<u32>(Svc::ProcessState::Created),
|
||||||
CreatedAttached = Svc::ProcessState_CreatedAttached,
|
CreatedAttached = static_cast<u32>(Svc::ProcessState::CreatedAttached),
|
||||||
Running = Svc::ProcessState_Running,
|
Running = static_cast<u32>(Svc::ProcessState::Running),
|
||||||
Crashed = Svc::ProcessState_Crashed,
|
Crashed = static_cast<u32>(Svc::ProcessState::Crashed),
|
||||||
RunningAttached = Svc::ProcessState_RunningAttached,
|
RunningAttached = static_cast<u32>(Svc::ProcessState::RunningAttached),
|
||||||
Terminating = Svc::ProcessState_Terminating,
|
Terminating = static_cast<u32>(Svc::ProcessState::Terminating),
|
||||||
Terminated = Svc::ProcessState_Terminated,
|
Terminated = static_cast<u32>(Svc::ProcessState::Terminated),
|
||||||
DebugBreak = Svc::ProcessState_DebugBreak,
|
DebugBreak = static_cast<u32>(Svc::ProcessState::DebugBreak),
|
||||||
};
|
};
|
||||||
|
|
||||||
enum : u64 {
|
enum : u64 {
|
||||||
|
|
|
@ -97,15 +97,15 @@ constexpr inline s32 HighestThreadPriority = 0;
|
||||||
|
|
||||||
constexpr inline s32 SystemThreadPriorityHighest = 16;
|
constexpr inline s32 SystemThreadPriorityHighest = 16;
|
||||||
|
|
||||||
enum ProcessState : u32 {
|
enum class ProcessState : u32 {
|
||||||
ProcessState_Created = 0,
|
Created = 0,
|
||||||
ProcessState_CreatedAttached = 1,
|
CreatedAttached = 1,
|
||||||
ProcessState_Running = 2,
|
Running = 2,
|
||||||
ProcessState_Crashed = 3,
|
Crashed = 3,
|
||||||
ProcessState_RunningAttached = 4,
|
RunningAttached = 4,
|
||||||
ProcessState_Terminating = 5,
|
Terminating = 5,
|
||||||
ProcessState_Terminated = 6,
|
Terminated = 6,
|
||||||
ProcessState_DebugBreak = 7,
|
DebugBreak = 7,
|
||||||
};
|
};
|
||||||
|
|
||||||
constexpr inline size_t ThreadLocalRegionSize = 0x200;
|
constexpr inline size_t ThreadLocalRegionSize = 0x200;
|
||||||
|
|
Reference in New Issue