summaryrefslogtreecommitdiffstats
path: root/src/common
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-04 22:48:48 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-07-21 16:56:55 +0200
commitff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc (patch)
tree3112cd88285713a2b6a56e21c1502ae54f1ae847 /src/common
parentshared_translation: Add missing time zones (diff)
downloadyuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.gz
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.bz2
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.lz
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.xz
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.tar.zst
yuzu-ff6a5031d5ea509375a5dc1ee7b9eeddda6d9ebc.zip
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp4
-rw-r--r--src/common/settings.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index d9948dde8..78fa99113 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -66,8 +66,8 @@ SWITCHABLE(u8, true);
Values values;
-std::string GetTimeZoneString() {
- const auto time_zone_index = static_cast<std::size_t>(values.time_zone_index.GetValue());
+std::string GetTimeZoneString(TimeZone time_zone) {
+ const auto time_zone_index = static_cast<std::size_t>(time_zone);
ASSERT(time_zone_index < Common::TimeZone::GetTimeZoneStrings().size());
std::string location_name;
diff --git a/src/common/settings.h b/src/common/settings.h
index c4339cb1f..928636c72 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -516,7 +516,7 @@ bool IsFastmemEnabled();
float Volume();
-std::string GetTimeZoneString();
+std::string GetTimeZoneString(TimeZone time_zone);
void LogSettings();