Skip to content
This repository was archived by the owner on May 9, 2023. It is now read-only.

Commit 1daf4fa

Browse files
committed
Use HarmonyX NuGet instead of submodule
1 parent d92fb3f commit 1daf4fa

File tree

5 files changed

+32
-38
lines changed

5 files changed

+32
-38
lines changed

.gitmodules

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
[submodule "lib/Il2CppAssemblyUnhollower"]
22
path = lib/Il2CppAssemblyUnhollower
33
url = https://github.com/knah/Il2CppAssemblyUnhollower
4-
[submodule "lib/HarmonyX"]
5-
path = lib/HarmonyX
6-
url = https://github.com/BepInEx/HarmonyX
74
[submodule "lib/mcs-unity"]
85
path = lib/mcs-unity
96
url = https://github.com/sinai-dev/mcs-unity

lib/HarmonyX

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/UnityExplorer.csproj

Lines changed: 28 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,34 @@
113113
</PropertyGroup>
114114
<!-- Global refs, Mono and Il2Cpp -->
115115
<ItemGroup>
116+
<Reference Include="0Harmony">
117+
<HintPath>packages\HarmonyX.2.4.2\lib\net35\0Harmony.dll</HintPath>
118+
<Private>False</Private>
119+
</Reference>
120+
<Reference Include="Mono.Cecil">
121+
<HintPath>packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.dll</HintPath>
122+
<Private>False</Private>
123+
</Reference>
124+
<Reference Include="Mono.Cecil.Mdb">
125+
<HintPath>packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Mdb.dll</HintPath>
126+
<Private>False</Private>
127+
</Reference>
128+
<Reference Include="Mono.Cecil.Pdb">
129+
<HintPath>packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Pdb.dll</HintPath>
130+
<Private>False</Private>
131+
</Reference>
132+
<Reference Include="Mono.Cecil.Rocks">
133+
<HintPath>packages\Mono.Cecil.0.10.4\lib\net35\Mono.Cecil.Rocks.dll</HintPath>
134+
<Private>False</Private>
135+
</Reference>
136+
<Reference Include="MonoMod.RuntimeDetour">
137+
<HintPath>packages\MonoMod.RuntimeDetour.21.4.21.3\lib\net35\MonoMod.RuntimeDetour.dll</HintPath>
138+
<Private>False</Private>
139+
</Reference>
140+
<Reference Include="MonoMod.Utils">
141+
<HintPath>packages\MonoMod.Utils.21.4.21.3\lib\net35\MonoMod.Utils.dll</HintPath>
142+
<Private>False</Private>
143+
</Reference>
116144
<Reference Include="System" />
117145
<Reference Include="System.Core" />
118146
<Reference Include="System.Xml.Linq" />
@@ -142,13 +170,6 @@
142170
<Private>False</Private>
143171
</Reference>
144172
</ItemGroup>
145-
<!-- BepInEx universal refs -->
146-
<ItemGroup Condition="'$(IsBepInEx)'=='true'">
147-
<Reference Include="0Harmony">
148-
<HintPath>..\lib\HarmonyX\Harmony\bin\Release\net35\0Harmony.dll</HintPath>
149-
<Private>False</Private>
150-
</Reference>
151-
</ItemGroup>
152173
<!-- BepInEx 5 Mono refs -->
153174
<ItemGroup Condition="'$(IsBepInEx)|$(IsCpp)|$(Configuration)'=='true|false|Release_BIE5_Mono'">
154175
<Reference Include="BepInEx">
@@ -178,13 +199,6 @@
178199
<Private>False</Private>
179200
</Reference>
180201
</ItemGroup>
181-
<!-- Standalone refs -->
182-
<ItemGroup Condition="'$(IsStandalone)'=='true'">
183-
<Reference Include="0Harmony">
184-
<HintPath>..\lib\HarmonyX\Harmony\bin\Release\net35\0Harmony.dll</HintPath>
185-
<Private>False</Private>
186-
</Reference>
187-
</ItemGroup>
188202
<!-- Mono refs -->
189203
<ItemGroup Condition="'$(IsCpp)'=='false'">
190204
<Reference Include="UnityEngine">

