Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/toebeann/tobey.mlloader.gameinfo
A simple patch to ensure the game info logs of BepInEx.MelonLoader.Loader are correct.
https://github.com/toebeann/tobey.mlloader.gameinfo
bepinex bepinex-patcher bepinex-patchers
Last synced: about 8 hours ago
JSON representation
A simple patch to ensure the game info logs of BepInEx.MelonLoader.Loader are correct.
- Host: GitHub
- URL: https://github.com/toebeann/tobey.mlloader.gameinfo
- Owner: toebeann
- License: lgpl-3.0
- Created: 2024-09-13T21:42:41.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-09-13T22:55:09.000Z (4 months ago)
- Last Synced: 2024-09-15T13:17:22.522Z (4 months ago)
- Topics: bepinex, bepinex-patcher, bepinex-patchers
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tobey's Game Info Fix for BepInEx.MelonLoader.Loader
A simple patch to ensure the game info logs of [BepInEx.MelonLoader.Loader](https://github.com/BepInEx/BepInEx.MelonLoader.Loader) are correct.
## Why?
It's nice to have the correct game info in the logs; it's useful for troubleshooting.
Unfortunately, the version of MelonLoader shipped with BepInEx.MelonLoader.Loader uses [AssetsTools.NET](https://github.com/nesrak1/AssetsTools.NET) to parse the info from the `globalgamemanagers` file manually, which is only going to work correctly assuming the version of AssetsTools.NET installed has up-to-date information on how to parse that file, which it often does not. This leads to incorrect information sometimes being parsed from the file.
To address this, Tobey.MLLoader.GameInfo relies on Unity's own API for gathering the same information, which is available since at least Unity 5.6. Of course, this relies on Unity to have been initialised far enough to have parsed this information itself, and only works as long as MelonLoader is gathering the info after that has happened, which is usually the case by the time BepInEx.MelonLoader.Loader is loaded.
## Usage
Just plop the contents of the downloaded .zip from [the releases page](https://github.com/toebeann/Tobey.MLLoader.GameInfo/releases) into your game folder (after installing [BepInEx](https://github.com/BepInEx/BepInEx) and [BepInEx.MelonLoader.Loader](https://github.com/BepInEx/BepInEx.MelonLoader.Loader), of course).