clean up code

This commit is contained in:
Perfare
2017-11-10 03:36:08 +08:00
parent 9d505c8900
commit 3a6ebf7ce6
11 changed files with 116 additions and 86 deletions

View File

@ -110,7 +110,7 @@ namespace Unity_Studio
}
else
{
EndianStream estream;
EndianBinaryReader estream;
if (UnityStudio.assetsfileandstream.TryGetValue(Path.GetFileName(m_Source), out estream))
{
estream.Position = m_Offset;

View File

@ -102,7 +102,7 @@ namespace Unity_Studio
{
public class Mesh
{
private EndianStream a_Stream;
private EndianBinaryReader a_Stream;
public string m_Name;
public List<SubMesh> m_SubMeshes = new List<SubMesh>();
public List<uint> m_Indices = new List<uint>(); //use a list because I don't always know the facecount for triangle strips

View File

@ -66,7 +66,7 @@ namespace Unity_Studio
}
}
private static byte[] ReadSerializedShader(List<ClassMember> members, EndianStream a_Stream)
private static byte[] ReadSerializedShader(List<ClassMember> members, EndianBinaryReader a_Stream)
{
var offsets = new List<uint>();
var compressedLengths = new List<uint>();

View File

@ -180,7 +180,7 @@ namespace Unity_Studio
}
else
{
EndianStream estream;
EndianBinaryReader estream;
if (UnityStudio.assetsfileandstream.TryGetValue(Path.GetFileName(path), out estream))
{
estream.Position = offset;