using System; using System.Diagnostics; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using EyeRipper; using HarmonyLib; using Il2Cpp; using Il2CppHurricaneVR.Framework.Core; using Il2CppHurricaneVR.Framework.Core.Grabbers; using MelonLoader; 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: MelonInfo(typeof(Core), "EyeRipper", "1.0.0", "MajedCT", null)] [assembly: MelonGame("Kubunautilus", "BrutalistickVR")] [assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = ".NET 6.0")] [assembly: AssemblyCompany("EyeRipper")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("EyeRipper")] [assembly: AssemblyTitle("EyeRipper")] [assembly: NeutralResourcesLanguage("en-US")] [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 EyeRipper { public class Core : MelonMod { [HarmonyPatch(typeof(HVRHandGrabber), "OnGrabbed")] internal class GrabberPatch { public static void Postfix(HVRHandGrabber __instance) { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_0076: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance == (Object)null) { return; } HVRGrabbable grabbedTarget = ((HVRGrabberBase)__instance).GrabbedTarget; if ((Object)(object)grabbedTarget == (Object)null) { return; } EyeEjector componentInParent = ((Component)grabbedTarget).GetComponentInParent(); if (!((Object)(object)componentInParent == (Object)null)) { if (((Object)grabbedTarget).name == "Eyeball_R") { componentInParent.EjectRightEye(zeroh); } else if (((Object)grabbedTarget).name == "Eyeball_L") { componentInParent.EjectLeftEye(zeroh); } } } } public static Vector3 zeroh = new Vector3(0f, 0f, 0f); public override void OnInitializeMelon() { ((MelonBase)this).LoggerInstance.Msg("Initialized."); } } }