Przeglądaj źródła

New3DS: Minor style cleanup to #1520.

bunnei 10 lat temu
rodzic
commit
c106f71beb

+ 1 - 1
src/citra/config.cpp

@@ -78,7 +78,7 @@ void Config::ReadValues() {
     Settings::values.use_virtual_sd = sdl2_config->GetBoolean("Data Storage", "use_virtual_sd", true);
 
     // System
-    Settings::values.is_new3ds = sdl2_config->GetBoolean("System", "is_new3ds", false);
+    Settings::values.is_new_3ds = sdl2_config->GetBoolean("System", "is_new_3ds", false);
     Settings::values.region_value = sdl2_config->GetInteger("System", "region_value", 1);
 
     // Miscellaneous

+ 2 - 2
src/citra_qt/config.cpp

@@ -61,7 +61,7 @@ void Config::ReadValues() {
     qt_config->endGroup();
 
     qt_config->beginGroup("System");
-    Settings::values.is_new3ds = qt_config->value("is_new3ds", false).toBool();
+    Settings::values.is_new_3ds = qt_config->value("is_new_3ds", false).toBool();
     Settings::values.region_value = qt_config->value("region_value", 1).toInt();
     qt_config->endGroup();
 
@@ -152,7 +152,7 @@ void Config::SaveValues() {
     qt_config->endGroup();
 
     qt_config->beginGroup("System");
-    qt_config->setValue("is_new3ds", Settings::values.is_new3ds);
+    qt_config->setValue("is_new_3ds", Settings::values.is_new_3ds);
     qt_config->setValue("region_value", Settings::values.region_value);
     qt_config->endGroup();
 

+ 2 - 2
src/core/hle/service/ptm/ptm.cpp

@@ -91,10 +91,10 @@ void IsLegacyPowerOff(Service::Interface* self) {
 
 void CheckNew3DS(Service::Interface* self) {
     u32* cmd_buff = Kernel::GetCommandBuffer();
-    const bool is_new_3ds = Settings::values.is_new3ds;
+    const bool is_new_3ds = Settings::values.is_new_3ds;
 
     if (is_new_3ds) {
-        LOG_CRITICAL(Service_PTM, "The option 'is_new3ds' is enabled as part of the 'System' settings. Citra does not fully support New3DS emulation yet!");
+        LOG_CRITICAL(Service_PTM, "The option 'is_new_3ds' is enabled as part of the 'System' settings. Citra does not fully support New 3DS emulation yet!");
     }
 
     cmd_buff[1] = RESULT_SUCCESS.raw;

+ 1 - 1
src/core/settings.h

@@ -42,7 +42,7 @@ static const std::array<Values, NUM_INPUTS> All = {{
 
 struct Values {
     // CheckNew3DS
-    bool is_new3ds;
+    bool is_new_3ds;
 
     // Controls
     std::array<int, NativeInput::NUM_INPUTS> input_mappings;