From 011d2f2f2a7fd003ca6521df7fcaafe8146fde26 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:11 -0300 Subject: [PATCH] chore: update to latest zig nightly --- src/bus/Bios.zig | 2 +- src/bus/GamePak.zig | 2 +- src/main.zig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bus/Bios.zig b/src/bus/Bios.zig index 5cda22b..30985d5 100644 --- a/src/bus/Bios.zig +++ b/src/bus/Bios.zig @@ -7,7 +7,7 @@ buf: []u8, alloc: Allocator, pub fn init(alloc: Allocator, path: []const u8) !Self { - const file = try std.fs.cwd().openFile(path, .{ .read = true }); + const file = try std.fs.cwd().openFile(path, .{}); defer file.close(); const len = try file.getEndPos(); diff --git a/src/bus/GamePak.zig b/src/bus/GamePak.zig index e7a49b3..979ce37 100644 --- a/src/bus/GamePak.zig +++ b/src/bus/GamePak.zig @@ -7,7 +7,7 @@ buf: []u8, alloc: Allocator, pub fn init(alloc: Allocator, path: []const u8) !Self { - const file = try std.fs.cwd().openFile(path, .{ .read = true }); + const file = try std.fs.cwd().openFile(path, .{}); defer file.close(); const len = try file.getEndPos(); diff --git a/src/main.zig b/src/main.zig index add406a..de2768f 100644 --- a/src/main.zig +++ b/src/main.zig @@ -52,7 +52,7 @@ pub fn main() anyerror!void { var log_file: ?File = undefined; if (enable_logging) { const file_name: []const u8 = if (is_binary) "zba.bin" else "zba.log"; - const file = try std.fs.cwd().createFile(file_name, .{ .read = true }); + const file = try std.fs.cwd().createFile(file_name, .{}); cpu.useLogger(&file, is_binary); log_file = file;