summaryrefslogtreecommitdiff
path: root/src/tape.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-10 11:30:01 -0300
committerGabriel Schneider <[email protected]>2026-11-11 18:57:59 -0300
commit1497cf19f852a5b38bc3e2f3641a81a077ba8a32 (patch)
tree4939a6ec709529a57bd75c29f50d0cf956014cd3 /src/tape.zig
parent6b3df3071d16153bd554462c4f54ebb88f3ed50e (diff)
downloadpardes-1497cf19f852a5b38bc3e2f3641a81a077ba8a32.tar.gz
pardes-1497cf19f852a5b38bc3e2f3641a81a077ba8a32.zip
zstbi: upstream's main, the fork pinned before being gone: Pivok7/zstbi (zig-gamedev/zstbi PR #16, the Zig 0.17 port the manifest waited on) is deleted and a fresh checkout could not fetch it, while upstream has since ported itself (6b9bea1f); its init takes no Io and can fail, and its resize can fail, so TerminalImages.start takes the allocator alone (a start refused leaves PNGs refused, as before one) and a resize that fails is an undecodable PNG; host_io.startWorkers and tape.replayMain lose the Io they only handed on; build.zig's patch of zstbi.c applies unchanged (the file is the same); test: kitty: a PNG longer than 1280 pixels on a side is kept at 1280 (the one path through zstbi, which no case walked: a 1300-pixel one-bit PNG built in the test, its row stored); kitty-test 45 of 45; the changelog says so
Diffstat (limited to 'src/tape.zig')
-rw-r--r--src/tape.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tape.zig b/src/tape.zig
index 4db78b86..c617f2a2 100644
--- a/src/tape.zig
+++ b/src/tape.zig
@@ -1244,10 +1244,10 @@ pub fn startFromEnv() void {
/// `PARDES_REPLAY=<tape>`: the tape replayed into three replicas, each
/// digest checked; 0 when none diverged.
-pub fn replayMain(io: std.Io, path: []const u8) u8 {
+pub fn replayMain(path: []const u8) u8 {
const gpa = std.heap.c_allocator;
// What a shell starts before its core (tui.zig's localSession).
- pardes.TerminalImages.start(io, gpa);
+ pardes.TerminalImages.start(gpa);
pardes.syntax.start(gpa);
const bytes = std.Io.Dir.cwd().readFileAlloc(std.Io.Threaded.global_single_threaded.io(), path, gpa, .unlimited) catch |err| {
std.debug.print("replay: cannot read {s}: {t}\n", .{ path, err });