Minor changes.

* previous push also corrected screenshot support.
* == -> = for clarity.
* added cheat search to features list.
This commit is contained in:
byuu 2019-07-22 01:51:29 +09:00
parent 55799c4230
commit 2e5f6c56c6
2 changed files with 3 additions and 2 deletions

View File

@ -55,6 +55,7 @@ Standard Features
- SuperFX overclocking of up to 800%
- Frame advance support
- Screenshot support
- Cheat code search support
Links
-----

View File

@ -9,7 +9,7 @@ auto CheatFinder::create() -> void {
searchSize.append(ComboButtonItem().setText("Byte"));
searchSize.append(ComboButtonItem().setText("Word"));
searchSize.append(ComboButtonItem().setText("Long"));
searchMode.append(ComboButtonItem().setText("=="));
searchMode.append(ComboButtonItem().setText("="));
searchMode.append(ComboButtonItem().setText("!="));
searchMode.append(ComboButtonItem().setText(">="));
searchMode.append(ComboButtonItem().setText("<="));
@ -61,7 +61,7 @@ auto CheatFinder::eventScan() -> void {
uint32_t size = searchSize.selected().offset();
uint32_t mode = searchMode.selected().offset();
uint32_t span = searchSpan.selected().offset();
uint32_t data = searchValue.text().replace("$", "0x").replace("#", "").natural();
uint32_t data = searchValue.text().replace("$", "0x").replace("#", "").integer();
if(size == 0) data &= 0xff;
if(size == 1) data &= 0xffff;
if(size == 2) data &= 0xffffff;