diff options
| author | 2015-05-11 09:15:10 -0500 | |
|---|---|---|
| committer | 2015-05-11 09:15:10 -0500 | |
| commit | 41f74a16fd55934f747f6f7e1f7a6d4d6a3d4e57 (patch) | |
| tree | b9500ee328f5b918edca38251878c4f346a30807 /src/core/hle/kernel/process.h | |
| parent | Merge pull request #740 from yuriks/gsp-shmem (diff) | |
| download | yuzu-41f74a16fd55934f747f6f7e1f7a6d4d6a3d4e57.tar.gz yuzu-41f74a16fd55934f747f6f7e1f7a6d4d6a3d4e57.tar.xz yuzu-41f74a16fd55934f747f6f7e1f7a6d4d6a3d4e57.zip | |
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 88ed9a5a5..11c2ad12d 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h | |||
| @@ -55,6 +55,14 @@ 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 | |||
| 60 | /* | ||
| 61 | * Gets the process' id | ||
| 62 | * @returns The process' id | ||
| 63 | */ | ||
| 64 | u32 GetProcessId() const { return process_id; } | ||
| 65 | |||
| 58 | /// Name of the process | 66 | /// Name of the process |
| 59 | std::string name; | 67 | std::string name; |
| 60 | /// Title ID corresponding to the process | 68 | /// Title ID corresponding to the process |
| @@ -69,6 +77,9 @@ public: | |||
| 69 | boost::container::static_vector<AddressMapping, 8> address_mappings; | 77 | boost::container::static_vector<AddressMapping, 8> address_mappings; |
| 70 | ProcessFlags flags; | 78 | ProcessFlags flags; |
| 71 | 79 | ||
| 80 | /// The id of this process | ||
| 81 | u32 process_id = next_process_id++; | ||
| 82 | |||
| 72 | /** | 83 | /** |
| 73 | * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them | 84 | * Parses a list of kernel capability descriptors (as found in the ExHeader) and applies them |
| 74 | * to this process. | 85 | * to this process. |