Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit 989d9dd

Browse files
authored
Create README.md
1 parent efa654c commit 989d9dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# BattleTechModLoader
2+
A simple mod loader and injector for HBS's BattleTech PC game.
3+
4+
***PLEASE DO NOT RELEASE ANY MODS BASED ON THIS YET! STILL IN ACTIVE DEVELOPMENT!***
5+
6+
## How It Works
7+
Using Mono.Cecil, the injector hooks the mod loader into the Assembly-CSharp.dll. After the Assembly-CSharp.dll file has been modified, on game load, the mod loader tries to load DLL files from `\BATTLETECH\Mods\` and call a static method in any class called "Init" (if there are multiple, it will simply call all of them). Mods then use Harmony to patch/decorate the game's functions at runtime.
8+
9+
A log is generated at `\Mods\BTModLoader.log` overwriting any previous log. This log contains a record all of the Harmony hooks that happen as a result of all of the DLL files `Init` calls.

0 commit comments

Comments
 (0)