Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reloading mods #6

Open
Nytra opened this issue Jan 14, 2024 · 0 comments
Open

Hot reloading mods #6

Nytra opened this issue Jan 14, 2024 · 0 comments
Labels
enhancement New feature or request .NET Pull requests that update .net code

Comments

@Nytra
Copy link

Nytra commented Jan 14, 2024

I have made a library for it here: https://github.com/Nytra/ResoniteHotReloadLib

(I am not expecting my code to be used exactly - it is mainly just for reference)

The key part is that it uses Mono.Cecil to change the internal name of the assembly to allow it to be loaded into the game more than once.

I'm not sure how you would want to handle it overall but you can refer to my repo to see how I am doing it.

It might be worth changing the assembly loading code in RML to load from bytes which would make mod assemblies in rml_mods able to be overwritten while the game is running.

@XDelta XDelta added enhancement New feature or request .NET Pull requests that update .net code labels Jan 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request .NET Pull requests that update .net code
Projects
None yet
Development

No branches or pull requests

2 participants