diff options
| author | Lioncash <mathew1800@gmail.com> | 2018-12-19 12:57:47 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2018-12-21 07:05:31 -0500 |
| commit | 6ff5135521a59cd510ba3ecc8d5ff5d56cdbf08e (patch) | |
| tree | f2b45468a65f650c03e47fe3a494cf1d27c1fab3 /src/core/hle/kernel/handle_table.h | |
| parent | fc8da2d5e36b665dae784ee8e9915dfffb379830 (diff) | |
kernel/process: Introduce process capability parsing skeleton
We've had the old kernel capability parser from Citra, however, this is
unused code and doesn't actually map to how the kernel on the Switch
does it. This introduces the basic functional skeleton for parsing
process capabilities.
Diffstat (limited to 'src/core/hle/kernel/handle_table.h')
| -rw-r--r-- | src/core/hle/kernel/handle_table.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/hle/kernel/handle_table.h b/src/core/hle/kernel/handle_table.h index 6b7927fd8..89a3bc740 100644 --- a/src/core/hle/kernel/handle_table.h +++ b/src/core/hle/kernel/handle_table.h @@ -43,6 +43,9 @@ enum KernelHandle : Handle { */ class HandleTable final : NonCopyable { public: + /// This is the maximum limit of handles allowed per process in Horizon + static constexpr std::size_t MAX_COUNT = 1024; + HandleTable(); ~HandleTable(); @@ -91,9 +94,6 @@ public: void Clear(); private: - /// This is the maximum limit of handles allowed per process in Horizon - static constexpr std::size_t MAX_COUNT = 1024; - /// Stores the Object referenced by the handle or null if the slot is empty. std::array<SharedPtr<Object>, MAX_COUNT> objects; |
