mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 20:31:14 +00:00
hos: whoops
This commit is contained in:
parent
cbebfcb9e2
commit
a192ca5172
1 changed files with 3 additions and 1 deletions
|
@ -64,13 +64,15 @@ namespace ams::hos {
|
||||||
bool IsUnitTestProgramForSetVersion();
|
bool IsUnitTestProgramForSetVersion();
|
||||||
|
|
||||||
void InitializeVersionInternal(bool allow_approximate) {
|
void InitializeVersionInternal(bool allow_approximate) {
|
||||||
|
hos::Version current = hos::Version_Current;
|
||||||
|
|
||||||
/* If we're unit testing, just set the version and move on. */
|
/* If we're unit testing, just set the version and move on. */
|
||||||
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;
|
||||||
} else {
|
} 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;
|
||||||
bool has_prev = false;
|
bool has_prev = false;
|
||||||
{
|
{
|
||||||
/* Acquire exclusive access to set hos version. */
|
/* Acquire exclusive access to set hos version. */
|
||||||
|
|
Loading…
Reference in a new issue