| 1 |
#ifndef IMGUI_CHEAT_FINDER_HH |
| 2 |
#define IMGUI_CHEAT_FINDER_HH |
| 3 |
|
| 4 |
#include "ImGuiPart.hh" |
| 5 |
|
| 6 |
#include <cstdint> |
| 7 |
#include <vector> |
| 8 |
|
| 9 |
namespace openmsx { |
| 10 |
|
| 11 |
class ImGuiCheatFinder final : public ImGuiPart |
| 12 |
{ |
| 13 |
public: |
| 14 |
using ImGuiPart::ImGuiPart; |
| 15 |
|
| 16 |
void paint(MSXMotherBoard* motherBoard) override; |
| 17 |
|
| 18 |
public: |
| 19 |
bool show = false; |
| 20 |
|
| 21 |
private: |
| 22 |
struct SearchResult { |
| 23 |
uint16_t address; |
| 24 |
uint8_t oldValue; |
| 25 |
uint8_t newValue; |
| 26 |
}; |
| 27 |
std::vector<SearchResult> searchResults; |
| 28 |
uint8_t searchValue = 0; |
| 29 |
}; |
| 30 |
|
| 31 |
} |
| 32 |
|
| 33 |
#endif |