1
0
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:
Andrey Filipenkov 2022-08-15 12:20:38 +03:00
parent 35e1b86683
commit 0503993b8d

View File

@ -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());