summaryrefslogtreecommitdiff
path: root/src/petscii.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-07-06 20:43:40 -0300
committerGabriel Schneider <[email protected]>2026-08-01 15:02:07 -0300
commit513938c1cfb216a3bc4a3559cf7731b8e44a952f (patch)
tree7b711c30ea6ebc255a1d691223b2cb93cd7dedf2 /src/petscii.zig
parentd0ba070a87c54c538e5f788485391b0af927d0fb (diff)
downloadpardes-513938c1cfb216a3bc4a3559cf7731b8e44a952f.tar.gz
pardes-513938c1cfb216a3bc4a3559cf7731b8e44a952f.zip
dumps: per-user data dir + timestamped names; Restore builtin loads a dump into the live session. dump.outPath resolves $PARDES_DUMP verbatim (the snapshot harness pins /tmp/pardes-dump.zon so dump/load/restore goldens stay deterministic), else $XDG_DATA_HOME|~/.local/share /pardes/pardes-YYYYMMDD-HHMMSS.zon (dir mkdir-ed; wall clock via libc clock_gettime — std.time.timestamp is gone in 0.16). After write_dump the shell reports the written path back (core.setLastDump) and the topbar grows "Restore <path>": middle-clicking Restore reloads the last dump, and "Restore <path>" executed anywhere takes the path as its first argument (onSelect prefix match). Core stays sans-IO: the builtin stashes restore_req; each shell consumes takeRestore() after drainEffects and swaps in initFromDump at the current screen size (pre-sized: dump panes never greet), tearing down the live ptys (tty: cancel reader + close + gen bump; gui: SIGKILL, the gen-guarded eof closes the old fds). Web ignores it. New restore.snap golden: KEEPME survives the restore, GONESOON echoed after Dump does not, the topbar word appears then resets. 29/29.
Diffstat (limited to 'src/petscii.zig')
0 files changed, 0 insertions, 0 deletions