Skip to content

Conversation

@jikulopo
Copy link

@jikulopo jikulopo commented Jul 22, 2025

Replaced 0harmony.dll from harmonyMod

contains changes from #29

fixed worldCameraDriver beeing null after prepatcher recreates components

freepatching/injections are working as far as i can tell

downside: loss of PDB lines in log

masakitenchi and others added 4 commits July 12, 2025 01:36
_mono_assembly was moved from System.Reflection.Assembly to System.Reflection.RuntimeAssembly in mono.
Change the type name fixes fatal error during 1.6 startup.
Commit here: Unity-Technologies/mono@e14ef8a#diff-4b6f98b8749e45ca2b4ac71c214bdcf41918c832be851cbb18d244b1d62153fe
@RedMattis
Copy link

RedMattis commented Jul 30, 2025

Shouldn't the About.xml be updated? And add a 1.6 folder?

@masakitenchi masakitenchi mentioned this pull request Aug 18, 2025
@vjikholg
Copy link

vjikholg commented Aug 19, 2025

Can anyone confirm that FreePatching outside of Prepatcher, i.e., not the WorldCamera fixes embedded within, is indeed working?

@jikulopo
Copy link
Author

Can anyone confirm that FreePatching outside of Prepatcher, i.e., not the WorldCamera fixes embedded within, is indeed working?

Definitely works for me, checked with both dumping assembly and walking through prepatched assemblies with doorstop(without hotreload)+dnspy

@vjikholg
Copy link

Sorry, just to clarify - you've tested a 3rd party mod utilizing FreePatching and it was successfully able to boot into the game?

I'm asking this because I'm running into issues with Prepatcher changing my assemblies to reflect-only before invoking my free patch methods throwing a System.InvalidOperationException. I'm not sure if the issue was on my end or if Prepatcher might not be working for 3rd party patches yet (i.e., patches not embedded within Prepatcher itself).

@jikulopo
Copy link
Author

I have a personal mod - not prepatcher itself - running both FreePatch and FreePatchAll and both are working properly. Also Prepatcher only sets old assemblies to refonly after all freepatches/injections etc were executed so prepatcher itself shouldn't be the cause of any refonly errors during freepatching.

@rutexd rutexd mentioned this pull request Sep 1, 2025
@NachoToast
Copy link

@jikulopo is this PR description still up-to-date, or have issues like PDB loading since been fixed?

@jikulopo
Copy link
Author

jikulopo commented Nov 3, 2025

@jikulopo is this PR description still up-to-date, or have issues like PDB loading since been fixed?

Description is up to date - assemblies modified by mono.cecil no longer match the original pdb files and it seems like mono.cecil doesnt really support generating new (in memory) pdb files for in memory assemblies - so not really feasible Managed to get pdb loading working but still need to clean code

… to load

Allow creation of pdb from prepatched assemlies
@jikulopo
Copy link
Author

Pdb generation now implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants