From 9844d657b0a1dd716d85edc58dcd3100ee747e63 Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sat, 1 Apr 2023 01:20:10 -0500 Subject: [PATCH] fix: implement Ace Lightning (2002) obscure behaviour --- src/core/bus/backup.zig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/bus/backup.zig b/src/core/bus/backup.zig index 8db2571..b0a3a15 100644 --- a/src/core/bus/backup.zig +++ b/src/core/bus/backup.zig @@ -205,6 +205,10 @@ pub const Backup = struct { const file_path = try self.savePath(allocator, path); defer allocator.free(file_path); + // FIXME: communicate edge case to the user? + if (std.mem.eql(u8, &self.title, "ACE LIGHTNIN")) + return; + switch (self.kind) { .Sram, .Flash, .Flash1M, .Eeprom => { const file = try std.fs.createFileAbsolute(file_path, .{});