mirror of
https://gitlab.com/hashborgir/CharmZone-1.10.git
synced 2024-10-05 17:15:59 +00:00
45 lines
2.5 KiB
C
45 lines
2.5 KiB
C
#pragma once
|
|
|
|
#ifndef _D2PATCHCONST_H
|
|
#define _D2PATCHCONST_H
|
|
|
|
/****************************************************************************
|
|
* *
|
|
* D2PatchConst.h *
|
|
* Copyright (C) Olivier Verville *
|
|
* *
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); *
|
|
* you may not use this file except in compliance with the License. *
|
|
* You may obtain a copy of the License at *
|
|
* *
|
|
* http://www.apache.org/licenses/LICENSE-2.0 *
|
|
* *
|
|
* Unless required by applicable law or agreed to in writing, software *
|
|
* distributed under the License is distributed on an "AS IS" BASIS, *
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.*
|
|
* See the License for the specific language governing permissions and *
|
|
* limitations under the License. *
|
|
* *
|
|
*---------------------------------------------------------------------------*
|
|
* *
|
|
* https://github.com/olivier-verville/D2Template *
|
|
* *
|
|
* This file defines various expressions to simplify the declaration of *
|
|
* patches in D2Patch.h, and you shouldn't modify this file unless you *
|
|
* know what you're doing. *
|
|
* *
|
|
*****************************************************************************/
|
|
|
|
#define PATCH_JMP 0x000000E9
|
|
#define PATCH_CALL 0x000000E8
|
|
#define PATCH_RETN 0x000000C3
|
|
#define PATCH_RETN4 0x000004C2
|
|
#define PATCH_RETN8 0x000008C2
|
|
#define PATCH_RETN0C 0x00000CC2
|
|
#define PATCH_RETN10 0x000010C2
|
|
#define PATCH_RETN14 0x000014C2
|
|
#define PATCH_RETN18 0x000018C2
|
|
#define PATCH_RETN1C 0x00001CC2
|
|
#define PATCH_NOPBLOCK 0x90909090
|
|
|
|
#endif |