mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
Qt/CheatsManager: Move concealable types into the cpp file
CompareType, DataType, and Result aren't directly used externally, so these can have their definitions moved into the cpp file.
This commit is contained in:
@ -41,6 +41,35 @@ constexpr u32 MAX_RESULTS = 50;
|
||||
constexpr int INDEX_ROLE = Qt::UserRole;
|
||||
constexpr int COLUMN_ROLE = Qt::UserRole + 1;
|
||||
|
||||
enum class CompareType : int
|
||||
{
|
||||
Equal = 0,
|
||||
NotEqual = 1,
|
||||
Less = 2,
|
||||
LessEqual = 3,
|
||||
More = 4,
|
||||
MoreEqual = 5
|
||||
};
|
||||
|
||||
enum class DataType : int
|
||||
{
|
||||
Byte = 0,
|
||||
Short = 1,
|
||||
Int = 2,
|
||||
Float = 3,
|
||||
Double = 4,
|
||||
String = 5
|
||||
};
|
||||
|
||||
struct Result
|
||||
{
|
||||
u32 address;
|
||||
DataType type;
|
||||
QString name;
|
||||
bool locked = false;
|
||||
u32 locked_value;
|
||||
};
|
||||
|
||||
CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent)
|
||||
{
|
||||
setWindowTitle(tr("Cheats Manager"));
|
||||
@ -57,6 +86,8 @@ CheatsManager::CheatsManager(QWidget* parent) : QDialog(parent)
|
||||
Update();
|
||||
}
|
||||
|
||||
CheatsManager::~CheatsManager() = default;
|
||||
|
||||
void CheatsManager::OnStateChanged(Core::State state)
|
||||
{
|
||||
if (state != Core::State::Running && state != Core::State::Paused)
|
||||
|
Reference in New Issue
Block a user