Core/HLE: Implemented the SVCs GetProcessId and GetProcessIdOfThread
This commit is contained in:
parent
e98fbadf4a
commit
41f74a16fd
6 changed files with 50 additions and 4 deletions
|
@ -55,6 +55,14 @@ public:
|
|||
static const HandleType HANDLE_TYPE = HandleType::Process;
|
||||
HandleType GetHandleType() const override { return HANDLE_TYPE; }
|
||||
|
||||
static u32 next_process_id;
|
||||
|
||||
/*
|
||||
* Gets the process' id
|
||||
* @returns The process' id
|
||||
*/
|
||||
u32 GetProcessId() const { return process_id; }
|
||||
|
||||
/// Name of the process
|
||||
std::string name;
|
||||
/// Title ID corresponding to the process
|
||||
|
@ -69,6 +77,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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue