| 537 | } |
| 538 | |
| 539 | void UniverseClient::restartLua() { |
| 540 | m_luaRoot->restart(); |
| 541 | auto clientConfig = Root::singleton().assets()->json("/client.config"); |
| 542 | m_luaRoot->tuneAutoGarbageCollection(clientConfig.getFloat("luaGcPause"), clientConfig.getFloat("luaGcStepMultiplier")); |
| 543 | auto enableImGui = Root::singleton().configuration()->getPath("safe.enableImGui"); |
| 544 | if (enableImGui && enableImGui.toBool()) |
| 545 | m_luaRoot->luaEngine().addImGui(); |
| 546 | } |
| 547 | |
| 548 | void UniverseClient::startLuaScripts() { |
| 549 | auto assets = Root::singleton().assets(); |
no test coverage detected