diff options
author | Maxim Nikolenko <maximnproductengine@lindenlab.com> | 2024-02-27 18:51:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-27 18:51:32 +0200 |
commit | 777586a1865b496f8bfea9651afbd481ea23b4f7 (patch) | |
tree | 0cecaa9b4be0958dc7ff126c30382da3781f1f60 /indra/llfilesystem | |
parent | ad32c066691152e6a23f025d6aa5ead0e91b7be9 (diff) | |
parent | edf1a712a7ca8fd741514348e3304af6a766f4aa (diff) |
Merge pull request #843 from secondlife/luau-require-impl
Initial require implementation
Diffstat (limited to 'indra/llfilesystem')
-rw-r--r-- | indra/llfilesystem/lldir.cpp | 5 | ||||
-rw-r--r-- | indra/llfilesystem/lldir.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp index 69b23f9cf8..e3769c6afb 100644 --- a/indra/llfilesystem/lldir.cpp +++ b/indra/llfilesystem/lldir.cpp @@ -469,6 +469,7 @@ static std::string ELLPathToString(ELLPath location) ENT(LL_PATH_DEFAULT_SKIN) ENT(LL_PATH_FONTS) ENT(LL_PATH_LAST) + ENT(LL_PATH_SCRIPTS) ; #undef ENT @@ -588,6 +589,10 @@ std::string LLDir::getExpandedFilename(ELLPath location, const std::string& subd case LL_PATH_FONTS: prefix = add(getAppRODataDir(), "fonts"); break; + + case LL_PATH_SCRIPTS: + prefix = add(getAppRODataDir(), "scripts"); + break; default: llassert(0); diff --git a/indra/llfilesystem/lldir.h b/indra/llfilesystem/lldir.h index b9a046ba33..7d418159d1 100644 --- a/indra/llfilesystem/lldir.h +++ b/indra/llfilesystem/lldir.h @@ -49,6 +49,7 @@ typedef enum ELLPath LL_PATH_DEFAULT_SKIN = 17, LL_PATH_FONTS = 18, LL_PATH_DUMP = 19, + LL_PATH_SCRIPTS = 20, LL_PATH_LAST } ELLPath; |