mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 19:10:44 +00:00
Minor changes.
* previous push also corrected screenshot support. * == -> = for clarity. * added cheat search to features list.
This commit is contained in:
parent
55799c4230
commit
2e5f6c56c6
@ -55,6 +55,7 @@ Standard Features
|
||||
- SuperFX overclocking of up to 800%
|
||||
- Frame advance support
|
||||
- Screenshot support
|
||||
- Cheat code search support
|
||||
|
||||
Links
|
||||
-----
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user