mirror of
https://github.com/xivdev/Penumbra.git
synced 2026-02-23 08:17:59 +01:00
Rework DalamudServices,
This commit is contained in:
parent
d8f5851e0c
commit
f022d2be64
19 changed files with 230 additions and 250 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue