diff options
| author | Mary <me@thog.eu> | 2021-12-05 00:23:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-04 20:23:26 -0300 |
| commit | 2ab777885b174edb554ef3df7737f112b82e8b5d (patch) | |
| tree | deb24e48b89d473a68dc76dae43e0250f1a63e73 /Ryujinx.HLE/HOS/Horizon.cs | |
| parent | f39fce8f54c1e4dfa1ca56e4a2b1668e9ea30956 (diff) | |
kernel: Improve GetInfo readability and update to 13.0.0 (#2900)
* kernel: Define InfoTYpe and make it less obscure when reading GetInfo
Also map ThreadTickCount to 25 instead of 0xF0000002 like 13.x kernel.
* kernel: Implement GetInfo IsApplication
* kernel: Implement GetInfo FreeThreadCount
Diffstat (limited to 'Ryujinx.HLE/HOS/Horizon.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Horizon.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Ryujinx.HLE/HOS/Horizon.cs b/Ryujinx.HLE/HOS/Horizon.cs index 877bb389..74bdb647 100644 --- a/Ryujinx.HLE/HOS/Horizon.cs +++ b/Ryujinx.HLE/HOS/Horizon.cs @@ -404,7 +404,7 @@ namespace Ryujinx.HLE.HOS lock (KernelContext.Processes) { // Terminate application. - foreach (KProcess process in KernelContext.Processes.Values.Where(x => x.Flags.HasFlag(ProcessCreationFlags.IsApplication))) + foreach (KProcess process in KernelContext.Processes.Values.Where(x => x.IsApplication)) { process.Terminate(); process.DecrementReferenceCount(); @@ -415,7 +415,7 @@ namespace Ryujinx.HLE.HOS // Terminate HLE services (must be done after the application is already terminated, // otherwise the application will receive errors due to service termination). - foreach (KProcess process in KernelContext.Processes.Values.Where(x => !x.Flags.HasFlag(ProcessCreationFlags.IsApplication))) + foreach (KProcess process in KernelContext.Processes.Values.Where(x => !x.IsApplication)) { process.Terminate(); process.DecrementReferenceCount(); @@ -461,7 +461,7 @@ namespace Ryujinx.HLE.HOS { foreach (KProcess process in KernelContext.Processes.Values) { - if (process.Flags.HasFlag(ProcessCreationFlags.IsApplication)) + if (process.IsApplication) { // Only game process should be paused. process.SetActivity(pause); |
