mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-01 15:28:21 -04:00
kern: SvcMapProcessCodeMemory, SvcUnmapProcessCodeMemory
This commit is contained in:
parent
240e6227e9
commit
11d5353827
5 changed files with 267 additions and 4 deletions
|
@ -107,6 +107,18 @@ namespace ams::kern::svc {
|
|||
}
|
||||
}
|
||||
break;
|
||||
case ams::svc::InfoType_DebuggerAttached:
|
||||
{
|
||||
/* Verify the input handle is invalid. */
|
||||
R_UNLESS(handle == ams::svc::InvalidHandle, svc::ResultInvalidHandle());
|
||||
|
||||
/* Verify the sub-type is valid. */
|
||||
R_UNLESS(info_subtype == 0, svc::ResultInvalidCombination());
|
||||
|
||||
/* Get whether debugger is attached. */
|
||||
*out = GetCurrentProcess().GetDebugObject() != nullptr;
|
||||
}
|
||||
break;
|
||||
case ams::svc::InfoType_ResourceLimit:
|
||||
{
|
||||
/* Verify the input handle is invalid. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue