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

This commit is contained in:
Michael Scire authored and SciresM committed 2021-10-25 17:31:14 -07:00
1 parent 2a842791eb
commit 018ae08409
5 files changed
+42 -1

No files matched your search

@@ -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;