Browse Source

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

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


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

@ -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
}


Loading…
Cancel
Save