daily update on 20240422 by nitload youmu, ssd structure improve

This commit is contained in:
YoumuLiu
2024-04-22 02:47:17 +08:00
parent 12345d8405
commit 0162d71d16
30 changed files with 708 additions and 331 deletions
@@ -18,7 +18,7 @@ namespace StgSharp.Data
internal abstract void BuildFromByteStream(byte[] stream);
}
public class SerializableTypeCode
public static class SerializableTypeCode
{
public const byte IndexTable = 1;
public const byte Image = 2;
@@ -27,6 +27,30 @@ namespace StgSharp.Data
public const byte Text = 5;
public const byte RawData = 6;
public const byte VirtualFolder = 7;
public static string GetNameTail(byte typeCode)
{
switch (typeCode)
{
case IndexTable:
return "_indexT";
case Image:
return "_img";
case Audio:
return "_wav";
case Shader:
return "_gls";
case Text:
return "_txt";
case RawData:
return "_raw";
case VirtualFolder:
return "_f";
default:
throw new ArgumentException("Unknown file type");
}
}
}
public static partial class Serializer