Przeglądaj źródła

tz_manager: Warn on unimplemented code

lat9nq 3 lat temu
rodzic
commit
78a47f1ee8

+ 7 - 0
src/core/hle/service/time/time_zone_manager.cpp

@@ -474,6 +474,13 @@ static bool ParsePosixName(const char* name, TimeZoneRule& rule) {
                     their_std_offset = their_offset;
                     their_std_offset = their_offset;
                 }
                 }
             }
             }
+
+            if (rule.time_count > 0) {
+                UNIMPLEMENTED();
+                // TODO (lat9nq): Implement eggert/tz/localtime.c:tzparse:1329
+                // Seems to be unused in yuzu for now: I never hit the UNIMPLEMENTED in testing
+            }
+
             rule.ttis[0].gmt_offset = -std_offset;
             rule.ttis[0].gmt_offset = -std_offset;
             rule.ttis[0].is_dst = false;
             rule.ttis[0].is_dst = false;
             rule.ttis[0].abbreviation_list_index = 0;
             rule.ttis[0].abbreviation_list_index = 0;