From 708620252e837f2111213c6e36d5f8cc8cfd03e8 Mon Sep 17 00:00:00 2001 From: Thomas Guillemard Date: Thu, 4 Jul 2019 17:20:40 +0200 Subject: ITimeZoneService rewrite (#722) * Clean up ITimeZoneService Add error codes and simplify parsing * Add accurate timezone logic TOOD: LoadTimeZoneRule and location name cmds. * Integrate the new TimeZone logic * SCREAMING_UNIX_CASE => PascalCase * Address comments * Reduce use of pointer in the LoadTimeZoneRule logic * Address comments * Realign tzIfStream logic in LoadTimeZoneRule * Address gdk's comments --- Ryujinx.HLE/HOS/Services/Time/TimeError.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Ryujinx.HLE/HOS/Services/Time/TimeError.cs (limited to 'Ryujinx.HLE/HOS/Services/Time/TimeError.cs') diff --git a/Ryujinx.HLE/HOS/Services/Time/TimeError.cs b/Ryujinx.HLE/HOS/Services/Time/TimeError.cs new file mode 100644 index 00000000..20b2375c --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Time/TimeError.cs @@ -0,0 +1,12 @@ +namespace Ryujinx.HLE.HOS.Services.Time +{ + static class TimeError + { + public const int TimeNotFound = 200; + public const int Overflow = 201; + public const int LocationNameTooLong = 801; + public const int OutOfRange = 902; + public const int TimeZoneConversionFailed = 903; + public const int TimeZoneNotFound = 989; + } +} -- cgit v1.2.3