Skip to content
Permalink
Browse files

Qt/CheatsManager: Use ActionReplay constants

  • Loading branch information...
spycrab committed Apr 22, 2019
1 parent 4f7ff76 commit a154c5681595414b1b9035d3c14d5fd7e5f9cdf7
Showing with 7 additions and 3 deletions.
  1. +7 −3 Source/Core/DolphinQt/CheatsManager.cpp
@@ -40,6 +40,10 @@ constexpr u32 MAX_RESULTS = 50;
constexpr int INDEX_ROLE = Qt::UserRole;
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
{
Equal = 0,
@@ -109,14 +113,14 @@ static ActionReplay::AREntry ResultToAREntry(Result result)
switch (result.type)
{
case DataType::Byte:
cmd = 0x00;
cmd = AR_SET_BYTE_CMD;
break;
case DataType::Short:
cmd = 0x02;
cmd = AR_SET_SHORT_CMD;
break;
default:
case DataType::Int:
cmd = 0x04;
cmd = AR_SET_INT_CMD;
break;
}

0 comments on commit a154c56

Please sign in to comment.
You can’t perform that action at this time.