Browse Source

Moved plugin deleter yeeter to conditional based of whether or not it is being built for Beat Saber

pull/44/head
Anairkoen Schno 4 years ago
parent
commit
947e6be620
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      IPA.Injector/IPA.Injector.csproj
  2. +2
    -0
      IPA.Injector/Injector.cs

+ 4
- 0
IPA.Injector/IPA.Injector.csproj View File

@ -4,6 +4,7 @@
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Net4</Platform> <Platform Condition=" '$(Platform)' == '' ">Net4</Platform>
<BuildForBeatSaber Condition=" '$(BuildForBeatSaber)' == '' And '$(Platform)' == 'Net4' ">true</BuildForBeatSaber>
<ProjectGuid>{2A1AF16B-27F1-46E0-9A95-181516BC1CB7}</ProjectGuid> <ProjectGuid>{2A1AF16B-27F1-46E0-9A95-181516BC1CB7}</ProjectGuid>
<OutputType>Library</OutputType> <OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder> <AppDesignerFolder>Properties</AppDesignerFolder>
@ -42,6 +43,9 @@
<TargetFrameworkVersion>v3.5</TargetFrameworkVersion> <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<DefineConstants>$(DefineConstants);NET3</DefineConstants> <DefineConstants>$(DefineConstants);NET3</DefineConstants>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(BuildForBeatSaber)' == 'true' ">
<DefineConstants>$(DefineConstants);BeatSaber</DefineConstants>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="System" /> <Reference Include="System" />
<Reference Include="System.Core" /> <Reference Include="System.Core" />


+ 2
- 0
IPA.Injector/Injector.cs View File

@ -264,6 +264,7 @@ namespace IPA.Injector
injector.Error(e); injector.Error(e);
} }
#if BeatSaber
if (isFirst) if (isFirst)
{ {
try try
@ -292,6 +293,7 @@ namespace IPA.Injector
injector.Warn(e); injector.Warn(e);
} }
} }
#endif
} }
#endregion #endregion
} }


Loading…
Cancel
Save