fix: implement Ace Lightning (2002) obscure behaviour

This commit is contained in:
Rekai Nyangadzayi Musuka 2023-04-01 01:20:10 -05:00
parent 1d8b21d6b4
commit e2494cf8bb
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@ pub const Backup = struct {
const file_path = try self.savePath(allocator, path); const file_path = try self.savePath(allocator, path);
defer allocator.free(file_path); defer allocator.free(file_path);
if (std.mem.eql(u8, &self.title, "ACE LIGHTNIN"))
@panic("correctly identified title");
switch (self.kind) { switch (self.kind) {
.Sram, .Flash, .Flash1M, .Eeprom => { .Sram, .Flash, .Flash1M, .Eeprom => {
const file = try std.fs.createFileAbsolute(file_path, .{}); const file = try std.fs.createFileAbsolute(file_path, .{});