mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-15 08:17:13 +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:
@@ -29,6 +29,7 @@
|
||||
#include "Logger.h"
|
||||
#include "dServer.h"
|
||||
#include "AssetManager.h"
|
||||
#include "ZoneOverrideStore.h"
|
||||
#include "BinaryPathFinder.h"
|
||||
#include "ServiceType.h"
|
||||
#include "MessageType/Master.h"
|
||||
@@ -313,6 +314,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());
|
||||
LOG("Is the provided client_location in Windows Onedrive? If so, remove it from Onedrive.");
|
||||
|
||||
Reference in New Issue
Block a user