mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-02 15:49:48 -04:00
strat: automatic program id detection
This commit is contained in:
parent
9ecec1b935
commit
18825866ac
28 changed files with 88 additions and 129 deletions
|
@ -16,13 +16,17 @@
|
|||
|
||||
#pragma once
|
||||
#include <stratosphere/os/os_managed_handle.hpp>
|
||||
#include <stratosphere/ncm/ncm_program_id.hpp>
|
||||
|
||||
namespace ams::os {
|
||||
|
||||
::Handle GetCurrentProcessHandle();
|
||||
|
||||
NX_INLINE ProcessId GetCurrentProcessId() {
|
||||
ALWAYS_INLINE ProcessId GetCurrentProcessId() {
|
||||
return GetProcessId(GetCurrentProcessHandle());
|
||||
}
|
||||
|
||||
/* TODO: Another header? */
|
||||
ncm::ProgramId GetCurrentProgramId();
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue