mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Use CMPReader in CMP and DC
This commit is contained in:
@@ -158,6 +158,11 @@ namespace SabreTools.Library.Readers
|
||||
{
|
||||
value = $"{linegc[++i].Replace("\"", string.Empty)} {linegc[++i].Replace("\"", string.Empty)}";
|
||||
}
|
||||
// Default case
|
||||
else
|
||||
{
|
||||
value = linegc[++i].Replace("\"", string.Empty);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -167,6 +172,13 @@ namespace SabreTools.Library.Readers
|
||||
value = key;
|
||||
key = "status";
|
||||
}
|
||||
// Special case for standalone sample
|
||||
else if (normalizedValue == "sample")
|
||||
{
|
||||
value = key;
|
||||
key = "name";
|
||||
}
|
||||
// Default case
|
||||
else
|
||||
{
|
||||
value = linegc[++i].Replace("\"", string.Empty);
|
||||
@@ -198,7 +210,7 @@ namespace SabreTools.Library.Readers
|
||||
{
|
||||
Internal = null;
|
||||
InternalName = null;
|
||||
RowType = CmpRowType.None;
|
||||
RowType = CmpRowType.EndTopLevel;
|
||||
Standalone = null;
|
||||
TopLevel = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user