hos: allow turning off ams extension hard-reqs for unit testing

This commit is contained in:
Michael Scire
2021-10-22 09:40:18 -07:00
committed by SciresM
parent 2a842791eb
commit 018ae08409
5 changed files with 42 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ namespace ams::hos {
}
bool IsUnitTestProgramForSetVersion();
void InitializeVersionInternal(bool allow_approximate);
void InitializeForStratosphere() {
@@ -58,7 +59,7 @@ namespace ams::hos {
hos::InitializeVersionInternal(CanAllowTemporaryApproximateVersion());
/* Check that we're running under mesosphere. */
AMS_ABORT_UNLESS(svc::IsKernelMesosphere());
AMS_ABORT_UNLESS(IsUnitTestProgramForSetVersion() || svc::IsKernelMesosphere());
}
}