The patching workflow in sm64dx relies on two thin shell wrappers around the standardDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/Project516/sm64dx/llms.txt
Use this file to discover all available pages before exploring further.
patch utility: tools/apply_patch.sh and tools/revert_patch.sh. Each script asks for interactive confirmation before touching any source files, so you have a chance to abort before anything is modified. Run both scripts from the repository root.
Applying a patch
Navigate to the repository root
All patch scripts expect to be run from the repository root so that the
relative paths inside the
.patch files resolve correctly.Run apply_patch.sh with the target patch
Pass the path to the The script prompts you to confirm before applying:Enter
.patch file as the sole argument.Y to proceed. The script calls patch -p1 with the patch file,
stripping one level of path prefix so that the hunks map correctly onto
the repository layout.Reverting a patch
Run revert_patch.sh with the same patch file
Pass the exact same The script prompts for confirmation:Enter
.patch file you originally applied.Y to proceed. Internally the script calls patch -p1 -R, which
applies the patch in reverse to undo every hunk.To understand exactly what each script does, read the source directly — they
are short and straightforward:
tools/apply_patch.sh— confirmation prompt, thenpatch -p1 < patch_filetools/revert_patch.sh— confirmation prompt, thenpatch -p1 -R < patch_file