mirror of
https://git.triforceproject.com/triforce/source
synced 2026-11-19 16:20:01 -04:00
Triforce v0.5.0
In-game mods (GameBanana browser, search and installs, with the Mask Salesman), code-patch and cheat mods, the devs' test18 to test45 work (full performance overlay, frame pacing on, steady frame rate, save export and import, bug capture, new options rows, Setup's Mods page and Add to Steam), occlusion queries and new defaults, Auto resolution that scales, replay helper threads and robust buffers off by default, the options in sections.
This commit is contained in:
@@ -30,8 +30,8 @@ STAGES = {0x1: "vertex", 0x2: "tesscontrol", 0x4: "tesseval", 0x8: "geometry", 0
|
||||
|
||||
def records(path, want):
|
||||
"""(key, kind, bytes) of each record want(key, kind) takes, in file order. The layout is disk_init's: a 16-byte head
|
||||
(magic, 0, stamp), then records of a u64 key, a u64 size and that many bytes, which start with the u32 kind. A record
|
||||
cut short ends the walk, as it does there"""
|
||||
(magic, the build of the translator that last opened it, stamp), then records of a u64 key, a u64 size and that many bytes,
|
||||
which start with the u32 kind. A record cut short ends the walk, as it does there"""
|
||||
with open(path, "rb") as f:
|
||||
head = f.read(16)
|
||||
if len(head) < 16 or struct.unpack_from("<I", head)[0] != CACHE_MAGIC:
|
||||
|
||||
Reference in New Issue
Block a user