mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-15 07:34:23 -04:00
ams-1.0.0: meso no longer optional, remove conditional logic
This commit is contained in:
parent
320f0bbcfd
commit
da208f8001
10 changed files with 19 additions and 53 deletions
|
@ -265,11 +265,7 @@ namespace ams::ldr {
|
|||
flags |= svc::CreateProcessFlag_AddressSpace32BitWithoutAlias;
|
||||
break;
|
||||
case Npdm::AddressSpaceType_64Bit:
|
||||
if (hos::GetVersion() >= hos::Version_2_0_0 || svc::IsKernelMesosphere()) {
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64Bit;
|
||||
} else {
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64BitDeprecated;
|
||||
}
|
||||
flags |= svc::CreateProcessFlag_AddressSpace64Bit;
|
||||
break;
|
||||
default:
|
||||
return ResultInvalidMeta();
|
||||
|
@ -326,11 +322,9 @@ namespace ams::ldr {
|
|||
}
|
||||
}
|
||||
|
||||
/* 11.0.0+ Set Disable DAS merge. */
|
||||
if (hos::GetVersion() >= hos::Version_11_0_0 || svc::IsKernelMesosphere()) {
|
||||
if (meta_flags & Npdm::MetaFlag_DisableDeviceAddressSpaceMerge) {
|
||||
flags |= svc::CreateProcessFlag_DisableDeviceAddressSpaceMerge;
|
||||
}
|
||||
/* 11.0.0+/meso Set Disable DAS merge. */
|
||||
if (meta_flags & Npdm::MetaFlag_DisableDeviceAddressSpaceMerge) {
|
||||
flags |= svc::CreateProcessFlag_DisableDeviceAddressSpaceMerge;
|
||||
}
|
||||
|
||||
*out = flags;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue