hos: allow turning off ams extension hard-reqs for unit testing
This commit is contained in:
1 parent
2a842791eb
commit
018ae08409
5 files changed
+42
-1
No files matched your search
@@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user