-
Notifications
You must be signed in to change notification settings - Fork 2.2k
emu/debug: Extended memory commands for region and space #13767
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
base: master
Are you sure you want to change the base?
Conversation
…andels both region and share memory
Please remember to update debughlp.cpp, too. |
Sure, right after I see others have no concerns regarding this. |
I don't think this is quite justified. There may be memory regions and memory shares with the same names. |
I was thinking about it. It's quite immoral to expect the user to know about internal representation. |
...or alternatively we can have savem which successes in case no conflicts only + samer, saves, etc |
Or an alternative alternative, assuming the parser is not insane, having a savem s:whatever/r:whatever/etc where the non-prefixed DWIM when it's not ambiguous and errors otherwise. |
Making it draft and working on @galibert 's version. |
Is it really worth making the syntax more complicated to avoid an extra command? I already need to take a trip to the documentation when I want to do anything interesting with expressions (this section). Also you’re outright removing a pair of commands which is going to break a pile of scripts, and also any ROM-patching cheats that depend on them. On top of that, in the existing expression syntax, |
I can keep loadr and add loads. My concern is the user not expected to know what she really wants - she seeing the name in dropdown and uses the name. How do you expect her to know if it's share or region or banked? |
If you really want to avoid adding extra commands, you could probably extend For example, use the
Would be equivalent to this:
You’d need to choose another suffix for shares that doesn’t clash with current expression syntax (perhaps Also other things could be extended to support suffixes for region/share:
The thing to be aware of if you do this is that then the But I think getting rid of |
See there it says “Region” for memory regions. And it says “memory” for shares. They already need to know what a region is to use the |
So... the plan is:
"e" corresponds to m(e)mory in dropdown or shar(e) in internal representation. same for |
If you’re extending the syntax for one of the The source argument parsing is already encapsulated for things that take the |
Understood. I'll be working on all variants then. Any concerns about "e" ? |
I’m not sure. I would’ve gone for |
The plan is clear and it will take some time. |
I've implemented save/load but don't really like how is the code structured. If you have any ideas how to make it better let me know while I'm implementing the rest. |
That must be it |
No description provided.