summaryrefslogtreecommitdiff
path: root/indra/llinventory/llfoldertype.cpp
diff options
context:
space:
mode:
authorMnikolenko Productengine <mnikolenko@productengine.com>2024-08-15 23:29:54 +0300
committerMnikolenko Productengine <mnikolenko@productengine.com>2024-08-15 23:29:54 +0300
commitab0f7ff14cd80b89524ba95eb5a39e2d6df55b26 (patch)
treeebcfa415231c452e1dba96c3fb8816ef7a626782 /indra/llinventory/llfoldertype.cpp
parent8324ef8edf68c074f4d30322d37b091b3ea10539 (diff)
First batch of Inventory api; raise interrupts limit
Diffstat (limited to 'indra/llinventory/llfoldertype.cpp')
-rw-r--r--indra/llinventory/llfoldertype.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/indra/llinventory/llfoldertype.cpp b/indra/llinventory/llfoldertype.cpp
index 8f968ae2fd..158759c957 100644
--- a/indra/llinventory/llfoldertype.cpp
+++ b/indra/llinventory/llfoldertype.cpp
@@ -29,6 +29,7 @@
#include "llfoldertype.h"
#include "lldictionary.h"
#include "llmemory.h"
+#include "llsd.h"
#include "llsingleton.h"
///----------------------------------------------------------------------------
@@ -220,3 +221,19 @@ const std::string &LLFolderType::badLookup()
static const std::string sBadLookup = "llfoldertype_bad_lookup";
return sBadLookup;
}
+
+LLSD LLFolderType::getTypeNames()
+{
+ LLSD type_names;
+ for (S32 type = FT_TEXTURE; type < FT_COUNT; ++type)
+ {
+ if (lookupIsEnsembleType((LLFolderType::EType)type)) continue;
+
+ const FolderEntry *entry = LLFolderDictionary::getInstance()->lookup((LLFolderType::EType)type);
+ if (entry)
+ {
+ type_names.append(entry->mName);
+ }
+ }
+ return type_names;
+}