Skip to content

Commit 494abe6

Browse files
committed
Add more metadata fields, print unhandled ones
1 parent 0e2ddc2 commit 494abe6

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/main/dumpers/schemas/filesystem_exporter.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
namespace Dumpers::Schemas::FilesystemExporter
3232
{
3333

34+
static std::map<std::string, int> g_unknownMetadataCounts;
35+
3436
std::string CommentBlock(std::string str)
3537
{
3638
size_t pos = 0;
@@ -54,7 +56,10 @@ void OutputMetadataEntry(const IntermediateMetadata& entry, std::ofstream& outpu
5456
output << " = " << CommentBlock(*entry.stringValue);
5557
}
5658
else
59+
{
60+
g_unknownMetadataCounts[entry.name]++;
5761
output << " (UNKNOWN FOR PARSER)";
62+
}
5863
}
5964

6065
output << "\n";
@@ -185,6 +190,9 @@ void Dump(const std::vector<IntermediateSchemaEnum>& enums, const std::vector<In
185190
DumpClasses(classes, schemaPath, foundFiles);
186191
DumpEnums(enums, schemaPath, foundFiles);
187192

193+
for (const auto& [name, count] : g_unknownMetadataCounts)
194+
spdlog::warn("Metadata '{}' has unknown value for parser ({} usages)", name, count);
195+
188196
for (const auto& entry : std::filesystem::directory_iterator(schemaPath))
189197
{
190198
auto projectName = entry.path().filename().string();

src/main/dumpers/schemas/metadatalist.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,12 @@ inline std::map<std::string, MetadataValueType> g_mapMetadataNameToValue
100100
{ "MPulseEditorSubHeaderText", MetadataValueType::STRING },
101101
{ "MPropertyEditContextOverrideKey", MetadataValueType::STRING },
102102
{ "MPropertyEditContextOverrideValue", MetadataValueType::STRING },
103+
{ "MVDataClassGroup", MetadataValueType::STRING },
104+
{ "MVDataOutlinerDetailExpr", MetadataValueType::STRING },
105+
{ "MVDataOutlinerLabelExpr", MetadataValueType::STRING },
106+
{ "MVDataOutlinerNameExpr", MetadataValueType::STRING },
107+
{ "MVDataPreviewWidget", MetadataValueType::STRING },
108+
{ "MWorkshopEnumeratorTagName", MetadataValueType::STRING },
103109

104110
// INLINE STRING
105111
{ "MDiskDataForResourceType", MetadataValueType::INLINE_STRING },
@@ -117,8 +123,11 @@ inline std::map<std::string, MetadataValueType> g_mapMetadataNameToValue
117123
{ "MParticleOperatorType", MetadataValueType::INTEGER },
118124
{ "MPropertySortPriority", MetadataValueType::INTEGER },
119125
{ "MResourceVersion", MetadataValueType::INTEGER },
126+
{ "MSaveFlags", MetadataValueType::INTEGER },
127+
{ "MSmartPropClassVersion", MetadataValueType::INTEGER },
120128
{ "MVDataNodeType", MetadataValueType::INTEGER },
121129
{ "MVDataOverlayType", MetadataValueType::INTEGER },
130+
{ "MVDataPromoteField", MetadataValueType::INTEGER },
122131

123132
// FLOAT
124133
{ "MNetworkMaxValue", MetadataValueType::FLOAT },

0 commit comments

Comments
 (0)