strat: automatic program id detection
This commit is contained in:
@@ -36,7 +36,7 @@ namespace ams::os {
|
||||
}
|
||||
|
||||
IoRegion(size_t size, Handle handle, bool managed) {
|
||||
this->Attach(size, handle, managed);
|
||||
this->AttachHandle(size, handle, managed);
|
||||
}
|
||||
|
||||
~IoRegion() {
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user