mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 19:19:56 +00:00
[Server] Isolate getModFolder() & getDataFolder()
This commit is contained in:
parent
062d6a1824
commit
0da44f69ad
1 changed files with 2 additions and 2 deletions
|
@ -285,11 +285,11 @@ sol::environment LuaState::openScript(std::string homePath, std::string modname)
|
|||
env["package"]["path"] = Utils::convertPath(homePath + "/mods/" + modname + "/?.lua") + ";" + package_path;
|
||||
package_path = env["package"]["path"];
|
||||
|
||||
lua->set_function("getDataFolder", [homePath, modname]() -> const string {
|
||||
env.set_function("getDataFolder", [homePath, modname]() -> const string {
|
||||
return homePath + "/data/" + modname + '/';
|
||||
});
|
||||
|
||||
lua->set_function("getModFolder", [homePath, modname]() -> const string{
|
||||
env.set_function("getModFolder", [homePath, modname]() -> const string {
|
||||
return homePath + "/mods/" + modname + '/';
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue