Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Patch: Re-run PPT_ONCE_ON_LOAD patches when enabling them as the game is running #12165

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

CookiePLMonster
Copy link
Contributor

Description of Changes

This PR introduces two changes:

  1. Patches of type PPT_COMBINED_0_1 were erroneously working identical to the Type 1 patches, as they were not applying in the entrypoint, contrary to what the docs claimed.
  2. Patches of type PPT_ONCE_ON_LOAD that are enabled while the game is running are now being applied immediately, without requiring a restart. Without this change, one-time patches were effectively at a disadvantage compared to the every-frame patches, as the user could not enable them on runtime, even if they were safe to do so.

Rationale behind Changes

Stop punishing one-time patches for trying to be nice and not overwriting the code over and over every frame.

Suggested Testing Steps

  1. Run any game that has one-time patches, for example the 16:9 Widescreen fix for Tokyo Xtreme Racer Zero. Ensure the patch is disabled.
  2. Enable the patch as the game is running.
  3. Observe that the patch does apply.

Type 2 patches were supposed to be "Type 0 + Type 1",
but in reality they only executed on vblank, making them equivalent
to Type 1.
@F0bes F0bes merged commit 3b5b3ff into PCSX2:master Jan 8, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants