Fix Dynamic Library builds on Windows

This commit is contained in:
Lukas Aldershaab 2023-09-27 20:05:30 +02:00 committed by Brian Roberts
parent d05d9b6cf1
commit a4e3a000fb
3 changed files with 10 additions and 2 deletions

View file

@ -292,6 +292,8 @@ void StandardMainLoop::init()
Con::setVariable( "defaultGame", StringTable->insert("scripts") );
Con::setVariable("TorqueScriptFileExtension", TORQUE_SCRIPT_EXTENSION);
Con::addVariable( "_forceAllMainThread", TypeBool, &ThreadPool::getForceAllMainThread(), "Force all work items to execute on main thread. turns this into a single-threaded system. Primarily useful to find whether malfunctions are caused by parallel execution or not.\n"
"@ingroup platform" );
@ -567,7 +569,6 @@ bool StandardMainLoop::handleCommandLine( S32 argc, const char **argv )
Platform::setMainDotCsDir(buffer);
Platform::setCurrentDirectory(buffer);
Con::setVariable("TorqueScriptFileExtension", TORQUE_SCRIPT_EXTENSION);
Con::evaluate(script, false, useDefaultScript ? defaultScriptName : argv[1]);
delete[] script;