diff options
author | bunnei <bunneidev@gmail.com> | 2022-10-19 04:13:20 +0200 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-10-19 20:03:50 +0200 |
commit | 97879faea43c1fad6cbb0b63573c75644705e2e9 (patch) | |
tree | 1061ca966261c67c9db22b2c3a39856e24950c31 /src/core | |
parent | core: Initialize: Add missing braces. (diff) | |
download | yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar.gz yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar.bz2 yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar.lz yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar.xz yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.tar.zst yuzu-97879faea43c1fad6cbb0b63573c75644705e2e9.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/kernel/k_process.h | 16 | ||||
-rw-r--r-- | src/core/hle/kernel/svc_types.h | 18 |
2 files changed, 17 insertions, 17 deletions
diff --git a/src/core/hle/kernel/k_process.h b/src/core/hle/kernel/k_process.h index 788faec1d..2e0cc3d0b 100644 --- a/src/core/hle/kernel/k_process.h +++ b/src/core/hle/kernel/k_process.h @@ -72,14 +72,14 @@ public: ~KProcess() override; enum class State { - Created = Svc::ProcessState_Created, - CreatedAttached = Svc::ProcessState_CreatedAttached, - Running = Svc::ProcessState_Running, - Crashed = Svc::ProcessState_Crashed, - RunningAttached = Svc::ProcessState_RunningAttached, - Terminating = Svc::ProcessState_Terminating, - Terminated = Svc::ProcessState_Terminated, - DebugBreak = Svc::ProcessState_DebugBreak, + Created = static_cast<u32>(Svc::ProcessState::Created), + CreatedAttached = static_cast<u32>(Svc::ProcessState::CreatedAttached), + Running = static_cast<u32>(Svc::ProcessState::Running), + Crashed = static_cast<u32>(Svc::ProcessState::Crashed), + RunningAttached = static_cast<u32>(Svc::ProcessState::RunningAttached), + Terminating = static_cast<u32>(Svc::ProcessState::Terminating), + Terminated = static_cast<u32>(Svc::ProcessState::Terminated), + DebugBreak = static_cast<u32>(Svc::ProcessState::DebugBreak), }; enum : u64 { diff --git a/src/core/hle/kernel/svc_types.h b/src/core/hle/kernel/svc_types.h index bb4f7b004..abb9847fe 100644 --- a/src/core/hle/kernel/svc_types.h +++ b/src/core/hle/kernel/svc_types.h @@ -97,15 +97,15 @@ constexpr inline s32 HighestThreadPriority = 0; constexpr inline s32 SystemThreadPriorityHighest = 16; -enum ProcessState : u32 { - ProcessState_Created = 0, - ProcessState_CreatedAttached = 1, - ProcessState_Running = 2, - ProcessState_Crashed = 3, - ProcessState_RunningAttached = 4, - ProcessState_Terminating = 5, - ProcessState_Terminated = 6, - ProcessState_DebugBreak = 7, +enum class ProcessState : u32 { + Created = 0, + CreatedAttached = 1, + Running = 2, + Crashed = 3, + RunningAttached = 4, + Terminating = 5, + Terminated = 6, + DebugBreak = 7, }; constexpr inline size_t ThreadLocalRegionSize = 0x200; |