chore: move log statement
This commit is contained in:
parent
a92989ed24
commit
c08e331f77
|
@ -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),
|
.backup = try Backup.init(alloc, kind, title, save_path),
|
||||||
};
|
};
|
||||||
pak.parseHeader();
|
pak.parseHeader();
|
||||||
log.info("Backup: {}", .{kind});
|
|
||||||
|
|
||||||
return pak;
|
return pak;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,8 @@ pub const Backup = struct {
|
||||||
flash: Flash,
|
flash: Flash,
|
||||||
|
|
||||||
pub fn init(alloc: Allocator, kind: BackupKind, title: [12]u8, path: ?[]const u8) !Self {
|
pub fn init(alloc: Allocator, kind: BackupKind, title: [12]u8, path: ?[]const u8) !Self {
|
||||||
|
log.info("Kind: {}", .{kind});
|
||||||
|
|
||||||
const buf_size: usize = switch (kind) {
|
const buf_size: usize = switch (kind) {
|
||||||
.Sram => 0x8000, // 32K
|
.Sram => 0x8000, // 32K
|
||||||
.Flash => 0x10000, // 64K
|
.Flash => 0x10000, // 64K
|
||||||
|
|
Loading…
Reference in New Issue