mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Apply newline additions
This commit is contained in:
@ -85,6 +85,7 @@ namespace osu.Game.IO.Legacy
|
||||
for (int i = 0; i < count; i++)
|
||||
{
|
||||
T obj = new T();
|
||||
|
||||
try
|
||||
{
|
||||
obj.ReadFromStream(sr);
|
||||
@ -129,44 +130,63 @@ namespace osu.Game.IO.Legacy
|
||||
public object ReadObject()
|
||||
{
|
||||
ObjType t = (ObjType)ReadByte();
|
||||
|
||||
switch (t)
|
||||
{
|
||||
case ObjType.boolType:
|
||||
return ReadBoolean();
|
||||
|
||||
case ObjType.byteType:
|
||||
return ReadByte();
|
||||
|
||||
case ObjType.uint16Type:
|
||||
return ReadUInt16();
|
||||
|
||||
case ObjType.uint32Type:
|
||||
return ReadUInt32();
|
||||
|
||||
case ObjType.uint64Type:
|
||||
return ReadUInt64();
|
||||
|
||||
case ObjType.sbyteType:
|
||||
return ReadSByte();
|
||||
|
||||
case ObjType.int16Type:
|
||||
return ReadInt16();
|
||||
|
||||
case ObjType.int32Type:
|
||||
return ReadInt32();
|
||||
|
||||
case ObjType.int64Type:
|
||||
return ReadInt64();
|
||||
|
||||
case ObjType.charType:
|
||||
return ReadChar();
|
||||
|
||||
case ObjType.stringType:
|
||||
return base.ReadString();
|
||||
|
||||
case ObjType.singleType:
|
||||
return ReadSingle();
|
||||
|
||||
case ObjType.doubleType:
|
||||
return ReadDouble();
|
||||
|
||||
case ObjType.decimalType:
|
||||
return ReadDecimal();
|
||||
|
||||
case ObjType.dateTimeType:
|
||||
return ReadDateTime();
|
||||
|
||||
case ObjType.byteArrayType:
|
||||
return ReadByteArray();
|
||||
|
||||
case ObjType.charArrayType:
|
||||
return ReadCharArray();
|
||||
|
||||
case ObjType.otherType:
|
||||
return DynamicDeserializer.Deserialize(BaseStream);
|
||||
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
@ -241,6 +261,7 @@ namespace osu.Game.IO.Legacy
|
||||
|
||||
string toAssemblyName = assemblyName.Split(',')[0];
|
||||
Assembly[] assemblies = AppDomain.CurrentDomain.GetAssemblies();
|
||||
|
||||
foreach (Assembly a in assemblies)
|
||||
{
|
||||
if (a.FullName.Split(',')[0] == toAssemblyName)
|
||||
|
Reference in New Issue
Block a user