Rework DalamudServices,

This commit is contained in:
Ottermandias 2023-12-20 18:47:30 +01:00
parent d8f5851e0c
commit f022d2be64
19 changed files with 230 additions and 250 deletions

View file

@ -44,8 +44,8 @@ public static class TexFileParser
if (offset == 0)
return i;
var requiredSize = width * height * bits / 8;
if (offset + requiredSize > data.Length)
var Size = width * height * bits / 8;
if (offset + Size > data.Length)
return i;
var diff = offset - lastOffset;
@ -55,7 +55,7 @@ public static class TexFileParser
width = Math.Max(width / 2, minSize);
height = Math.Max(height / 2, minSize);
lastOffset = offset;
lastSize = requiredSize;
lastSize = Size;
}
return 13;