summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time
diff options
context:
space:
mode:
authorlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-04 02:20:35 +0200
committerlat9nq <22451773+lat9nq@users.noreply.github.com>2023-06-05 21:15:23 +0200
commit63c51abe42c95b5248eb1a14ffbe295ac27b1a71 (patch)
treeb290c8ec4f1212a1dc39fc1a78bd3c653828f0dc /src/core/hle/service/time
parenttime_zone: Handle offset time zones (diff)
downloadyuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.gz
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.bz2
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.lz
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.xz
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.tar.zst
yuzu-63c51abe42c95b5248eb1a14ffbe295ac27b1a71.zip
Diffstat (limited to 'src/core/hle/service/time')
-rw-r--r--src/core/hle/service/time/time_zone_manager.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/hle/service/time/time_zone_manager.cpp b/src/core/hle/service/time/time_zone_manager.cpp
index 5e507dff2..3d293d025 100644
--- a/src/core/hle/service/time/time_zone_manager.cpp
+++ b/src/core/hle/service/time/time_zone_manager.cpp
@@ -130,10 +130,10 @@ static constexpr int GetQZName(const char* name, int offset, char delimiter) {
}
static constexpr int GetTZName(const char* name, int offset) {
- for (char value{name[offset]};
- value != '\0' && !IsDigit(value) && value != ',' && value != '-' && value != '+';
- offset++) {
- value = name[offset];
+ char c;
+
+ while ((c = name[offset]) != '\0' && !IsDigit(c) && c != ',' && c != '-' && c != '+') {
+ ++offset;
}
return offset;
}