mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-31 01:59:52 -06:00
x64Emitter: Use an enum class to represent FixupBranch branch types
Gets rid of the use of magic values and replaces them with strongly typed symbolic names.
This commit is contained in:
@ -322,8 +322,14 @@ inline u32 PtrOffset(const void* ptr, const void* base = nullptr)
|
||||
|
||||
struct FixupBranch
|
||||
{
|
||||
enum class Type
|
||||
{
|
||||
Branch8Bit,
|
||||
Branch32Bit
|
||||
};
|
||||
|
||||
u8* ptr;
|
||||
int type; // 0 = 8bit 1 = 32bit
|
||||
Type type;
|
||||
};
|
||||
|
||||
class XEmitter
|
||||
|
Reference in New Issue
Block a user