summaryrefslogtreecommitdiff
path: root/indra/llfilesystem/lldir.cpp
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2026-09-22 14:55:07 +0800
committerErik Kundiman <erik@megapahit.org>2026-09-22 14:55:07 +0800
commit66877554dbdec33d28171420a2b4fde65e309e7c (patch)
treebe44385b4713d920bad4f77a4905b87f0eb5254a /indra/llfilesystem/lldir.cpp
parent9391fa2734ae74e9d49d74f7b2df181b526c6605 (diff)
parent8fb3801667bf5f8fadfe191d8628b2b3cf443273 (diff)
Merge tag 'Second_Life_Develop#8fb38016-2026-09-12' into 26.5
Diffstat (limited to 'indra/llfilesystem/lldir.cpp')
-rw-r--r--indra/llfilesystem/lldir.cpp18
1 files changed, 17 insertions, 1 deletions
diff --git a/indra/llfilesystem/lldir.cpp b/indra/llfilesystem/lldir.cpp
index 46a94277c5..4094e7a87f 100644
--- a/indra/llfilesystem/lldir.cpp
+++ b/indra/llfilesystem/lldir.cpp
@@ -4,7 +4,7 @@
*
* $LicenseInfo:firstyear=2002&license=viewerlgpl$
* Second Life Viewer Source Code
- * Copyright (C) 2010, Linden Research, Inc.
+ * Copyright (C) 2026, Linden Research, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -1159,6 +1159,22 @@ void LLDir::openDir(const std::string& filepath)
LL_INFOS() << "Opened file browser for: " << filepath << LL_ENDL;
}
}
+#if LL_VELOPACK
+const char* const LLDir::PORTABLE_USER_DATA_DIRNAME = "UserData";
+
+// static
+bool LLDir::isPortableInstall(const std::string& install_root)
+{
+ if (install_root.empty())
+ {
+ return false;
+ }
+ fsyspath marker(install_root);
+ marker /= ".portable";
+ std::error_code ec;
+ return std::filesystem::is_regular_file(marker, ec);
+}
+#endif // LL_VELOPACK
void dir_exists_or_crash(const std::string &dir_name)
{