Skip to content

Commit fe37d8d

Browse files
committed
feat: support MKV3TransferSaveOpsForField
1 parent 6c314e7 commit fe37d8d

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

src/main/dumpers/schemas/metadata_stringifier.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ std::optional<std::string> GetMetadataValue(const SchemaMetadataEntryData_t& ent
127127
return stringStream.str();
128128
}
129129
case MetadataValueType::KV3DEFAULTS:
130+
{
130131
typedef void* (*GetKV3DefaultsFn)();
131132
typedef int (*SaveKV3AsJsonFn)(void* kv3, SimpleCUtlString& err, SimpleCUtlString& str);
132133

@@ -156,6 +157,14 @@ std::optional<std::string> GetMetadataValue(const SchemaMetadataEntryData_t& ent
156157
}
157158

158159
return "Could not parse KV3 Defaults";
160+
}
161+
case MetadataValueType::DEBUGGER_BREAKPOINT:
162+
{
163+
#ifdef WIN32
164+
__debugbreak();
165+
#endif
166+
return "DEBUGGING";
167+
}
159168
}
160169
}
161170

src/main/dumpers/schemas/metadatalist.h

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ enum class MetadataValueType {
3434
INTEGER,
3535
FLOAT,
3636
VARNAME,
37-
KV3DEFAULTS
37+
KV3DEFAULTS,
38+
DEBUGGER_BREAKPOINT
3839
};
3940

4041
inline std::map<std::string, MetadataValueType> g_mapMetadataNameToValue
@@ -92,6 +93,7 @@ inline std::map<std::string, MetadataValueType> g_mapMetadataNameToValue
9293
{ "MVDataOutlinerIconExpr", MetadataValueType::STRING },
9394
{ "MVDataUniqueMonotonicInt", MetadataValueType::STRING },
9495
{ "MVectorIsSometimesCoordinate", MetadataValueType::STRING },
96+
{ "MKV3TransferSaveOpsForField", MetadataValueType::STRING },
9597

9698
// INLINE STRING
9799
{ "MDiskDataForResourceType", MetadataValueType::INLINE_STRING },
@@ -126,7 +128,7 @@ inline std::map<std::string, MetadataValueType> g_mapMetadataNameToValue
126128
{ "MScriptDescription", MetadataValueType::VARNAME },
127129

128130
// KV3
129-
{ "MGetKV3ClassDefaults", MetadataValueType::KV3DEFAULTS }
131+
{ "MGetKV3ClassDefaults", MetadataValueType::KV3DEFAULTS },
130132
};
131133

132134
} // namespace Dumpers::Schemas

0 commit comments

Comments
 (0)