Move SupportedAmongUsVersions to ModInfo

This commit is contained in:
D1GQ committed 2026-03-16 17:07:56 -05:00
1 parent 8ce0dbb9eb
commit cac0f4fd3a
3 files changed
+10 -10

No files matched your search

+1 -9
View File
@@ -81,14 +81,6 @@ internal class BAUPlugin : BasePlugin
/// </summary>
internal static PlatformSpecificData PlatformData => Constants.GetPlatformData();
/// <summary>
/// Gets the list of supported Among Us versions.
/// </summary>
internal static string[] SupportedAmongUsVersions =
[
"2025.11.18",
];
/// <summary>
/// Gets the list of all PlayerControl instances.
/// </summary>
@@ -161,7 +153,7 @@ internal class BAUPlugin : BasePlugin
File.WriteAllText(Path.Combine(BetterDataManager.filePathFolder, "better-log.txt"), "");
Logger_.Log("Better Among Us successfully loaded!");
string SupportedVersions = string.Join(" ", SupportedAmongUsVersions);
string SupportedVersions = string.Join(" ", ModInfo.SupportedAmongUsVersions);
Logger_.Log($"BetterAmongUs {BetterAmongUsVersion}-{ModInfo.BuildDate} - [{AppVersion} --> {SupportedVersions}] {Utils.GetPlatformName(PlatformData.Platform)}");
}
+8
View File
@@ -53,6 +53,14 @@ internal static class ModInfo
/// </summary>
internal const string PLUGIN_VERSION = "1.3.2";
/// <summary>
/// Gets the list of supported Among Us versions.
/// </summary>
internal static string[] SupportedAmongUsVersions =
[
"2025.11.18",
];
/// <summary>
/// The GitHub repository URL for BAU.
/// </summary>
+1 -1
View File
@@ -27,7 +27,7 @@ internal static class ClientPatch
private static bool SignInStatusComponent_SetOnline_Prefix(SignInStatusComponent __instance)
{
// Get supported Among Us versions for BAU
var varSupportedVersions = BAUPlugin.SupportedAmongUsVersions;
var varSupportedVersions = ModInfo.SupportedAmongUsVersions;
Version currentVersion = new(BAUPlugin.AppVersion);
Version firstSupportedVersion = new(varSupportedVersions.First());
Version lastSupportedVersion = new(varSupportedVersions.Last());