feat(config): zone_override_dir and the limits of edited zone files

World, master and chat servers read files under maps/ through the override folder
named by zone_override_dir (empty: off). The settings for who may send zone files
and how large a set may be are in sharedconfig.ini and the settings catalog.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
Aaron Kimbrell
2026-11-10 18:25:53 -06:00
parent f34577b5a2
commit d124372973
5 changed files with 35 additions and 0 deletions

View File

@@ -18,6 +18,7 @@
#include "MessageType/Master.h"
#include "Diagnostics.h"
#include "AssetManager.h"
#include "ZoneOverrideStore.h"
#include "BinaryPathFinder.h"
#include "ServiceType.h"
#include "PlayerContainer.h"
@@ -92,6 +93,8 @@ int main(int argc, char** argv) {
}
Game::assetManager = new AssetManager(clientPath);
// Edited zone files are read in place of the client's (docs/ZonePublish.md)
Game::assetManager->SetOverrideDir(ZoneOverrideStore::RootFromSetting(Game::config->GetValue("zone_override_dir")));
} catch (std::runtime_error& ex) {
LOG("Got an error while setting up assets: %s", ex.what());
delete Game::logger;