mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-14 00:09:24 +01:00
Qt/CheatsManager: Use ActionReplay constants
This commit is contained in:
parent
4f7ff76801
commit
a154c56815
@ -40,6 +40,10 @@ constexpr u32 MAX_RESULTS = 50;
|
|||||||
constexpr int INDEX_ROLE = Qt::UserRole;
|
constexpr int INDEX_ROLE = Qt::UserRole;
|
||||||
constexpr int COLUMN_ROLE = Qt::UserRole + 1;
|
constexpr int COLUMN_ROLE = Qt::UserRole + 1;
|
||||||
|
|
||||||
|
constexpr int AR_SET_BYTE_CMD = 0x00;
|
||||||
|
constexpr int AR_SET_SHORT_CMD = 0x02;
|
||||||
|
constexpr int AR_SET_INT_CMD = 0x04;
|
||||||
|
|
||||||
enum class CompareType : int
|
enum class CompareType : int
|
||||||
{
|
{
|
||||||
Equal = 0,
|
Equal = 0,
|
||||||
@ -109,14 +113,14 @@ static ActionReplay::AREntry ResultToAREntry(Result result)
|
|||||||
switch (result.type)
|
switch (result.type)
|
||||||
{
|
{
|
||||||
case DataType::Byte:
|
case DataType::Byte:
|
||||||
cmd = 0x00;
|
cmd = AR_SET_BYTE_CMD;
|
||||||
break;
|
break;
|
||||||
case DataType::Short:
|
case DataType::Short:
|
||||||
cmd = 0x02;
|
cmd = AR_SET_SHORT_CMD;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
case DataType::Int:
|
case DataType::Int:
|
||||||
cmd = 0x04;
|
cmd = AR_SET_INT_CMD;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user