From 1d3e8a033e510912d7a39c45a8190cb3cbf05188 Mon Sep 17 00:00:00 2001 From: D1GQ Date: Mon, 22 Jun 2026 19:33:23 -0500 Subject: [PATCH] Update BepInEx ver and metadata management --- src/BetterAmongUs.csproj | 66 ++++++++---------------- src/Managers/AudioOverrideManager.cs | 2 + src/ModInfo.cs | 4 +- src/Patches/Client/AudioOverridePatch.cs | 3 +- 4 files changed, 28 insertions(+), 47 deletions(-) diff --git a/src/BetterAmongUs.csproj b/src/BetterAmongUs.csproj index a07bfd6..c94749d 100644 --- a/src/BetterAmongUs.csproj +++ b/src/BetterAmongUs.csproj @@ -16,52 +16,16 @@ - - - - - - - unknown - - - - - - - - - - - unknown - - - - - unknown - $([System.DateTime]::UtcNow.ToString("MM.dd.yyyy")) + $([System.DateTime]::Now.ToString("MM.dd.yyyy")) - - - - - <_Parameter1>CommitHash - <_Parameter2>$(CommitHash) - - - <_Parameter1>BuildDate - <_Parameter2>$(BuildDate) - - - <_Parameter1>BuildConfiguration - <_Parameter2>$(Configuration) - - - - + + + + + @@ -91,14 +55,28 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - + + + + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + + + + all + runtime; build; native; contentfiles; analyzers; buildtransitive + true + diff --git a/src/Managers/AudioOverrideManager.cs b/src/Managers/AudioOverrideManager.cs index a22f606..9d1c8d0 100644 --- a/src/Managers/AudioOverrideManager.cs +++ b/src/Managers/AudioOverrideManager.cs @@ -3,6 +3,8 @@ using BetterAmongUs.Utilities; using System.Reflection; using UnityEngine; +namespace BetterAmongUs.Managers; + /// /// Manages audio override files and their corresponding AudioClip data. /// diff --git a/src/ModInfo.cs b/src/ModInfo.cs index 963b0bf..a36dfba 100644 --- a/src/ModInfo.cs +++ b/src/ModInfo.cs @@ -17,12 +17,12 @@ internal static class ModInfo /// /// Gets the Git commit hash from assembly metadata. /// - public static string CommitHash = GetAssemblyMetadata("CommitHash"); + public static string CommitHash = ThisAssembly.Git.Commit; /// /// Gets the build date from assembly metadata. /// - public static string BuildDate = GetAssemblyMetadata("BuildDate"); + public static string BuildDate = ThisAssembly.Metadata.BuildDate; /// /// The beta number for beta releases. diff --git a/src/Patches/Client/AudioOverridePatch.cs b/src/Patches/Client/AudioOverridePatch.cs index 99d0289..598fbf2 100644 --- a/src/Patches/Client/AudioOverridePatch.cs +++ b/src/Patches/Client/AudioOverridePatch.cs @@ -1,4 +1,5 @@ -using HarmonyLib; +using BetterAmongUs.Managers; +using HarmonyLib; namespace BetterAmongUs.Patches.Client;