using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using LCSoundTool; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: AssemblyTitle("BarkFartLandmine")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("BarkFartLandmine")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("78c1e07a-ad83-4353-a178-0de7ffe262d6")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace BarkFartLandmine; [BepInPlugin("NinaJuchkova.BarkFartLandmine", "Bark Fart Landmine", "1.0.0")] public class BarkFartBase : BaseUnityPlugin { private const string modGUID = "NinaJuchkova.BarkFartLandmine"; private const string modName = "Bark Fart Landmine"; private const string modVersion = "1.0.0"; private void Awake() { ((Object)((Component)this).gameObject).hideFlags = (HideFlags)61; string text = Path.Combine(Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location), "barkfartbundle"); AssetBundle val = AssetBundle.LoadFromFile(text); if ((Object)(object)val == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load bundle!"); return; } AudioClip val2 = val.LoadAsset("MineTrigger"); AudioClip val3 = val.LoadAsset("MineDetonate"); AudioClip val4 = val.LoadAsset("MineDetonateFar"); if ((Object)(object)val2 == (Object)null || (Object)(object)val4 == (Object)null || (Object)(object)val3 == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Missing audio clips in bundle!"); return; } SoundTool.ReplaceAudioClip("MineTrigger", val2); SoundTool.ReplaceAudioClip("MineDetonate", val3); SoundTool.ReplaceAudioClip("MineDetonateFar", val4); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Bark Fart successfully loaded."); } }