Apply suggestions from upstream

This commit is contained in:
Sławomir Śpiewak
2024-07-31 16:32:35 +02:00
parent 3bd697577c
commit 6a90018798
4 changed files with 9 additions and 10 deletions

View File

@@ -313,8 +313,8 @@ namespace GameRes.Formats.DxLib
internal static void Decrypt (byte[] data, int index, int count, long offset, byte[] key)
{
if (key.Length !=0)
{
if (key.Length == 0)
return;
int key_pos = (int)(offset % key.Length);
for (int i = 0; i < count; ++i)
{
@@ -322,7 +322,6 @@ namespace GameRes.Formats.DxLib
if (key.Length == key_pos)
key_pos = 0;
}
}
}
public override ResourceScheme Scheme