From 56a5345967f93d18d019042e283883377f8ec76f Mon Sep 17 00:00:00 2001 From: Skull <86374920+skkuull@users.noreply.github.com> Date: Fri, 4 Feb 2022 05:10:30 +0200 Subject: [PATCH] remove verify for now --- src/client/main.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/client/main.cpp b/src/client/main.cpp index 07d6ad8a..9e7ffcb3 100644 --- a/src/client/main.cpp +++ b/src/client/main.cpp @@ -110,16 +110,14 @@ void remove_crash_file() utils::io::remove_file("__h1Exe"); } -void verify_mwr_version() +/*void verify_mwr_version() { - const auto BuildNumMp = *reinterpret_cast(0x1403F6280); - const auto BuildNumSp = *reinterpret_cast(0x140335370); - - if (BuildNumMp != 814118 && BuildNumSp != 814118) + const auto value = *reinterpret_cast(0x140001337); + if (value != 0x24AFEB05 && value != 0x1D860F04) //S1 { - throw std::runtime_error("Unsupported Call of Duty: Modern Warfare Remastered version"s); + throw std::runtime_error("Unsupported Call of Duty: Advanced Warfare version"s); } -} +}*/ void enable_dpi_awareness() { @@ -204,7 +202,7 @@ int main() if (!component_loader::post_load()) return 0; - verify_mwr_version(); + //verify_mwr_version(); premature_shutdown = false; }