From 947e6be620b44a1b0c6a0c0baed04b49f198ae5e Mon Sep 17 00:00:00 2001 From: Anairkoen Schno Date: Mon, 23 Mar 2020 17:08:38 -0500 Subject: [PATCH] Moved plugin deleter yeeter to conditional based of whether or not it is being built for Beat Saber --- IPA.Injector/IPA.Injector.csproj | 4 ++++ IPA.Injector/Injector.cs | 2 ++ 2 files changed, 6 insertions(+) diff --git a/IPA.Injector/IPA.Injector.csproj b/IPA.Injector/IPA.Injector.csproj index d44d4cd5..ce6b687c 100644 --- a/IPA.Injector/IPA.Injector.csproj +++ b/IPA.Injector/IPA.Injector.csproj @@ -4,6 +4,7 @@ Debug Net4 + true {2A1AF16B-27F1-46E0-9A95-181516BC1CB7} Library Properties @@ -42,6 +43,9 @@ v3.5 $(DefineConstants);NET3 + + $(DefineConstants);BeatSaber + diff --git a/IPA.Injector/Injector.cs b/IPA.Injector/Injector.cs index c7c554fd..ca383d5e 100644 --- a/IPA.Injector/Injector.cs +++ b/IPA.Injector/Injector.cs @@ -264,6 +264,7 @@ namespace IPA.Injector injector.Error(e); } +#if BeatSaber if (isFirst) { try @@ -292,6 +293,7 @@ namespace IPA.Injector injector.Warn(e); } } +#endif } #endregion }