Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of O Kruci Tady Jdeme Znovu v1.0.0
OKruciTadyJdemeZnovu.dll
Decompiled 2 years agousing 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 HarmonyLib; using OKruciTadyJdemeZnovu.Patches; 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("OKruciTadyJdemeZnovu")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("OKruciTadyJdemeZnovu")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("436f22cc-3df1-45d1-941b-3ce86e445795")] [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 OKruciTadyJdemeZnovu { [BepInPlugin("TheCoolestDuck.OKruciTadyJdemeZnovu", "Mikýř je tu znovu", "1.0.0.0")] public class KruciBase : BaseUnityPlugin { private const string modGUID = "TheCoolestDuck.OKruciTadyJdemeZnovu"; private const string modName = "Mikýř je tu znovu"; private const string modVersion = "1.0.0.0"; private readonly Harmony harmony = new Harmony("TheCoolestDuck.OKruciTadyJdemeZnovu"); private static KruciBase 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("TheCoolestDuck.OKruciTadyJdemeZnovu"); mls.LogInfo((object)"Přišli jsme znovu"); harmony.PatchAll(typeof(KruciBase)); harmony.PatchAll(typeof(InitializeGamePatch)); mls = ((BaseUnityPlugin)this).Logger; SoundFX = new List<AudioClip>(); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("OKruciTadyJdemeZnovu.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "kruci"); if ((Object)(object)Bundle != (Object)null) { mls.LogInfo((object)"Tady jdeme znovu"); SoundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); } else { mls.LogError((object)"Tady nejdeme znovu"); } } } } namespace OKruciTadyJdemeZnovu.Patches { [HarmonyPatch(typeof(InitializeGame))] internal class InitializeGamePatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(InitializeGame __instance) { __instance.bootUpAudio.PlayOneShot(KruciBase.SoundFX[0]); } } }