mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-18 00:54:23 -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
|
@ -61,7 +61,16 @@ namespace ams::hos {
|
|||
|
||||
}
|
||||
|
||||
bool IsUnitTestProgramForSetVersion();
|
||||
|
||||
void InitializeVersionInternal(bool allow_approximate) {
|
||||
/* If we're unit testing, just set the version and move on. */
|
||||
if (IsUnitTestProgramForSetVersion()) {
|
||||
g_hos_version = hos::Version_Current;
|
||||
g_set_hos_version = true;
|
||||
return;
|
||||
}
|
||||
|
||||
/* Get the current (and previous approximation of) target firmware. */
|
||||
hos::Version prev, current;
|
||||
bool has_prev = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue