From b441082f9801a4fb3b84e57cb710f2cafc94a75b Mon Sep 17 00:00:00 2001 From: AuriRex Date: Thu, 2 Mar 2023 14:59:13 +0100 Subject: [PATCH] Alt://R3 update --- TheArchive.Core/Core/BuildDB.cs | 4 +++- TheArchive.Core/Utilities/Utils.cs | 11 +++++++---- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/TheArchive.Core/Core/BuildDB.cs b/TheArchive.Core/Core/BuildDB.cs index 1efd552b..090e0c9f 100644 --- a/TheArchive.Core/Core/BuildDB.cs +++ b/TheArchive.Core/Core/BuildDB.cs @@ -1,4 +1,5 @@ -using System; +using Harmony; +using System; using System.Collections.Generic; using System.IO; using TheArchive.Core.Managers; @@ -65,6 +66,7 @@ public static int BuildNumber { 29742, RundownID.RundownSix }, { 31994, RundownID.RundownSeven }, { 32283, RundownID.RundownAltOne }, + { 32416, RundownID.RundownAltTwo }, }; public static RundownID GetCurrentRundownID(int buildNumber) diff --git a/TheArchive.Core/Utilities/Utils.cs b/TheArchive.Core/Utilities/Utils.cs index 9297342c..8ca69714 100644 --- a/TheArchive.Core/Utilities/Utils.cs +++ b/TheArchive.Core/Utilities/Utils.cs @@ -349,7 +349,7 @@ public ValueAttribute(object value) /// public enum RundownID : int { - Latest = RundownAltTwo, + Latest = RundownAltThree, RundownUnitialized = -1, RundownUnknown, @@ -362,13 +362,12 @@ public enum RundownID : int RundownSeven, RundownAltOne, RundownAltTwo, + RundownAltThree, } [Flags] public enum RundownFlags : int { - Latest = RundownAltTwo, - None = 0, RundownOne = 1 << 0, RundownTwo = 1 << 1, @@ -379,9 +378,13 @@ public enum RundownFlags : int RundownSeven = 1 << 6, RundownAltOne = 1 << 7, RundownAltTwo = 1 << 8, + RundownAltThree = 1 << 9, All = RundownOne | RundownTwo | RundownThree | RundownFour | RundownFive | RundownSix | RundownSeven - | RundownAltOne | RundownAltTwo, + | RundownAltOne | RundownAltTwo | RundownAltThree, + + Latest = RundownAltThree, +#warning TODO: Latest as external constant because alias behave weird with ToString() depending on the amount of enum entries } public static bool FlagsContain(RundownFlags flags, RundownID id)