summaryrefslogtreecommitdiff
path: root/src/host/probe.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/host/probe.zig')
-rw-r--r--src/host/probe.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/probe.zig b/src/host/probe.zig
index d8ed166..4b61153 100644
--- a/src/host/probe.zig
+++ b/src/host/probe.zig
@@ -31,7 +31,7 @@ pub fn main(init: std.process.Init) !void {
const map = memory.mapReadOnly(file);
if (map.len < memory.header_len) fatal("not a sketchbook state file");
const magic = map[0..8];
- if (!std.mem.eql(u8, magic, &memory.file_magic) and !std.mem.eql(u8, magic, &memory.file_magic_v1)) fatal("not a sketchbook state file");
+ if (!std.mem.eql(u8, magic, &memory.file_magic) and !std.mem.eql(u8, magic, &memory.file_magic_v2) and !std.mem.eql(u8, magic, &memory.file_magic_v1)) fatal("not a sketchbook state file");
defer std.posix.munmap(map);
var arena: std.heap.ArenaAllocator = .init(init.gpa);
defer arena.deinit();