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

Cheat bugfix and new A8 cheat type #3328

Merged
merged 3 commits into from
Nov 11, 2024
Merged

Cheat bugfix and new A8 cheat type #3328

merged 3 commits into from
Nov 11, 2024

Conversation

PugsyMAME
Copy link
Contributor

  • Added needed g_emu_thread->reloadCheats calls after the reloadList() calls on entering a new code or importing new codes.

Without it I had to import new codes and then manually edit one of them for it to show up in the cheat counts and possibly even work

  • Added cheat type A8 which is the byte equivalent of the A7 cheat type as there will be a need of this type.

Added needed g_emu_thread->reloadCheats calls after the reloadList() calls on entering a new code or importing new codes.

Without it I had to import new codes and then manually edit one of them for it to show up in the cheat counts and possibly even work
Added cheat type A8 which is the byte equivalent of the A7 cheat type as there will be a need of this type.
@PugsyMAME PugsyMAME changed the title Cheat bugfix and new A7 cheat type Cheat bugfix and new A8 cheat type Nov 10, 2024
@@ -529,6 +529,7 @@ void GameCheatSettingsWidget::importCodes(const std::string& file_contents)
}

reloadList();
g_emu_thread->reloadCheats(true, true, false, true);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about this. It shouldn't need to reload cheats, since the one you just imported should not be enabled yet.

Once you click the checkbox, it should trigger a reload.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mentioned on Discord what the bools should be and I can confirm that true, false,false ,true works for both lines.

g_emu_thread->reloadCheats(true, false, false, true);

I've updated it on my master branch to reflect this.

Changed boolean parameters in last PR as per discord
@stenzek stenzek merged commit 5caadec into stenzek:master Nov 11, 2024
8 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