mirror of
https://github.com/D1GQ/BetterAmongUs.git
synced 2026-10-19 15:51:52 +00:00
Move SupportedAmongUsVersions to ModInfo
This commit is contained in:
1 parent
8ce0dbb9eb
commit
cac0f4fd3a
3 files changed
+10
-10
No files matched your search
+1
-9
@@ -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)}");
|
||||
}
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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());
|
||||
|
||||
Reference in new issue
Block a user