mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-06-29 22:22:40 +02:00
hos: better safe than sorry
This commit is contained in:
parent
ec950d8320
commit
cbebfcb9e2
@ -68,9 +68,7 @@ namespace ams::hos {
|
|||||||
if (IsUnitTestProgramForSetVersion()) {
|
if (IsUnitTestProgramForSetVersion()) {
|
||||||
g_hos_version = hos::Version_Current;
|
g_hos_version = hos::Version_Current;
|
||||||
g_set_hos_version = true;
|
g_set_hos_version = true;
|
||||||
return;
|
} else {
|
||||||
}
|
|
||||||
|
|
||||||
/* Get the current (and previous approximation of) target firmware. */
|
/* Get the current (and previous approximation of) target firmware. */
|
||||||
hos::Version prev, current;
|
hos::Version prev, current;
|
||||||
bool has_prev = false;
|
bool has_prev = false;
|
||||||
@ -116,6 +114,7 @@ namespace ams::hos {
|
|||||||
|
|
||||||
AMS_ABORT_UNLESS(current_major == prev_major);
|
AMS_ABORT_UNLESS(current_major == prev_major);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Set the version for libnx. */
|
/* Set the version for libnx. */
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user