Triforce v0.8.5

A Randomizer page in the launcher, a new title screen with Mods and Save Select tabs, scaling changes applied in game, the Jabu-Jabu bars fixed, renderer frame-time work and the brightness-flash fix, and fixes from the 0.8.4 reports.
This commit is contained in:
ruckus7382sfgsgdf
2026-11-28 10:54:41 -06:00
parent 2df08c751e
commit b527e29adb
203 changed files with 18821 additions and 2051 deletions

View File

@@ -1540,9 +1540,10 @@ public static class Astc
{
if (blockWidth < 4 || blockWidth > 12 || blockHeight < 4 || blockHeight > 12)
throw new NotSupportedException("ASTC block " + blockWidth + "x" + blockHeight);
ImageLimits.Check(width, height);
var rows = (height + blockHeight - 1) / blockHeight;
var cols = (width + blockWidth - 1) / blockWidth;
if (data.Length < rows * cols * 16)
if (data.Length < (long)rows * cols * 16)
throw new InvalidDataException("ASTC data is shorter than the image");
var output = new byte[width * height * 4];
Parallel.For(0, rows, () => new Scratch(), (yIndex, _, scratch) =>