EXI_Channel: Use an enum for read/write modes

This commit is contained in:
Lioncash 2014-10-26 11:39:34 -04:00
parent 1630b0c684
commit 88ec3b7725
1 changed files with 6 additions and 3 deletions

View File

@ -12,9 +12,12 @@
#include "Core/HW/ProcessorInterface.h" #include "Core/HW/ProcessorInterface.h"
#include "Core/PowerPC/PowerPC.h" #include "Core/PowerPC/PowerPC.h"
#define EXI_READ 0 enum
#define EXI_WRITE 1 {
#define EXI_READWRITE 2 EXI_READ,
EXI_WRITE,
EXI_READWRITE
};
CEXIChannel::CEXIChannel(u32 ChannelId) : CEXIChannel::CEXIChannel(u32 ChannelId) :
m_DMAMemoryAddress(0), m_DMAMemoryAddress(0),