Browse Source

Load virtual filesystem on lobby start to access schemas

Ivan Savenko 1 year ago
parent
commit
efe10b05e9
1 changed files with 5 additions and 0 deletions
  1. 5 0
      lobby/EntryPoint.cpp

+ 5 - 0
lobby/EntryPoint.cpp

@@ -12,12 +12,17 @@
 #include "LobbyServer.h"
 
 #include "../lib/logging/CBasicLogConfigurator.h"
+#include "../lib/filesystem/CFilesystemLoader.h"
+#include "../lib/filesystem/Filesystem.h"
 #include "../lib/VCMIDirs.h"
 
 static const int LISTENING_PORT = 30303;
 
 int main(int argc, const char * argv[])
 {
+	CResourceHandler::initialize();
+	CResourceHandler::load("config/filesystem.json"); // FIXME: we actually need only config directory for schemas, can be reduced
+
 #ifndef VCMI_IOS
 	console = new CConsoleHandler();
 #endif