clean up code
This commit is contained in:
Perfare
2018-01-17 06:20:06 +08:00
parent db92daedf0
commit 647ce56f81
12 changed files with 1150 additions and 1235 deletions

View File

@ -186,8 +186,7 @@ namespace Unity_Studio
}
else
{
EndianBinaryReader estream;
if (UnityStudio.assetsfileandstream.TryGetValue(Path.GetFileName(path), out estream))
if (UnityStudio.assetsfileandstream.TryGetValue(Path.GetFileName(path), out var estream))
{
estream.Position = offset;
image_data = estream.ReadBytes(image_data_size);