mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-15 16:27:14 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user