mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-29 04:18:49 -04:00
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:
@@ -402,7 +402,11 @@ uint64_t hos_mods_table_size(uint64_t size, uint64_t path) {
|
||||
if (!need) {
|
||||
const uint64_t real = packed ? zs_content_size(e->host) : e->size;
|
||||
if (!real) return size; /* (a packed file whose header has no size: the table's figure, as the game has it) */
|
||||
const uint64_t room = real / 8 > (128u << 10) ? real / 8 : (128u << 10);
|
||||
/* ((Triforce, 11-27) at most 2 MB: two crash reports with big mods (a 50 MB-a-file animation mod, a 206 MB mod) ran
|
||||
the game's heap out while loading (an allocation returned 0, written through), an eighth of each file on top of the
|
||||
files' own size. A model's materials and shapes need a few KB each; 2 MB is far more than any of the game's needed */
|
||||
const uint64_t eighth = real / 8 < (2u << 20) ? real / 8 : (2u << 20);
|
||||
const uint64_t room = eighth > (128u << 10) ? eighth : (128u << 10);
|
||||
need = (real + room + (64u << 10) + 0xfff) & ~(uint64_t)0xfff;
|
||||
if (need > 0xfffff000u) need = 0xfffff000u;
|
||||
e->need = need;
|
||||
|
||||
Reference in New Issue
Block a user