Skip to content

Commit

Permalink
Updated some stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nrgill28 committed Dec 5, 2020
1 parent cc65895 commit 19dce24
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 22 deletions.
2 changes: 1 addition & 1 deletion WurstMod/Runtime/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public static void Patch()

// MUST patch GetTypes first.
// This might result in a double-patch for GetTypes but it won't hurt anything.
harmony.ProcessorForAnnotatedClass(typeof(Patch_Assembly)).Patch();
harmony.CreateClassProcessor(typeof(Patch_Assembly)).Patch();
harmony.PatchAll(Assembly.GetExecutingAssembly());
}
}
Expand Down
56 changes: 46 additions & 10 deletions WurstMod/WurstMod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@
<RunPostBuildEvent>Always</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony20, Version=2.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\Libs\0Harmony20.dll</HintPath>
<Reference Include="0Harmony, Version=2.1.1.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\HarmonyX.2.1.1\lib\net35\0Harmony.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="ADepIn, Version=20.11.19.2309, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\ADepIn.20.11.19.2309\lib\net35\ADepIn.dll</HintPath>
Expand All @@ -48,14 +49,41 @@
<Reference Include="Assembly-CSharp">
<HintPath>..\Libs\Assembly-CSharp.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\Libs\BepInEx.dll</HintPath>
<Reference Include="BepInEx, Version=5.4.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\BepInEx.BaseLib.5.4.0\lib\net35\BepInEx.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Deli">
<HintPath>..\Libs\Deli.dll</HintPath>
<Reference Include="Deli, Version=0.2.4.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\Deli.0.2.4\lib\net35\Deli.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Deli.Runtime">
<HintPath>..\Libs\Deli.Runtime.dll</HintPath>
<Reference Include="Deli.Runtime, Version=0.2.4.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\Deli.Runtime.0.2.4\lib\net35\Deli.Runtime.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Mdb, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Mdb.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Pdb, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Pdb.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="Mono.Cecil.Rocks, Version=0.10.4.0, Culture=neutral, PublicKeyToken=50cebf1cceb9d05e">
<HintPath>..\packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Rocks.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MonoMod.RuntimeDetour, Version=20.11.5.1, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\MonoMod.RuntimeDetour.20.11.5.1\lib\net35\MonoMod.RuntimeDetour.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="MonoMod.Utils, Version=20.11.5.1, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\MonoMod.Utils.20.11.5.1\lib\net35\MonoMod.Utils.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
Expand All @@ -67,8 +95,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\Libs\UnityEditor.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\Libs\UnityEngine.dll</HintPath>
<Reference Include="UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\UnityEngine.Core.5.6.0\lib\net35\UnityEngine.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="UnityEngine.UI, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
Expand Down Expand Up @@ -143,4 +172,11 @@
<PropertyGroup>
<PostBuildEvent>$(SolutionDir)pdb2mdb.exe $(TargetPath)</PostBuildEvent>
</PropertyGroup>
<Import Project="..\packages\BepInEx.Core.5.4.0\build\BepInEx.Core.targets" Condition="Exists('..\packages\BepInEx.Core.5.4.0\build\BepInEx.Core.targets')" />
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
<PropertyGroup>
<ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}.</ErrorText>
</PropertyGroup>
<Error Condition="!Exists('..\packages\BepInEx.Core.5.4.0\build\BepInEx.Core.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\BepInEx.Core.5.4.0\build\BepInEx.Core.targets'))" />
</Target>
</Project>
4 changes: 2 additions & 2 deletions WurstMod/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"guid": "wurstmod",
"version": "2.0.0.0",
"version": "2.0.2.0",
"dependencies": {
"deli.core": "0.2.0"
"deli.core": "0.2.5"
},
"name": "WurstMod",
"authors": [
Expand Down
9 changes: 9 additions & 0 deletions WurstMod/packages.config
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="ADepIn" version="20.11.19.2309" targetFramework="net35" />
<package id="BepInEx.BaseLib" version="5.4.0" targetFramework="net35" />
<package id="BepInEx.Core" version="5.4.0" targetFramework="net35" />
<package id="Deli" version="0.2.4" targetFramework="net35" />
<package id="Deli.Runtime" version="0.2.4" targetFramework="net35" />
<package id="HarmonyX" version="2.1.1" targetFramework="net35" />
<package id="Mono.Cecil" version="0.10.4" targetFramework="net35" />
<package id="MonoMod.RuntimeDetour" version="20.11.5.1" targetFramework="net35" />
<package id="MonoMod.Utils" version="20.11.5.1" targetFramework="net35" />
<package id="UnityEngine.Core" version="5.6.0" targetFramework="net35" />
</packages>
5 changes: 0 additions & 5 deletions WurstModCodeGen/WurstModCodeGen.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="ADepIn, Version=20.11.19.2309, Culture=neutral, PublicKeyToken=null">
<HintPath>..\packages\ADepIn.20.11.19.2309\lib\net35\ADepIn.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
Expand All @@ -53,7 +49,6 @@
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
4 changes: 0 additions & 4 deletions WurstModCodeGen/packages.config

This file was deleted.

6 changes: 6 additions & 0 deletions nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="BepInExLibs" value="https://pkgs.dev.azure.com/bepinex/BepInEx/_packaging/BepInExLibs/nuget/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit 19dce24

Please sign in to comment.