diff options
| author | 2023-06-13 19:37:41 -0400 | |
|---|---|---|
| committer | 2023-07-21 10:56:54 -0400 | |
| commit | b4f2ad3ff5c49549bc72997360c31d0662a97439 (patch) | |
| tree | 71a6cfc62fd2aca84c10832ea0485ebaf4b12c47 /src/common/settings_common.cpp | |
| parent | configuration/shared: Clean up includes [IWYU] (diff) | |
| download | yuzu-b4f2ad3ff5c49549bc72997360c31d0662a97439.tar.gz yuzu-b4f2ad3ff5c49549bc72997360c31d0662a97439.tar.xz yuzu-b4f2ad3ff5c49549bc72997360c31d0662a97439.zip | |
settings: Move IsConfiguringGlobal to settings_common
Diffstat (limited to '')
| -rw-r--r-- | src/common/settings_common.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp index a7ce99515..fb42991fa 100644 --- a/src/common/settings_common.cpp +++ b/src/common/settings_common.cpp | |||
| @@ -42,4 +42,14 @@ const std::string& BasicSetting::GetLabel() const { | |||
| 42 | return label; | 42 | return label; |
| 43 | } | 43 | } |
| 44 | 44 | ||
| 45 | static bool configuring_global = true; | ||
| 46 | |||
| 47 | bool IsConfiguringGlobal() { | ||
| 48 | return configuring_global; | ||
| 49 | } | ||
| 50 | |||
| 51 | void SetConfiguringGlobal(bool is_global) { | ||
| 52 | configuring_global = is_global; | ||
| 53 | } | ||
| 54 | |||
| 45 | } // namespace Settings | 55 | } // namespace Settings |