MCPcopy Create free account
hub / github.com/Segs/Segs / loadAndRunLua

Function loadAndRunLua

Projects/CoX/Servers/MapServer/MapInstance.cpp:85–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83 const constexpr int MinPacketsToAck = 5;
84
85 void loadAndRunLua(std::unique_ptr<ScriptingEngine> &lua, const QString &locations_scriptname)
86 {
87 if(!QFile::exists(locations_scriptname))
88 qCDebug(logScripts).noquote() << locations_scriptname << "is missing; Process will continue without it.";
89
90 qCDebug(logScripts).noquote() << "Loading" << locations_scriptname;
91 lua->loadAndRunFile(locations_scriptname);
92 }
93} // namespace
94
95class MapLinkEndpoint final : public ServerEndpoint

Callers 1

load_map_luaMethod · 0.85

Calls 1

loadAndRunFileMethod · 0.45

Tested by

no test coverage detected