Decompiled source of SoundPack v1.0.4
SoundPack.dll
Decompiled 10 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using LCSoundTool; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("SoundPack")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("My first plugin")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SoundPack")] [assembly: AssemblyTitle("SoundPack")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SoundPack { [BepInPlugin("SoundPack", "SoundPack", "1.0.0")] [BepInProcess("Lethal Company.exe")] public class Plugin : BaseUnityPlugin { private ConfigEntry<string> configGreeting; private ConfigEntry<bool> configDisplayGreeting; private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin SoundPack is loaded!"); configGreeting = ((BaseUnityPlugin)this).Config.Bind<string>("General", "GreetingText", "Hello, World!", "A greeting text to show when the game is launched"); configDisplayGreeting = ((BaseUnityPlugin)this).Config.Bind<bool>("General.Toggles", "DisplayGreeting", true, "Wether or not to show the greeting text"); if (configDisplayGreeting.Value) { ((BaseUnityPlugin)this).Logger.LogInfo((object)configGreeting.Value); } string text = "TheSuperCheeze-SoundPack"; string text2 = "CustomSounds/SoundPack"; AudioClip audioClip = SoundTool.GetAudioClip(text, text2, "Hitsound.wav"); AudioClip audioClip2 = SoundTool.GetAudioClip(text, text2, "rawr.wav"); AudioClip audioClip3 = SoundTool.GetAudioClip(text, text2, "MarioTheme.mp3"); AudioClip audioClip4 = SoundTool.GetAudioClip(text, text2, "Pirates.mp3"); SoundTool.ReplaceAudioClip("ShovelHitDefault", audioClip); SoundTool.ReplaceAudioClip("ShovelHitDefault2", audioClip); SoundTool.ReplaceAudioClip("meow1", audioClip2); SoundTool.ReplaceAudioClip("BoomboxMusic1", audioClip3); SoundTool.ReplaceAudioClip("BoomboxMusic2", audioClip4); } } public static class PluginInfo { public const string PLUGIN_GUID = "SoundPack"; public const string PLUGIN_NAME = "SoundPack"; public const string PLUGIN_VERSION = "1.0.0"; } }
TheSuperCheeze-SoundPack/SoundPack.dll
Decompiled 10 months agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Configuration; using LCSoundTool; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("SoundPack")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("My first plugin")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("SoundPack")] [assembly: AssemblyTitle("SoundPack")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.0.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SoundPack { [BepInPlugin("SoundPack", "SoundPack", "1.0.0")] [BepInProcess("Lethal Company.exe")] public class Plugin : BaseUnityPlugin { private ConfigEntry<string> configGreeting; private ConfigEntry<bool> configDisplayGreeting; private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin SoundPack is loaded!"); configGreeting = ((BaseUnityPlugin)this).Config.Bind<string>("General", "GreetingText", "Hello, World!", "A greeting text to show when the game is launched"); configDisplayGreeting = ((BaseUnityPlugin)this).Config.Bind<bool>("General.Toggles", "DisplayGreeting", true, "Wether or not to show the greeting text"); if (configDisplayGreeting.Value) { ((BaseUnityPlugin)this).Logger.LogInfo((object)configGreeting.Value); } string text = "TheSuperCheeze-SoundPack"; AudioClip audioClip = SoundTool.GetAudioClip(text, "Sounds", "Hitsound.wav"); AudioClip audioClip2 = SoundTool.GetAudioClip(text, "Sounds", "rawr.wav"); AudioClip audioClip3 = SoundTool.GetAudioClip(text, "Sounds", "MarioTheme.mp3"); AudioClip audioClip4 = SoundTool.GetAudioClip(text, "Sounds", "Pirates.mp3"); SoundTool.ReplaceAudioClip("ShovelHitDefault", audioClip); SoundTool.ReplaceAudioClip("ShovelHitDefault2", audioClip); SoundTool.ReplaceAudioClip("meow1", audioClip2); SoundTool.ReplaceAudioClip("BoomboxMusic1", audioClip3); SoundTool.ReplaceAudioClip("BoomboxMusic2", audioClip4); } } public static class PluginInfo { public const string PLUGIN_GUID = "SoundPack"; public const string PLUGIN_NAME = "SoundPack"; public const string PLUGIN_VERSION = "1.0.0"; } }