From f120f7c5119899c2cebad6a8692f00c4ef4935c3 Mon Sep 17 00:00:00 2001 From: Kitteh Date: Wed, 2 Jun 2021 12:46:19 +0100 Subject: [PATCH] hjreg --- src/client.zig | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client.zig b/src/client.zig index 2d52b2e..6e7c230 100644 --- a/src/client.zig +++ b/src/client.zig @@ -8,7 +8,7 @@ fn dumpDebug(name: []const u8, list: std.ArrayList(u8)) !void { const file = try std.fs.cwd().createFile( name, - .{ .read = !true }, + .{ .truncate = false }, ); defer file.close(); @@ -50,6 +50,8 @@ pub const Client = struct { try map.put("ClientVersion", .{ .string = "0.1 (quasselclient)" }); try map.put("ClientDate", .{ .string = "0" }); + + try list.writer().writeAll("owo"); try write.add_qvariantmap(list.writer(), map); try dumpDebug("ClientInit.bin", list);