diff --git a/data/cdata/zone/iw7mod_global_mp.ff b/data/cdata/zone/iw7mod_ui_mp.ff similarity index 99% rename from data/cdata/zone/iw7mod_global_mp.ff rename to data/cdata/zone/iw7mod_ui_mp.ff index d791b090..de309649 100644 Binary files a/data/cdata/zone/iw7mod_global_mp.ff and b/data/cdata/zone/iw7mod_ui_mp.ff differ diff --git a/src/client/component/fastfiles.cpp b/src/client/component/fastfiles.cpp index 84b60a15..a9ed3ca3 100644 --- a/src/client/component/fastfiles.cpp +++ b/src/client/component/fastfiles.cpp @@ -217,6 +217,11 @@ namespace fastfiles add_zone("iw7mod_global_mp", game::DB_ZONE_GLOBAL_TIER1 | game::DB_ZONE_CUSTOM, 1); + if (!game::environment::is_dedi()) + { + add_zone("iw7mod_ui_mp", game::DB_ZONE_UI | game::DB_ZONE_CUSTOM, 0); + } + game::DB_LoadXAssets(data.data(), static_cast(data.size()), syncMode); } } diff --git a/src/client/component/updater.cpp b/src/client/component/updater.cpp index 272d83cd..c33de01f 100644 --- a/src/client/component/updater.cpp +++ b/src/client/component/updater.cpp @@ -29,6 +29,24 @@ namespace updater { namespace { + std::vector dedi_ignore = + { + "zone/iw7mod_ui_mp.ff", + }; + + bool is_dedi_ignore_file(const std::string& name) + { + for (auto& ignore_file : dedi_ignore) + { + if (name == CLIENT_DATA_FOLDER + "/"s + ignore_file) + { + return true; + } + } + + return false; + } + constexpr auto override_cache = true; struct file_data @@ -251,6 +269,11 @@ namespace updater const auto name = file[0].GetString(); const auto sha = file[2].GetString(); + if (is_dedi_ignore_file(name)) + { + continue; + } + console::info("[Updater] Add file \"%s\"\n", name); parsed_list.emplace_back(name, sha);