fixed filename stuff in lua

This commit is contained in:
Lion Kortlepel 2020-11-13 22:56:56 +01:00
parent fb7ed95d1d
commit 03ee46d293

View File

@ -560,7 +560,7 @@ void Lua::Reload() {
}
}
std::string Lua::GetOrigin() {
return GetFileName().substr(GetFileName().find('\\'));
return fs::path(GetFileName()).filename().string();
}
int CallFunction(Lua* lua, const std::string& FuncName, std::unique_ptr<LuaArg> Arg) {