From 50d3c94058e3f82c3875a10c095c600cceca30e6 Mon Sep 17 00:00:00 2001 From: Federico Cecchetto Date: Mon, 22 Aug 2022 16:50:22 +0200 Subject: [PATCH] Load custom map patch zones --- src/client/component/fastfiles.cpp | 6 ++++++ src/client/component/updater.cpp | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/client/component/fastfiles.cpp b/src/client/component/fastfiles.cpp index b0c08b8b..4e955778 100644 --- a/src/client/component/fastfiles.cpp +++ b/src/client/component/fastfiles.cpp @@ -263,6 +263,12 @@ namespace fastfiles if (is_builtin_map) { + const auto name_ = "h2_mod_patch_"s + name; + if (fastfiles::exists(name_)) + { + add_custom_level_load_zone(load, name_.data(), true, size_est); + } + game::DB_LevelLoadAddZone(load, name, alloc_flags, size_est); } else diff --git a/src/client/component/updater.cpp b/src/client/component/updater.cpp index ed4cdf75..39d5f6dc 100644 --- a/src/client/component/updater.cpp +++ b/src/client/component/updater.cpp @@ -410,7 +410,7 @@ namespace updater { update_data.access([](update_data_t& data_) { - data_.restart_required = true;// + data_.restart_required = true; }); }