Skip to content

Commit e6ae042

Browse files
committed
fixed dumb typo in argb decoder
1 parent 2aebb0c commit e6ae042

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

AssetTools.NET/Extra/TextureDecoders/RGBADecoders.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static byte[] ReadARGB32(byte[] bytes, int width, int height)
3838
for (int i = 0; i < len; i += 4)
3939
{
4040
t = bytes[i];
41-
bytes[i] = bytes[i + 1];
41+
bytes[i] = bytes[i + 3];
4242
bytes[i + 3] = t;
4343
t = bytes[i + 1];
4444
bytes[i + 1] = bytes[i + 2];

AssetsView/Winforms/StartScreen.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,7 @@ private void viewTextureToolStripMenuItem_Click(object sender, EventArgs e)
463463
AssetTypeValueField baseField = helper.GetTypeInstance(currentFile.file, info).GetBaseField();
464464

465465
TextureViewer texView = new TextureViewer(currentFile, baseField);
466-
texView.ShowDialog();
466+
texView.Show();
467467
}
468468
}
469469

AssetsView/Winforms/TextureViewer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public TextureViewer(AssetsFileInstance inst, AssetTypeValueField baseField)
3131

3232
//bundle resS
3333
TextureFile.StreamingInfo streamInfo = tf.m_StreamData;
34-
if (streamInfo.path.StartsWith("archive:/") && inst.parentBundle != null)
34+
if (streamInfo.path != null && streamInfo.path.StartsWith("archive:/") && inst.parentBundle != null)
3535
{
3636
string searchPath = streamInfo.path.Substring(9);
3737
searchPath = Path.GetFileName(searchPath);

0 commit comments

Comments
 (0)