OXYGENHUB
◆ main openmsx / src / imgui / ImGuiCheatFinder.hh
513 B · C++ · last changed chore(): initial commit 1 month ago source blame history raw
e8555c89 Andy McCall 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
} // namespace openmsx
32
33
#endif