nwnxee / unified

Binaries available under the Releases tab on Github
https://nwnxee.github.io/unified
GNU General Public License v3.0
129 stars 93 forks source link

Update dotnet-runtime to 7.0 #1644

Closed jhett12321 closed 1 year ago

jhett12321 commented 1 year ago

Why:

With the removal of the FunctionsLinux in 8193.35, function hooking is a bit tricker in C#. You have to use dlsym/GetProcAddress with the symbol to get the actual function pointer to hook.

In .NET 7, Microsoft added a new API for resolving the entrypoint/main program handle, making this much nicer to do: https://learn.microsoft.com/en-us/dotnet/api/system.runtime.interopservices.nativelibrary.getmainprogramhandle?view=net-7.0

Daztek commented 1 year ago

I didn't do it if something implodes