src/UnityExplorer.sln

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 16
44
VisualStudioVersion = 16.0.30128.74
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Harmony", "..\lib\HarmonyX\Harmony\Harmony.csproj", "{F2D7872C-5D4D-49EB-A656-C3D496DB4204}"
7-
EndProject
86
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "UnhollowerBaseLib", "..\lib\Il2CppAssemblyUnhollower\UnhollowerBaseLib\UnhollowerBaseLib.csproj", "{7B7E5024-385D-4A46-9196-A6AF8F7FBDD5}"
97
EndProject
108
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "mcs", "..\lib\mcs-unity\mcs\mcs.csproj", "{E4989E4C-0875-4528-9031-08E2C0E70103}"
@@ -24,24 +22,6 @@ Global
2422
Release_STANDALONE_Mono|Any CPU = Release_STANDALONE_Mono|Any CPU
2523
EndGlobalSection
2624
GlobalSection(ProjectConfigurationPlatforms) = postSolution
27-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE_Cpp|Any CPU.ActiveCfg = Release|Any CPU
28-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE_Cpp|Any CPU.Build.0 = Release|Any CPU
29-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE5_Mono|Any CPU.ActiveCfg = Release|Any CPU
30-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE5_Mono|Any CPU.Build.0 = Release|Any CPU
31-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE6_Mono|Any CPU.ActiveCfg = Release|Any CPU
32-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_BIE6_Mono|Any CPU.Build.0 = Release|Any CPU
33-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_ML_Cpp|Any CPU.ActiveCfg = Release|Any CPU
34-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_ML_Cpp|Any CPU.Build.0 = Release|Any CPU
35-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_ML_Mono|Any CPU.ActiveCfg = Release|Any CPU
36-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_ML_Mono|Any CPU.Build.0 = Release|Any CPU
37-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_MLLegacy_Cpp|Any CPU.ActiveCfg = Release|Any CPU
38-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_MLLegacy_Cpp|Any CPU.Build.0 = Release|Any CPU
39-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_MLLegacy_Mono|Any CPU.ActiveCfg = Release|Any CPU
40-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_MLLegacy_Mono|Any CPU.Build.0 = Release|Any CPU
41-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_STANDALONE_Cpp|Any CPU.ActiveCfg = Release|Any CPU
42-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_STANDALONE_Cpp|Any CPU.Build.0 = Release|Any CPU
43-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_STANDALONE_Mono|Any CPU.ActiveCfg = Release|Any CPU
44-
{F2D7872C-5D4D-49EB-A656-C3D496DB4204}.Release_STANDALONE_Mono|Any CPU.Build.0 = Release|Any CPU
4525
{7B7E5024-385D-4A46-9196-A6AF8F7FBDD5}.Release_BIE_Cpp|Any CPU.ActiveCfg = Release|Any CPU
4626
{7B7E5024-385D-4A46-9196-A6AF8F7FBDD5}.Release_BIE_Cpp|Any CPU.Build.0 = Release|Any CPU
4727
{7B7E5024-385D-4A46-9196-A6AF8F7FBDD5}.Release_BIE5_Mono|Any CPU.ActiveCfg = Release|Any CPU

src/packages.config

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3+
<package id="HarmonyX" version="2.4.2" targetFramework="net35" />
34
<package id="ILRepack.Lib.MSBuild.Task" version="2.0.18.1" targetFramework="net472" />
45
<package id="ini-parser" version="2.5.2" targetFramework="net35" />
6+
<package id="Mono.Cecil" version="0.10.4" targetFramework="net35" />
7+
<package id="MonoMod.RuntimeDetour" version="21.4.21.3" targetFramework="net35" />
8+
<package id="MonoMod.Utils" version="21.4.21.3" targetFramework="net35" />
59
</packages>

0 commit comments

Comments
 (0)