-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
DolphinQt: Patches window added #9531
base: master
Are you sure you want to change the base?
Conversation
7cf6ea4
to
1ac3455
Compare
std::vector<std::string> patches; | ||
for (const auto& patch : m_patches) | ||
{ | ||
std::ostringstream oss; |
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 wonder if it makes sense to make a fmt::formatter
for MemoryPatch
then you just do: fmt::to_string(patch)
...
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.
Another option is to implement std::ostream& operator<<
and use fmt
's ostream support, if that'd make it easier to be consistent with the parsing code.
if (!PowerPC::HostIsRAMAddress(address)) | ||
return; | ||
|
||
const bool is_enabled = patch.is_enabled == Common::Debug::MemoryPatch::State::Enabled; |
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 seen this a couple times, maybe it makes sense to make a function?
One other idea, maybe adding a 'note' field or 'description' would be useful. |
Can you rebase this on master? |
Sure. However, I'm not satisfied with the current PR state anymore. There are some improvements I'd like to make first, so I'll switch this PR as a draft meanwhile. |
FifoCI detected that this change impacts graphical rendering. Here are the behavior differences detected by the system:
automated-fifoci-reporter |
This PR adds a widget to handle memory patches like replaced instructions. (based on #7081)
At the moment, it looks like this:
There are few things I need to address before making this PR ready to merge:
ClearPatches()
is called on shutdown (MMU: Fix IsRAMAddress not working #9533)Add button to inject a file into a specific memory address(will be done in another PR)Ready to be reviewed & merged (depends on #9533).