2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

core: hle: kernel: Migrate ProcessState to enum class.

This commit is contained in:
bunnei 2022-10-18 19:13:20 -07:00 committed by Liam
parent a264b54022
commit 97879faea4
2 changed files with 17 additions and 17 deletions

View file

@ -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 {

View file

@ -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;