Load custom map patch zones

This commit is contained in:
Federico Cecchetto 2022-08-22 16:50:22 +02:00
parent c0013157b2
commit 50d3c94058
2 changed files with 7 additions and 1 deletions

View File

@ -263,6 +263,12 @@ namespace fastfiles
if (is_builtin_map) 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); game::DB_LevelLoadAddZone(load, name, alloc_flags, size_est);
} }
else else

View File

@ -410,7 +410,7 @@ namespace updater
{ {
update_data.access([](update_data_t& data_) update_data.access([](update_data_t& data_)
{ {
data_.restart_required = true;// data_.restart_required = true;
}); });
} }