using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
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("ClassLibrary1")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClassLibrary1")]
[assembly: AssemblyCopyright("Copyright © 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("40c3129d-0f3f-4c7b-8649-723ef22a00e2")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SoundFixTest;
[BepInPlugin("Joke_sound_testJP", "Joke_sound_testJP", "1.9.5")]
[BepInDependency(/*Could not decode attribute arguments.*/)]
public class SoundFixBase : BaseUnityPlugin
{
private const string modGUID = "Joke_sound_testJP";
private const string modName = "Joke_sound_testJP";
private const string modVersion = "1.9.5";
private readonly Harmony harmony = new Harmony("Joke_sound_testJP");
private static SoundFixBase Instance;
private AudioClip SoundDog;
private AudioClip SoundGiant;
internal ManualLogSource mls;
private void Awake()
{
mls = Logger.CreateLogSource("Joke_sound_testJP");
mls.LogInfo((object)"The test mod has awaken.");
harmony.PatchAll(typeof(SoundFixBase));
SoundDog = SoundTool.GetAudioClip("leonthe2ndtest-Joke_sound_testJP", "Roar.mp3");
SoundGiant = SoundTool.GetAudioClip("leonthe2ndtest-Joke_sound_testJP", "0800. Roar.mp3");
SoundTool.ReplaceAudioClip("Roar", SoundDog, "VoiceAudio");
SoundTool.ReplaceAudioClip("Roar", SoundGiant, "CloseWideSFX");
mls.LogInfo((object)"Changed the sound.");
}
}