Skip to content

Commit

Permalink
Rename *_LETTER to *_OPCODE
Browse files Browse the repository at this point in the history
  • Loading branch information
Belonit committed Jul 8, 2023
1 parent 4163010 commit 312eb2b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Misc/NoCD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ void NoCD::Apply()
Patch::Apply_RAW(0x531289, // InitSecondaryMIXes_SkipMovies
{
0xB0, 0x01, // mov al, 1
NOP_LETTER
NOP_OPCODE
});
}

Expand Down
14 changes: 7 additions & 7 deletions src/Utilities/Macro.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ __forceinline T* Make_Pointer(const uintptr_t address)
#pragma warning(push)
#pragma warning( disable : 4324)

#define LJMP_LETTER 0xE9
#define CALL_LETTER 0xE8
#define NOP_LETTER 0x90
#define LJMP_OPCODE 0xE9
#define CALL_OPCODE 0xE8
#define NOP_OPCODE 0x90

typedef void JumpType;

Expand All @@ -57,7 +57,7 @@ struct _LJMP

constexpr
_LJMP(DWORD offset, DWORD pointer) :
opcode(LJMP_LETTER),
opcode(LJMP_OPCODE),
pointer(pointer - offset - 5)
{ };
};
Expand All @@ -70,7 +70,7 @@ struct _CALL

constexpr
_CALL(DWORD offset, DWORD pointer) :
opcode(CALL_LETTER),
opcode(CALL_OPCODE),
pointer(pointer - offset - 5)
{ };
};
Expand All @@ -84,9 +84,9 @@ struct _CALL6

constexpr
_CALL6(DWORD offset, DWORD pointer) :
opcode(CALL_LETTER),
opcode(CALL_OPCODE),
pointer(pointer - offset - 5),
nop(NOP_LETTER)
nop(NOP_OPCODE)
{ };
};

Expand Down

0 comments on commit 312eb2b

Please sign in to comment.