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

DolphinWX: Allow short-hand searching in the code window #602

Merged
merged 1 commit into from Jul 11, 2014

Conversation

lioncash
Copy link
Member

Lessens the restrictions on the searching in the code view.
Now typing out the full 8 digit hex number isn't needed. For example, you don't need to type 000000FF to go to FF, you just literally type FF.

Also makes JumpToAddress a boolean function to remain consistent with the DSP code view.

This will also change the address search box to have a red background if either an invalid hex number is given, or if it's longer than 8 characters. This is similar to how the DSP address box works as well.

@Parlane
Copy link
Member

Parlane commented Jul 11, 2014

@lioncash: This comment grants you the permission to merge this pull request whenever you think it is ready. After addressing the remaining comments, click this link to merge.


LGTM

@dolphin-emu-bot allowmerge

@shuffle2
Copy link
Contributor

The reason it was like this is to prevent continuously moving the view while you are typing in an address.

@shuffle2
Copy link
Contributor

Also, I'm curious if wxw just has a builtin for string -> integer. What if you paste a hex address prefixed by 0x, or similar things? Probably a function to parse all this stuff already exists somewhere.

@lioncash
Copy link
Member Author

Updated to use the wx built-ins (this also handles strings with "0x" prefixed to them now)

@lioncash
Copy link
Member Author

Should be all good now.

Lessens the restrictions on the searching in the code view.
Now typing out the full 8 digit hex number isn't needed. For example, you don't need to type 000000FF to go to FF, you just literally type FF.

Also makes JumpToAddress a boolean function to remain consistent with the DSP code view.

This will also change the address search box to have a red background if
either an invalid hex number is given, or if it's longer than 8 characters
@magcius
Copy link
Member

magcius commented Jul 11, 2014

Looks good to me.

dolphin-emu-bot added a commit that referenced this pull request Jul 11, 2014
DolphinWX: Allow short-hand searching in the code window
@dolphin-emu-bot dolphin-emu-bot merged commit 99d4ab0 into dolphin-emu:master Jul 11, 2014
@lioncash lioncash deleted the lax-addr-box branch January 25, 2017 01:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants