stblr / mkw-cs

Client-server netcode for Mario Kart Wii
MIT License
11 stars 0 forks source link

Code patching #3

Closed stblr closed 3 years ago

stblr commented 3 years ago

We want to support 5 types of patches:

Patches will be applied just before the execution of the dol/rel entry points. Hot patching will not be supported in any way.

If we don't get enough space from deletions, we will simply allocate memory from the MEM1 heap. Fixing the position of the bss section of the rel is a separate issue.

An unresolved question is: when to apply relocations? It might be simpler to do it during the build process, but that has the following drawbacks: