using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using Microsoft.CodeAnalysis; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyCompany("FVerParser")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+bfbb14c69c183d93e4986aa6b388a58a603c0a9d")] [assembly: AssemblyProduct("FVerParser")] [assembly: AssemblyTitle("FVerParser")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace CupheadArchipelago.Helpers.FVerParser { public class FVerParse { public static RawFVer GetRawFVer(string ver, ushort rel = 0) { string[] array = ver.Split(new char[2] { '.', '-' }, 5); if (int.Parse(array[0]) > 0) { throw new Exception("Version parsing system needs to be changed for main version!"); } int num = int.Parse(array[1]); if (1 == 0) { } string text = num switch { 1 => "preview", 2 => "alpha", 3 => "beta", 4 => "rc", _ => "unknown", }; if (1 == 0) { } string prefix = text; int baseline = int.Parse(array[2]) + 1; int revision = int.Parse(array[3]); string postfix = ((array.Length > 4) ? array[4] : ""); return new RawFVer(baseline, revision, rel, prefix, postfix); } } public class RawFVer(int baseline, int revision, int release, string prefix, string postfix) { public readonly int baseline = baseline; public readonly int revision = revision; public readonly int release = release; public readonly string prefix = prefix; public readonly string postfix = postfix; } }