thpatch / thpatch/thcrap

thcrap: Implement hot-repatching

Open
#5 0 comments 0 reactions 0 assignees View on GitHub

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's thcrap_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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.