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
Android: Add graphics mods support to GUI #10885
Conversation
Patches, AR codes and Gecko codes have an associated code that the GUI can show, but graphics mods don't.
ReadOnlyCheat will be used by graphics mods.
|
|
||
| for (GraphicsModConfig& mod : mod_group->GetMods()) | ||
| { | ||
| // Group only mods shouldn't be shown |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Part of me wonders if we should add a IsModVisibleInUI(const std::set<std::string>& groups) function to be used in Qt and Android. Unlikely to add more visibility features but if it was needed, it would be in one place.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed some redundant empty checks instead. The code now feels short enough that it might be fine to just leave it duplicated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That works. Thanks!
| Java_org_dolphinemu_dolphinemu_features_cheats_model_GraphicsModGroup_load(JNIEnv* env, jclass, | ||
| jstring jGameId) | ||
| { | ||
| auto* config = new GraphicsModGroupConfig(GetJString(env, jGameId)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just curious, what cleans up these raw pointers?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Java_org_dolphinemu_dolphinemu_features_cheats_model_GraphicsModGroup_finalize.
52b2b63
to
ba13ce6
Compare
ba13ce6
to
3bd2bca
Compare
Because PR #10518 (graphics mods) was merged right before the previous progress report, I didn't have time to make graphics mods available in the Android GUI in time before the progress report. But let's get it merged in time for the next progress report, shall we?