From 39526c9cb548224f909a6ef8aef93c16e912a34e Mon Sep 17 00:00:00 2001 From: sTc2201 <41953894+sTc2201@users.noreply.github.com> Date: Mon, 8 Jan 2024 05:24:47 +0100 Subject: [PATCH] Remove free cam boundary limits in the video editor (#392) * Remove free cam boundary limits in the video editor * adjust patterns, fix comment --- source/fixes.ixx | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/source/fixes.ixx b/source/fixes.ixx index c175b254..b422fb17 100644 --- a/source/fixes.ixx +++ b/source/fixes.ixx @@ -341,6 +341,18 @@ public: } }; } + + // Remove free cam boundary limits in the video editor, ported from openCamera. + { + auto pattern = find_pattern("0F 86 ? ? ? ? 0F 2E FA 9F F6 C4 44 7A 05", "0F 86 ? ? ? ? F3 0F 10 54 24 ? 0F 2E D4"); + injector::MakeJMP(pattern.get_first(), find_pattern("8D 84 24 ? ? ? ? 50 8D 4F 10 E8 ? ? ? ? F3 0F 10 AC 24", "8D 44 24 60 8D 7E 10 50 8B CF E8").get_first()); + + pattern = find_pattern("72 48 0F 2F 44 24 ? 72 41 0F 28 C3 0F 54 C2", "72 5F 0F 2F C5 72 5A 0F 2F FA 76 0E F3 0F 10 05"); + injector::MakeJMP(pattern.get_first(), find_pattern("F3 0F 10 4C 24 ? F3 0F 10 94 24 ? ? ? ? F3 0F 11 BF", "F3 0F 10 44 24 ? F3 0F 11 86 ? ? ? ? F3 0F 10 44 24 ? F3 0F 11 86 ? ? ? ? F3 0F 10 44 24 ? F3 0F 11 86 ? ? ? ? F3 0F 10 44 24 ? F3 0F 11 86 ? ? ? ? B3 01").get_first()); + + pattern = find_pattern("72 6D 83 3D ? ? ? ? ? 74 1A A1", "0F 82 ? ? ? ? 83 3D ? ? ? ? ? 74 1A"); + injector::MakeJMP(pattern.get_first(), find_pattern("8B 87 ? ? ? ? F3 0F 10 87 ? ? ? ? F3 0F 10 8F ? ? ? ? 8D 4F 40", "D9 86 ? ? ? ? F3 0F 10 86 ? ? ? ? F3 0F 10 8E ? ? ? ? D9 5E 40").get_first()); + } }; } } Fixes; \ No newline at end of file