summaryrefslogtreecommitdiffstats
path: root/src/Pad.cpp
diff options
context:
space:
mode:
authorFire-Head <Fire-Head@users.noreply.github.com>2019-06-17 15:32:38 +0200
committerFire-Head <Fire-Head@users.noreply.github.com>2019-06-17 15:32:38 +0200
commit617eb6951a04d7a76d132aa0f144e7b3c4702925 (patch)
treefb6444638c35ae1e6a178fabf5d49b0801f666e7 /src/Pad.cpp
parentMerge pull request #8 from GTAmodding/master (diff)
downloadre3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar.gz
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar.bz2
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar.lz
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar.xz
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.tar.zst
re3-617eb6951a04d7a76d132aa0f144e7b3c4702925.zip
Diffstat (limited to 'src/Pad.cpp')
-rw-r--r--src/Pad.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Pad.cpp b/src/Pad.cpp
index ab00e88f..a563e26c 100644
--- a/src/Pad.cpp
+++ b/src/Pad.cpp
@@ -1995,7 +1995,10 @@ STARTPATCHES
InjectHook(0x492720, CPad::UpdatePads, PATCH_JUMP);
InjectHook(0x492C60, &CPad::ProcessPCSpecificStuff, PATCH_JUMP);
InjectHook(0x492C70, &CPad::Update, PATCH_JUMP);
+#pragma warning( push )
+#pragma warning( disable : 4573)
InjectHook(0x492F00, (void (*)())CPad::DoCheats, PATCH_JUMP);
+#pragma warning( pop )
InjectHook(0x492F20, (void (CPad::*)(int16))&CPad::DoCheats, PATCH_JUMP);
InjectHook(0x492F30, CPad::StopPadsShaking, PATCH_JUMP);
InjectHook(0x492F50, &CPad::StopShaking, PATCH_JUMP);