mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
avoid reloading server's filesystem stuff
This commit is contained in:
parent
35e1b86683
commit
0503993b8d
@ -172,8 +172,11 @@ void CResourceHandler::initialize()
|
||||
// |-saves
|
||||
// |-config
|
||||
|
||||
// when built as single process, server can be started multiple times
|
||||
if (globalResourceHandler.rootLoader)
|
||||
return;
|
||||
|
||||
globalResourceHandler.rootLoader = vstd::make_unique<CFilesystemList>();
|
||||
knownLoaders.clear();
|
||||
knownLoaders["root"] = globalResourceHandler.rootLoader.get();
|
||||
knownLoaders["saves"] = new CFilesystemLoader("SAVES/", VCMIDirs::get().userSavePath());
|
||||
knownLoaders["config"] = new CFilesystemLoader("CONFIG/", VCMIDirs::get().userConfigPath());
|
||||
|
Loading…
Reference in New Issue
Block a user