feat: auto-detect RTC in commercial ROMS

This commit is contained in:
2022-10-21 05:13:00 -03:00
parent 60680a36e2
commit c34752ac65
2 changed files with 24 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ pub const Backup = struct {
return backup;
}
pub fn guessKind(rom: []const u8) ?Kind {
pub fn guessKind(rom: []const u8) Kind {
for (backup_kinds) |needle| {
const needle_len = needle.str.len;
@@ -71,7 +71,7 @@ pub const Backup = struct {
}
}
return null;
return .None;
}
pub fn deinit(self: *Self) void {