1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-24 22:14:36 +02:00

support restarting server thread

kambala-decapitator/vcmi#27
This commit is contained in:
Andrey Filipenkov 2021-03-20 14:58:10 +03:00
parent 2fc4d48215
commit 01c17d856f

View File

@ -171,6 +171,7 @@ void CResourceHandler::initialize()
// |-config
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());