thcrap: Implement hot-repatching
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- C++
- Stars
- 766
- Forks
- 51
- Avg merge
- 16d 14h
- Merged PRs (30d)
- 1
Description
Hot-repatching
Description
With this feature, newly downloaded binary hacks, breakpoints and other patch data loaded on initialization could immediately be re-applied after a patch update was downloaded, without having to restart the game.
Prerequisites
- Breakpoint removal
- File change notifications also need to work with ZIP files, preferably without having to care whether patch files comes from a ZIP or a real directory structure.
Implementation
- Each plug-in (and the core) can export a
thcrap_plugin_repatch()function. thcrap_repatch()calls each DLL'sthcrap_plugin_repatch().- Using the file change notification functions of the Win32 API, this function is also called whenever the user changes a file locally.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the existing patch-loading and plug-in initialization paths, then locate the export points for thcrap_plugin_repatch() and thcrap_repatch(). Review the Win32 file-change notification path and ZIP handling. Done means updated binary hacks and patch data can be reapplied without restarting, with breakpoint removal and local changes supported.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100