mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-05-27 22:00:23 -04:00
Fixes #99
This commit is contained in:
parent
bd7a43f0dc
commit
df45fa9b8e
@ -61,8 +61,9 @@ namespace Unity_Studio
|
|||||||
{
|
{
|
||||||
int m_Stream = a_Stream.ReadInt32();
|
int m_Stream = a_Stream.ReadInt32();
|
||||||
m_Size = a_Stream.ReadInt32();
|
m_Size = a_Stream.ReadInt32();
|
||||||
var asize = m_Size % 4 != 0 ? m_Size + 4 - m_Size % 4 : m_Size;
|
var tsize = m_Size % 4 != 0 ? m_Size + 4 - m_Size % 4 : m_Size;
|
||||||
if (m_Stream > 1 && preloadData.Size + preloadData.Offset - a_Stream.Position > asize)
|
//TODO: Need more test
|
||||||
|
if (preloadData.Size + preloadData.Offset - a_Stream.Position != tsize)
|
||||||
{
|
{
|
||||||
m_Offset = a_Stream.ReadInt32();
|
m_Offset = a_Stream.ReadInt32();
|
||||||
m_Source = sourceFile.filePath + ".resS";
|
m_Source = sourceFile.filePath + ".resS";
|
||||||
|
Loading…
Reference in New Issue
Block a user