using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using Dog_Gyats_Found.Patches;
using HarmonyLib;
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("Dog Gyats Found")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("HP Inc.")]
[assembly: AssemblyProduct("Dog Gyats Found")]
[assembly: AssemblyCopyright("Copyright © HP Inc. 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4659b952-e745-4cad-9051-70b3e4de27ee")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Dog_Gyats_Found
{
[BepInPlugin("SCorp.DogGyatFound", "Dog Gyats Found", "1.0.0")]
public class DogGyatModBase : BaseUnityPlugin
{
private const string modGUID = "SCorp.DogGyatFound";
private const string modName = "Dog Gyats Found";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("SCorp.DogGyatFound");
private static DogGyatModBase Instance;
internal ManualLogSource mls;
internal static List<AudioClip> SoundFX;
internal static AssetBundle Bundle;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("SCorp.DogGyatFound");
mls.LogInfo((object)"Dog Found GYATTTTTTTTTTTT");
harmony.PatchAll(typeof(MouthDogPatch));
mls = ((BaseUnityPlugin)this).Logger;
string location = ((BaseUnityPlugin)Instance).Info.Location;
location = location.TrimEnd("Dog Gyats Found.dll".ToCharArray());
Bundle = AssetBundle.LoadFromFile(location + "doggyatt");
if ((Object)(object)Bundle != (Object)null)
{
mls.LogInfo((object)"Successfully loaded asset bundle (DogGyattSound)");
SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList();
}
else
{
mls.LogError((object)"Failed to load asset bundle (DogGyattSound)");
}
}
}
}
namespace Dog_Gyats_Found.Patches
{
[HarmonyPatch(typeof(MouthDogAI))]
internal class MouthDogPatch
{
[HarmonyPatch("Start")]
[HarmonyPostfix]
private static void OverrideAudio(MouthDogAI __instance)
{
__instance.screamSFX = DogGyatModBase.SoundFX[0];
}
}
}