Conversation
There was a problem hiding this comment.
Only thing is HeadlessType spits out [Warning: HarmonyX] AccessTools.TypeByName: Could not find type named FrooxEngine.Headless.Program" on graphical client, but that's like whatever
Edit: nvm I AccessTools.TypeByName way of doing it doesn't seem to work, imma look for a better alternative.
|
Wha how did you commit to my repo? |
|
its bcs u have allow maintainers to commit to my repo (enabled by default) when submitting the pr |
|
I ended up just simplifying everything and just made a safe PatchAll method and got rid of Headless check and patch categories. I tested this on Headless in WSL. You just get debug logs now that says it has skipped loading any patch that didn't work: |
Move patch logic from HarmonyExtensions class into the main BepInExResoniteShim class to avoid confusion with HarmonyLib methods.
|
@Nytra sorry for hijacking your PR btw :/ |
On headless you have to use
HarmonyInstance.PatchAll(type);because if you cause Harmony to attempt to process a type that references Renderite.Host you get a crash.also LogAlerter patch runs too early on headless so I made it wait until the logStream actually exists