A delusional lance main's attempt at making a mod loader.
Files for file replacer should be placed in ms0:P3rdML/files/, and should be named as their file id/index.
Mods are now divided into multiple mod files, with mods.bin now containing tables with their paths.
| Type | Description |
|---|---|
| U Byte | Path length |
| Byte[n] | File path, starting with / and ending in 0x00 |
- Max path length is 22 (not counting the
/at the start, nor the null byte at the end).
mods.bin must end in 0xFFFFFFFF.
Mod files must contain mods in the following format:
| Type | Description |
|---|---|
| U Int | Load Address |
| U Int | *Mod Length |
| Byte[n] | Mod content |
- Most significant bit from Mod Length is used to determine if the mod should be run as it's loaded.
and end in 0xFFFFFFFF00000000.
ms0:/P3rdML/mods.binshould contain a list of mod files.ms0:/P3rdML/mods/should contain mod files or folders.ms0:/P3rdML/files/should contain all the files to load as replacements and patches.
- Replacement files must be named after the file id they are supposed to replace. All letters must be capitalized.
- Patches must follow the mod file format and be named
XXXXP, withXXXXbeing the id of the file to replace. - Currently a file cannot be both replaced and patched at the same time.
- Decrypted
eboot.bin