Skip to content

Commit

Permalink
Switch to ModTek libs, updated versions.
Browse files Browse the repository at this point in the history
CptMoore committed Dec 25, 2024
1 parent 2b8b510 commit f1275dd
Showing 5 changed files with 14 additions and 140 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ jobs:
-xr!source "-xr!.*"
)
release-notes: |
Requires ModTek v4 or later.
Requires ModTek v4.3 or later.
MechEngineer.zip contains:
- MechEngineer
- [CustomComponents](https://github.com/BattletechModders/CustomComponents) (Required)
3 changes: 0 additions & 3 deletions source/Control.cs
Original file line number Diff line number Diff line change
@@ -6,7 +6,6 @@
using MechEngineer.Features;
using MechEngineer.Features.OverrideStatTooltips.Helper;
using MechEngineer.Misc;
using NullableLogging;

namespace MechEngineer;

@@ -43,8 +42,6 @@ public static void Start(string modDirectory, string json)
Log.Main.Info?.Log("settings loaded");
Log.Main.Debug?.Log("debugging enabled");

Harmony.CreateAndPatchAll(typeof(NullableLogger), nameof(MechEngineer) + "." + nameof(NullableLogger));

Log.Main.Debug?.Log("setting up features");

foreach (var feature in FeaturesList.Features)
5 changes: 2 additions & 3 deletions source/Log.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#nullable enable
using HBS.Logging;
using NullableLogging;
using HBS.Logging;
using ModTek.Public;

namespace MechEngineer;

19 changes: 11 additions & 8 deletions source/MechEngineer.csproj
Original file line number Diff line number Diff line change
@@ -16,11 +16,12 @@
</PropertyGroup>
<PropertyGroup>
<OutputType>Library</OutputType>
<TargetFramework>net471</TargetFramework>
<LangVersion>11</LangVersion>
<TargetFramework>net472</TargetFramework>
<LangVersion>13</LangVersion>
<AssemblySearchPaths>
$(ReferencePath);
{HintPathFromItem};
$(BattleTechGameDir)\Mods\ModTek\lib\;
$(BattleTechGameDir)\BattleTech_Data\Managed\
</AssemblySearchPaths>
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences>
@@ -36,22 +37,21 @@
<PublicizerRuntimeStrategies>Unsafe</PublicizerRuntimeStrategies>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Publicizer" Version="2.2.1" />
<PackageReference Include="Krafs.Publicizer" Version="2.3.0" />
<Publicize Include="Assembly-CSharp" />
<Publicize Include="DOTween;DOTweenPro" />
<Publicize Include="UnityEngine.CoreModule" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="HarmonyX" Version="2.10.1">
<PrivateAssets>all</PrivateAssets>
<ExcludeAssets>runtime</ExcludeAssets>
</PackageReference>
<PackageReference Include="PolySharp" Version="1.13.2">
<PackageReference Include="PolySharp" Version="1.15.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<Reference Include="0Harmony">
<Private>False</Private>
</Reference>
<Reference Include="CustomComponents">
<!-- relative to ME -->
<HintPath>$(MechEngineerModPath)\..\CustomComponents\CustomComponents.dll</HintPath>
@@ -72,6 +72,9 @@
<Reference Include="InControl">
<Private>False</Private>
</Reference>
<Reference Include="ModTek">
<Private>False</Private>
</Reference>
<Reference Include="System">
<Private>False</Private>
</Reference>
125 changes: 0 additions & 125 deletions source/NullableLogger.cs

This file was deleted.

0 comments on commit f1275dd

Please sign in to comment.