summaryrefslogtreecommitdiff
path: root/src/common/settings.cpp
diff options
context:
space:
mode:
authorGravatar lat9nq2023-06-12 17:05:30 -0400
committerGravatar lat9nq2023-07-21 10:56:54 -0400
commit11e7e1b8cec5a665bdc6c9e702f83ad6ea35dd6b (patch)
treec308cfcddc0ffd20561114559329411242e31bb5 /src/common/settings.cpp
parentsettings_setting: Fix errors (diff)
downloadyuzu-11e7e1b8cec5a665bdc6c9e702f83ad6ea35dd6b.tar.gz
yuzu-11e7e1b8cec5a665bdc6c9e702f83ad6ea35dd6b.tar.xz
yuzu-11e7e1b8cec5a665bdc6c9e702f83ad6ea35dd6b.zip
settings: Move some simple data to BasicSetting
Reduces the need for the compiler to duplicate this code, by about 100KB executable size.
Diffstat (limited to '')
-rw-r--r--src/common/settings.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 10cdea844..d98dd2925 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -282,14 +282,6 @@ void UpdateRescalingInfo() {
282 info.active = info.up_scale != 1 || info.down_shift != 0; 282 info.active = info.up_scale != 1 || info.down_shift != 0;
283} 283}
284 284
285std::string BasicSetting::ToStringGlobal() const {
286 return {};
287}
288
289bool BasicSetting::UsingGlobal() const {
290 return true;
291}
292
293void RestoreGlobalState(bool is_powered_on) { 285void RestoreGlobalState(bool is_powered_on) {
294 // If a game is running, DO NOT restore the global settings state 286 // If a game is running, DO NOT restore the global settings state
295 if (is_powered_on) { 287 if (is_powered_on) {