mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-24 11:46:58 -04:00
hos: allow turning off ams extension hard-reqs for unit testing
This commit is contained in:
parent
2a842791eb
commit
018ae08409
5 changed files with 42 additions and 1 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue