Decompiled source of Helium v1.0.0

plugins/Helium/Helium.dll

Decompiled 6 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using FMOD.Studio;
using HarmonyLib;
using Helium.Patches;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("Helium")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Helium")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("8ea3d896-6067-40c9-99bb-3150fd5c7cff")]
[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 Helium
{
	[BepInPlugin("com.equinox.Helium", "Helium", "1.0.0")]
	public class HeliumPlugin : BaseUnityPlugin
	{
		private const string MyGUID = "com.equinox.Helium";

		private const string PluginName = "Helium";

		private const string VersionString = "1.0.0";

		private static readonly Harmony Harmony = new Harmony("com.equinox.Helium");

		public static ManualLogSource Log = new ManualLogSource("Helium");

		private void Awake()
		{
			((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: Helium, VersionString: 1.0.0 is loading...");
			Harmony.PatchAll();
			Harmony.CreateAndPatchAll(typeof(VOPlaybackManagerPatch), (string)null);
			((BaseUnityPlugin)this).Logger.LogInfo((object)"PluginName: Helium, VersionString: 1.0.0 is loaded.");
			Log = ((BaseUnityPlugin)this).Logger;
		}
	}
}
namespace Helium.Patches
{
	public class VOPlaybackManagerPatch
	{
		[HarmonyPatch(typeof(VOPlaybackManager), "GetDialogueEventInstance")]
		[HarmonyPostfix]
		private static void TurnUpPitch(ref EventInstance __result)
		{
			//IL_0007: Unknown result type (might be due to invalid IL or missing references)
			((EventInstance)(ref __result)).setPitch(1.5f);
		}
	}
}