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

Commit 6a9c64c

Browse files
committed
Update README for new build process
1 parent 54deecd commit 6a9c64c

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

README.md

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,15 +147,43 @@ public class MenuClass_CursorUpdate
147147

148148
## Building
149149

150-
If you'd like to build this yourself, everything you need (other than MelonLoader and/or BepInEx) is included with this repository.
150+
If you'd like to build this yourself, you will need to have installed BepInEx and/or MelonLoader for at least one Unity game. If you want to build all 6 versions, you will need at least one Il2Cpp and one Mono game, with BepInEx and MelonLoader installed for both.
151151

152152
1. Install MelonLoader or BepInEx for your game.
153153
2. Open the `src\Explorer.csproj` file in a text editor.
154154
3. Set the relevant `GameFolder` values for the versions you want to build, eg. set `MLCppGameFolder` if you want to build for a MelonLoader Il2Cpp game.
155155
4. Open the `src\Explorer.sln` project.
156156
5. Select `Solution 'Explorer' (1 of 1 project)` in the Solution Explorer panel, and set the <b>Active config</b> property to the version you want to build, then build it.
157157
5. The DLLs are built to the `Release\` folder in the root of the repository.
158-
6. [ILRepack](https://github.com/gluck/il-repack) is used to merge `lib\mcs.dll` and the release dll, this step is optional. If you don't merge them, you will need to put `mcs.dll` in the folder with the mod when you install it.
158+
159+
[ILRepack](https://github.com/gluck/il-repack) is used to merge `lib\mcs.dll` and the release dll. Download the ILRepack nuget package and take the `ILRepack.exe` file from it.
160+
161+
Put `ILRepack.exe` in the `Release\` folder, then create a `merge.bat` file like so:
162+
163+
```batch
164+
:: Set GameFolder to the full path of the game you have installed MelonLoader and/or BepInEx for.
165+
SET GameFolder="..."
166+
167+
:: Only include the lines for the version(s) you are building.
168+
169+
:: MelonLoader Il2CPP:
170+
ILRepack.exe /lib:"%GameFolder%\MelonLoader" /lib:"%GameFolder%\MelonLoader\Managed" /out:"Explorer.MelonLoader.Il2Cpp\Explorer.dll" "Explorer.MelonLoader.Il2Cpp\Explorer.dll" "..\lib\mcs.dll"
171+
172+
:: MelonLoader Mono
173+
ILRepack.exe /lib:"..\lib" /lib:"%GameFolder%\MelonLoader" /out:"Explorer.MelonLoader.Mono\Explorer.dll" "Explorer.MelonLoader.Mono\Explorer.dll" "..\lib\mcs.dll"
174+
175+
:: MelonLoader Mono .NET35
176+
ILRepack.exe /lib:"..\lib" /lib:"%GameFolder%\MelonLoader" /out:"Explorer.MelonLoader.Mono.NET35\Explorer.dll" "Explorer.MelonLoader.Mono.NET35\Explorer.dll" "..\lib\mcs.NET35.dll"
177+
178+
:: BepInEx Il2Cpp
179+
ILRepack.exe /lib:"%GameFolder%\BepInEx\core" /lib:"%GameFolder%\BepInEx\unhollowed" /out:"Explorer.BepInEx.Il2Cpp\Explorer.dll" "Explorer.BepInEx.Il2Cpp\Explorer.dll" "..\lib\mcs.dll"
180+
181+
:: BepInEx Mono
182+
ILRepack.exe /lib:"..\lib" /lib:"%GameFolder%\BepInEx\core" /out:"Explorer.BepInEx.Mono\Explorer.dll" "Explorer.BepInEx.Mono\Explorer.dll" "..\lib\mcs.dll"
183+
184+
:: BepInEx Mono .NET35
185+
ILRepack.exe /lib:"..\lib" /lib:"%GameFolder%\BepInEx\core" /out:"Explorer.BepInEx.Mono.NET35\Explorer.dll" "Explorer.BepInEx.Mono.NET35\Explorer.dll" "..\lib\mcs.NET35.dll"
186+
```
159187

160188
## Credits
161189

0 commit comments

Comments
 (0)