Lua: Pass plugin path and filename to queue for later

This commit is contained in:
Lion Kortlepel
2021-09-18 01:20:26 +02:00
parent f98ef7d41c
commit 38dffc5462
4 changed files with 14 additions and 8 deletions

View File

@@ -61,7 +61,7 @@ TConsole::TConsole() {
if (!mLuaEngine) {
beammp_info("Lua not started yet, please try again in a second");
} else {
auto Future = mLuaEngine->EnqueueScript(mStateId, std::make_shared<std::string>(cmd));
auto Future = mLuaEngine->EnqueueScript(mStateId, { std::make_shared<std::string>(cmd), "", "" });
while (!Future->Ready) {
std::this_thread::sleep_for(std::chrono::milliseconds(1));
}