aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-18 15:49:36 -0400
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 10:56:55 -0400
commit5c0cf58f73c414d6bb87ba3191a958e8a23f70fd (patch)
tree61ffe216c4246ee63f387169cc2eecb0dc80e216 /src
parentfc4d2cbf344a5412c0744e6059d4bea2760a91d8 (diff)
common: Move global configuration state modifiers back to settings
Diffstat (limited to 'src')
-rw-r--r--src/common/settings.cpp10
-rw-r--r--src/common/settings.h3
-rw-r--r--src/common/settings_common.cpp10
-rw-r--r--src/common/settings_common.h3
-rw-r--r--src/yuzu/configuration/shared_widget.cpp1
5 files changed, 14 insertions, 13 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 59d24a0534..4c1cd1cacb 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -287,4 +287,14 @@ void RestoreGlobalState(bool is_powered_on) {
}
}
+static bool configuring_global = true;
+
+bool IsConfiguringGlobal() {
+ return configuring_global;
+}
+
+void SetConfiguringGlobal(bool is_global) {
+ configuring_global = is_global;
+}
+
} // namespace Settings
diff --git a/src/common/settings.h b/src/common/settings.h
index 618c34334c..655f6468ab 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -529,4 +529,7 @@ void UpdateRescalingInfo();
// Restore the global state of all applicable settings in the Values struct
void RestoreGlobalState(bool is_powered_on);
+bool IsConfiguringGlobal();
+void SetConfiguringGlobal(bool is_global);
+
} // namespace Settings
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp
index 8b666f8b28..1439fb451a 100644
--- a/src/common/settings_common.cpp
+++ b/src/common/settings_common.cpp
@@ -52,14 +52,4 @@ const std::string& BasicSetting::GetLabel() const {
return label;
}
-static bool configuring_global = true;
-
-bool IsConfiguringGlobal() {
- return configuring_global;
-}
-
-void SetConfiguringGlobal(bool is_global) {
- configuring_global = is_global;
-}
-
} // namespace Settings
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index ca218e37b8..a7630a97f6 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -60,9 +60,6 @@ enum Specialization : u8 {
Percentage = (1 << SpecializationAttributeOffset),
};
-bool IsConfiguringGlobal();
-void SetConfiguringGlobal(bool is_global);
-
class BasicSetting;
class Linkage {
diff --git a/src/yuzu/configuration/shared_widget.cpp b/src/yuzu/configuration/shared_widget.cpp
index ba7f60c2d8..c9ab461f62 100644
--- a/src/yuzu/configuration/shared_widget.cpp
+++ b/src/yuzu/configuration/shared_widget.cpp
@@ -39,6 +39,7 @@
#include "common/assert.h"
#include "common/common_types.h"
#include "common/logging/log.h"
+#include "common/settings.h"
#include "common/settings_common.h"
#include "yuzu/configuration/shared_translation.h"