mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-11-13 00:26:35 +00:00
hos: better safe than sorry
This commit is contained in:
parent
018ae08409
commit
d63be0737b
1 changed files with 36 additions and 37 deletions
|
@ -68,9 +68,7 @@ namespace ams::hos {
|
|||
if (IsUnitTestProgramForSetVersion()) {
|
||||
g_hos_version = hos::Version_Current;
|
||||
g_set_hos_version = true;
|
||||
return;
|
||||
}
|
||||
|
||||
} else {
|
||||
/* Get the current (and previous approximation of) target firmware. */
|
||||
hos::Version prev, current;
|
||||
bool has_prev = false;
|
||||
|
@ -116,6 +114,7 @@ namespace ams::hos {
|
|||
|
||||
AMS_ABORT_UNLESS(current_major == prev_major);
|
||||
}
|
||||
}
|
||||
|
||||
/* Set the version for libnx. */
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue