ams-1.0.0: meso no longer optional, remove conditional logic

This commit is contained in:
Michael Scire
2021-09-05 10:08:30 -07:00
committed by SciresM
parent 320f0bbcfd
commit da208f8001
10 changed files with 19 additions and 53 deletions

View File

@@ -40,6 +40,9 @@ namespace ams::hos {
/* Initialize hos::Version API. */
hos::SetVersionForLibnxInternal();
/* Check that we're running under mesosphere. */
AMS_ABORT_UNLESS(svc::IsKernelMesosphere());
}
void InitializeForStratosphereDebug(hos::Version debug_version) {
@@ -48,6 +51,9 @@ namespace ams::hos {
/* Initialize hos::Version API. */
hos::SetVersionForLibnxInternalDebug(debug_version);
/* Check that we're running under mesosphere. */
AMS_ABORT_UNLESS(svc::IsKernelMesosphere());
}
}