From c08e331f77ed21f47ecdaa21e3801875d914c46a Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Fri, 21 Oct 2022 05:12:35 -0300 Subject: [PATCH] chore: move log statement --- src/bus/GamePak.zig | 1 - src/bus/backup.zig | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bus/GamePak.zig b/src/bus/GamePak.zig index 10d2cbf..668414d 100644 --- a/src/bus/GamePak.zig +++ b/src/bus/GamePak.zig @@ -28,7 +28,6 @@ pub fn init(alloc: Allocator, rom_path: []const u8, save_path: ?[]const u8) !Sel .backup = try Backup.init(alloc, kind, title, save_path), }; pak.parseHeader(); - log.info("Backup: {}", .{kind}); return pak; } diff --git a/src/bus/backup.zig b/src/bus/backup.zig index 60e9eb5..c7b5bf4 100644 --- a/src/bus/backup.zig +++ b/src/bus/backup.zig @@ -27,6 +27,8 @@ pub const Backup = struct { flash: Flash, pub fn init(alloc: Allocator, kind: BackupKind, title: [12]u8, path: ?[]const u8) !Self { + log.info("Kind: {}", .{kind}); + const buf_size: usize = switch (kind) { .Sram => 0x8000, // 32K .Flash => 0x10000, // 64K