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

Allow AREngine to be used independently of ARCodeFile #2108

Merged
merged 2 commits into from
Aug 1, 2024

Conversation

JesseTG
Copy link
Contributor

@JesseTG JesseTG commented Jul 22, 2024

This PR decouples AREngine and ARCodeFile, allowing frontends to register and use cheats without having to rely on the specific storage format used by ARCodeFile. The cheat file format and the Qt frontend's behavior are unchanged.

JesseTG added 2 commits July 22, 2024 10:58
- Fixes a memory leak, as the cheat file wasn't cleaned up in the destructor
- Suitable for frontends that have their own way of storing cheats
- Store the cheats in `AREngine` in a `std::vector`
- Apparently cheats are _supposed_ to be executed each frame; I didn't understand this until recently
@Arisotura Arisotura merged commit c6bf5d5 into melonDS-emu:master Aug 1, 2024
5 of 6 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