daily update on 20240422 by nitload youmu, ssd structure improve
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user