From d8693781bac4f2f49ddd55478c3aed74ccc4456b Mon Sep 17 00:00:00 2001 From: nastys <@> Date: Wed, 29 Sep 2021 19:03:57 +0200 Subject: [PATCH] 2.6.3: fix reflect/refract data type pt2 --- source-code/source/plugins/Patches/PatchApplier710.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source-code/source/plugins/Patches/PatchApplier710.h b/source-code/source/plugins/Patches/PatchApplier710.h index c521281..040dbe6 100644 --- a/source-code/source/plugins/Patches/PatchApplier710.h +++ b/source-code/source/plugins/Patches/PatchApplier710.h @@ -167,7 +167,7 @@ class PatchApplier710 : public PatchApplier { if (nPDLoaderText && !nHideFreeplay) { InjectCode((void*)0x00000001409F61F0, { 0x50, 0x44, 0x20, 0x4C, 0x6F, 0x61, 0x64, 0x65, 0x72, 0x20, 0x00, 0x20, - '2', '.', '6', '.', '2'}); + '2', '.', '6', '.', '3'}); printf("[Patches] Show PD Loader text\n"); } } @@ -649,7 +649,7 @@ class PatchApplier710 : public PatchApplier { } // patch refract and reflect buffer sizes - if ((int)nRefractResWidth != -1 && (int)nRefractResHeight != -1) + if (nRefractResWidth > -1 && nRefractResHeight > -1) { InjectCode((void*)(0x140a24424), std::vector((uint8_t*)&nRefractResWidth, (uint8_t*)((int64_t)&nRefractResWidth + 4))); InjectCode((void*)(0x140a24428), std::vector((uint8_t*)&nRefractResHeight, (uint8_t*)((int64_t)&nRefractResHeight + 4)));