mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-11-16 08:45:27 +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:
@@ -88,6 +88,7 @@
|
||||
#include "PropertyManagementComponent.h"
|
||||
#include "EditMode.h"
|
||||
#include "AssetManager.h"
|
||||
#include "ZoneOverrideStore.h"
|
||||
#include "LevelProgressionComponent.h"
|
||||
#include "eBlueprintSaveResponseType.h"
|
||||
#include "Amf3.h"
|
||||
@@ -289,6 +290,8 @@ int main(int argc, char** argv) {
|
||||
clientPath = BinaryPathFinder::GetBinaryDir() / clientPath;
|
||||
}
|
||||
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 (const std::exception& ex) {
|
||||
LOG("Got an error while setting up assets: %s", ex.what());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user