1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-17 17:36:44 +00:00

hos: whoops

This commit is contained in:
Michael Scire 2021-10-22 09:55:57 -07:00 committed by SciresM
parent d63be0737b
commit ad03be9a38

View file

@ -64,13 +64,15 @@ namespace ams::hos {
bool IsUnitTestProgramForSetVersion();
void InitializeVersionInternal(bool allow_approximate) {
hos::Version current = hos::Version_Current;
/* 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;
} else {
/* Get the current (and previous approximation of) target firmware. */
hos::Version prev, current;
hos::Version prev;
bool has_prev = false;
{
/* Acquire exclusive access to set hos version. */