diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-11 17:44:26 -0700 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2015-05-11 17:44:26 -0700 |
commit | 820b97787c9bdfaed018558f33b8d3542e6d6b1f (patch) | |
tree | f2050259d4a9584aa3000335e91b7fc210ec1947 /src/core/hle/kernel/process.h | |
parent | a08bb13e8baec4f565c15042c662ff5a198c42d8 (diff) | |
parent | 25c010dc7dda010175da42e1184e87cd1a45cbe4 (diff) |
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 88ed9a5a..22cd1049 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -55,6 +55,8 @@ public: static const HandleType HANDLE_TYPE = HandleType::Process; HandleType GetHandleType() const override { return HANDLE_TYPE; } + static u32 next_process_id; + /// Name of the process std::string name; /// Title ID corresponding to the process @@ -69,6 +71,9 @@ public: boost::container::static_vector<AddressMapping, 8> address_mappings; ProcessFlags flags; + /// The id of this process + u32 process_id = next_process_id++; + /** * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them * to this process. |