-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revise file size handling in file breakpoints.
After changing the variable names to better reflect their actual usage and removing unnecessary conditional branches and intransparent additions, the code becomes a lot clearer. Most notably though, this fixes a bug in patch configurations that have both a replacement file bigger than the original and a .jdiff patch on top: Previously, patchhooks_run() would have only received the size of the game's original file, cutting off the replacement file in the process. Thanks to Gamer251's Mima patch for creating such a configuration and revealing this flaw.
- Loading branch information
Showing
2 changed files
with
31 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters