mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
Simplify library initialization
This commit is contained in:
@@ -78,10 +78,11 @@ static CBasicLogConfigurator *logConfig;
|
||||
|
||||
static void init()
|
||||
{
|
||||
CStopWatch tmh;
|
||||
try
|
||||
{
|
||||
loadDLLClasses();
|
||||
CStopWatch tmh;
|
||||
LIBRARY->initializeLibrary();
|
||||
logGlobal->info("Initializing VCMI_Lib: %d ms", tmh.getDiff());
|
||||
}
|
||||
catch (const DataLoadingException & e)
|
||||
{
|
||||
@@ -89,8 +90,6 @@ static void init()
|
||||
return;
|
||||
}
|
||||
|
||||
logGlobal->info("Initializing VCMI_Lib: %d ms", tmh.getDiff());
|
||||
|
||||
// Debug code to load all maps on start
|
||||
//ClientCommandManager commandController;
|
||||
//commandController.processCommand("translate maps", false);
|
||||
@@ -241,7 +240,8 @@ int main(int argc, char * argv[])
|
||||
// Init filesystem and settings
|
||||
try
|
||||
{
|
||||
preinitDLL(false);
|
||||
LIBRARY = new GameLibrary;
|
||||
LIBRARY->initializeFilesystem(false);
|
||||
}
|
||||
catch (const DataLoadingException & e)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user