diff options
author | nat-goodspeed <nat@lindenlab.com> | 2024-04-03 14:08:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 14:08:01 -0400 |
commit | f069543328efc441673db9877c97ae2201b86e91 (patch) | |
tree | 299591b4bce2a1d6a5351d63b3ae249a130a5871 /indra/llui | |
parent | b4d699764044301c460560f7665b623a571bf14f (diff) | |
parent | 3f876a6a1d138c31266afb6c39df7090e304efe3 (diff) |
Merge pull request #1110 from secondlife/lua-startup
Add `startup.lua` module with `startup.ensure()`, `startup.wait()` functions.
Diffstat (limited to 'indra/llui')
-rw-r--r-- | indra/llui/llluafloater.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/indra/llui/llluafloater.cpp b/indra/llui/llluafloater.cpp index 268075b05d..e584a67a00 100644 --- a/indra/llui/llluafloater.cpp +++ b/indra/llui/llluafloater.cpp @@ -26,7 +26,7 @@ #include "llluafloater.h" -#include <filesystem> +#include "fsyspath.h" #include "llevents.h" #include "llcheckboxctrl.h" @@ -271,12 +271,12 @@ void LLLuaFloater::postEvent(LLSD data, const std::string &event_name) void LLLuaFloater::showLuaFloater(const LLSD &data) { - std::filesystem::path fs_path(data["xml_path"].asString()); - std::string path = fs_path.lexically_normal().string(); + fsyspath fs_path(data["xml_path"].asString()); + std::string path = fs_path.lexically_normal().u8string(); if (!fs_path.is_absolute()) { std::string lib_path = gDirUtilp->getExpandedFilename(LL_PATH_SCRIPTS, "lua"); - path = (std::filesystem::path(lib_path) / path).u8string(); + path = (fsyspath(lib_path) / path).u8string(); } LLLuaFloater *floater = new LLLuaFloater(data); |