diff options
| author | 2015-05-11 17:44:26 -0700 | |
|---|---|---|
| committer | 2015-05-11 17:44:26 -0700 | |
| commit | 820b97787c9bdfaed018558f33b8d3542e6d6b1f (patch) | |
| tree | f2050259d4a9584aa3000335e91b7fc210ec1947 /src/core/hle/kernel/process.h | |
| parent | Merge pull request #754 from purpasmart96/nwm_typo_fix (diff) | |
| parent | fixup! (diff) | |
| download | yuzu-820b97787c9bdfaed018558f33b8d3542e6d6b1f.tar.gz yuzu-820b97787c9bdfaed018558f33b8d3542e6d6b1f.tar.xz yuzu-820b97787c9bdfaed018558f33b8d3542e6d6b1f.zip | |
Merge pull request #750 from Subv/process_svc
Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread
Diffstat (limited to 'src/core/hle/kernel/process.h')
| -rw-r--r-- | src/core/hle/kernel/process.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 88ed9a5a5..22cd1049b 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -55,6 +55,8 @@ public: | |||
| 55 | static const HandleType HANDLE_TYPE = HandleType::Process; | 55 | static const HandleType HANDLE_TYPE = HandleType::Process; |
| 56 | HandleType GetHandleType() const override { return HANDLE_TYPE; } | 56 | HandleType GetHandleType() const override { return HANDLE_TYPE; } |
| 57 | 57 | ||
| 58 | static u32 next_process_id; | ||
| 59 | |||
| 58 | /// Name of the process | 60 | /// Name of the process |
| 59 | std::string name; | 61 | std::string name; |
| 60 | /// Title ID corresponding to the process | 62 | /// Title ID corresponding to the process |
| @@ -69,6 +71,9 @@ public: | |||
| 69 | boost::container::static_vector<AddressMapping, 8> address_mappings; | 71 | boost::container::static_vector<AddressMapping, 8> address_mappings; |
| 70 | ProcessFlags flags; | 72 | ProcessFlags flags; |
| 71 | 73 | ||
| 74 | /// The id of this process | ||
| 75 | u32 process_id = next_process_id++; | ||
| 76 | |||
| 72 | /** | 77 | /** |
| 73 | * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them | 78 | * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them |
| 74 | * to this process. | 79 | * to this process. |