hos::Version: rename enum members
This commit is contained in:
@@ -81,7 +81,7 @@ void __appInit(void) {
|
||||
R_ABORT_UNLESS(i2cInitialize());
|
||||
R_ABORT_UNLESS(bpcInitialize());
|
||||
|
||||
if (hos::GetVersion() >= hos::Version_800) {
|
||||
if (hos::GetVersion() >= hos::Version_8_0_0) {
|
||||
R_ABORT_UNLESS(clkrstInitialize());
|
||||
} else {
|
||||
R_ABORT_UNLESS(pcvInitialize());
|
||||
@@ -108,7 +108,7 @@ void __appExit(void) {
|
||||
spsmExit();
|
||||
psmExit();
|
||||
lblExit();
|
||||
if (hos::GetVersion() >= hos::Version_800) {
|
||||
if (hos::GetVersion() >= hos::Version_8_0_0) {
|
||||
clkrstExit();
|
||||
} else {
|
||||
pcvExit();
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace ams::fatal::srv {
|
||||
|
||||
bool IsInRepair() {
|
||||
/* Before firmware 3.0.0, this wasn't implemented. */
|
||||
if (hos::GetVersion() < hos::Version_300) {
|
||||
if (hos::GetVersion() < hos::Version_3_0_0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace ams::fatal::srv {
|
||||
|
||||
bool NeedsRunTimeReviser() {
|
||||
/* Before firmware 5.0.0, this wasn't implemented. */
|
||||
if (hos::GetVersion() < hos::Version_500) {
|
||||
if (hos::GetVersion() < hos::Version_5_0_0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace ams::fatal::srv {
|
||||
|
||||
if (!this->context.is_creport) {
|
||||
/* On firmware version 2.0.0, use debugging SVCs to collect information. */
|
||||
if (hos::GetVersion() >= hos::Version_200) {
|
||||
if (hos::GetVersion() >= hos::Version_2_0_0) {
|
||||
fatal::srv::TryCollectDebugInformation(&this->context, process_id);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace ams::fatal::srv {
|
||||
|
||||
/* Task implementation. */
|
||||
Result AdjustClockTask::AdjustClockForModule(PcvModule module, u32 hz) {
|
||||
if (hos::GetVersion() >= hos::Version_800) {
|
||||
if (hos::GetVersion() >= hos::Version_8_0_0) {
|
||||
/* On 8.0.0+, convert to module id + use clkrst API. */
|
||||
PcvModuleId module_id;
|
||||
R_TRY(pcvGetModuleId(&module_id, module));
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace ams::fatal::srv {
|
||||
ON_SCOPE_EXIT { viCloseDisplay(&temp_display); };
|
||||
|
||||
/* Turn on the screen. */
|
||||
if (hos::GetVersion() >= hos::Version_300) {
|
||||
if (hos::GetVersion() >= hos::Version_3_0_0) {
|
||||
R_TRY(viSetDisplayPowerState(&temp_display, ViPowerState_On));
|
||||
} else {
|
||||
/* Prior to 3.0.0, the ViPowerState enum was different (0 = Off, 1 = On). */
|
||||
@@ -141,7 +141,7 @@ namespace ams::fatal::srv {
|
||||
R_TRY(viGetDisplayLogicalResolution(&this->display, &display_width, &display_height));
|
||||
|
||||
/* viSetDisplayMagnification was added in 3.0.0. */
|
||||
if (hos::GetVersion() >= hos::Version_300) {
|
||||
if (hos::GetVersion() >= hos::Version_3_0_0) {
|
||||
R_TRY(viSetDisplayMagnification(&this->display, 0, 0, display_width, display_height));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user