Skip to content

Commit

Permalink
remove harmony dll from release
Browse files Browse the repository at this point in the history
  • Loading branch information
FluffierThanThou committed Jul 22, 2021
1 parent bac263f commit 5563608
Show file tree
Hide file tree
Showing 25 changed files with 38 additions and 14,713 deletions.
5 changes: 2 additions & 3 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,9 @@
<ModMetaData>
<name>Blueprints</name>
<author>Fluffy</author>
<packageId>fluffy-blueprints</packageId>
<description/>
<packageId>Fluffy.Blueprints</packageId>
<url/>
<supportedVersions>
<li>1.3.3052</li>
<li>1.3</li>
</supportedVersions>
</ModMetaData>
Binary file modified Assemblies/BetterKeybinding.dll
Binary file not shown.
Binary file modified Assemblies/Blueprints.dll
Binary file not shown.
47 changes: 10 additions & 37 deletions Source/Blueprints/Blueprints.csproj
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project ToolsVersion="14.0" DefaultTargets="Build"
xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
Expand Down Expand Up @@ -35,33 +36,7 @@
<LangVersion>8</LangVersion>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony, Version=2.0.0.6, Culture=neutral, processorArchitecture=MSIL">
<HintPath>packages\Lib.Harmony.2.0.0.6\lib\net472\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Runtime.InteropServices.RuntimeInformation" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="System.Data" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine.CoreModule">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.IMGUIModule">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.IMGUIModule.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.TextRenderingModule">
<HintPath>C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\UnityEngine.TextRenderingModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Blueprint.cs" />
Expand All @@ -82,24 +57,22 @@
<Compile Include="Resources.cs" />
<Compile Include="Settings.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\..\..\TOOLS\BetterKeybinding\BetterKeybinding.csproj">
<Project>{7A074D05-578C-48C4-9A0E-1C289CF862E1}</Project>
<Name>BetterKeybinding</Name>
</ProjectReference>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
<Version>1.3.3067</Version>
</PackageReference>
<PackageReference Include="Lib.Harmony" Version="2.1.0">
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup>
<PostBuildEvent>mod update</PostBuildEvent>
</PropertyGroup>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
4 changes: 2 additions & 2 deletions Source/Blueprints/DefOf.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// DefOf.cs
// Copyright Karel Kroeze, 2019-2019
// Copyright Karel Kroeze, 2021-2021.
// Blueprints/Blueprints/DefOf.cs

using RimWorld;
using Verse;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright Karel Kroeze, 2020-2021.
// Copyright Karel Kroeze, 2021-2021.
// Blueprints/Blueprints/Patch_InspectGizmoGrid_DrawInspectGizmoGridFor.cs

using System.Collections.Generic;
Expand All @@ -14,9 +14,17 @@ namespace Blueprints
[HarmonyPatch(typeof(InspectGizmoGrid), nameof(InspectGizmoGrid.DrawInspectGizmoGridFor))]
public class Patch_InspectGizmoGrid_DrawInspectGizmoGridFor
{
public static FieldInfo gizmoList = AccessTools.Field(typeof(InspectGizmoGrid), "gizmoList");
public static MethodInfo addInfo = AccessTools.Method(typeof(List<Gizmo>), nameof(List<Gizmo>.Add));

public static MethodInfo clearInfo = AccessTools.Method(typeof(List<object>), "Clear");
public static FieldInfo gizmoList = AccessTools.Field(typeof(InspectGizmoGrid), "gizmoList");
public static FieldInfo objList = AccessTools.Field(typeof(InspectGizmoGrid), "objList");

public static MethodInfo blueprintGetter = AccessTools
.Property(typeof(Patch_InspectGizmoGrid_DrawInspectGizmoGridFor),
nameof(BlueprintCopy))
.GetGetMethod();

public static FieldInfo objList = AccessTools.Field(typeof(InspectGizmoGrid), "objList");

public static Command_CreateBlueprintCopyFromSelected BlueprintCopy =>
new Command_CreateBlueprintCopyFromSelected();
Expand All @@ -25,12 +33,6 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
{
var instructions = _instructions.ToList();

var clearInfo = AccessTools.Method(typeof(List<object>), "Clear");
var blueprintGetter = AccessTools
.Property(typeof(Patch_InspectGizmoGrid_DrawInspectGizmoGridFor),
nameof(BlueprintCopy))
.GetGetMethod();
var addInfo = AccessTools.Method(typeof(List<Gizmo>), nameof(List<Gizmo>.Add));

for (var i = 0; i < instructions.Count; i++)
{
Expand All @@ -40,6 +42,7 @@ public static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstructio
&& instructions[i].Calls(clearInfo)
&& instructions[i + 1].LoadsField(gizmoList))
{
Debug.Message("injecting blueprint gizmo");
yield return new CodeInstruction(OpCodes.Ldsfld, gizmoList);
yield return new CodeInstruction(OpCodes.Call, blueprintGetter);
yield return new CodeInstruction(OpCodes.Callvirt, addInfo);
Expand Down
2 changes: 1 addition & 1 deletion Source/Blueprints/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("2.0.0")]
[assembly: AssemblyFileVersion("3.7.16")]
[assembly: AssemblyFileVersion("3.7.33")]
4 changes: 0 additions & 4 deletions Source/Blueprints/packages.config

This file was deleted.

Binary file not shown.
Binary file not shown.
21 changes: 0 additions & 21 deletions Source/Blueprints/packages/Lib.Harmony.2.0.0.6/LICENSE

This file was deleted.

Binary file not shown.
Binary file not shown.
Loading

0 comments on commit 5563608

Please sign in to comment.