chore: go through TODOs and FIXMEs

mainly deleting / rewording those that no longer apply
This commit is contained in:
2022-10-31 06:17:09 -03:00
parent 5d47e5d167
commit af8ec4db5b
11 changed files with 13 additions and 34 deletions

View File

@@ -151,8 +151,8 @@ pub const Backup = struct {
const file_path = try self.savePath(allocator, path);
defer allocator.free(file_path);
// FIXME: Don't rely on this lol
if (std.mem.eql(u8, file_path[file_path.len - 12 .. file_path.len], "untitled.sav")) {
const expected = "untitled.sav";
if (std.mem.eql(u8, file_path[file_path.len - expected.len .. file_path.len], expected)) {
return log.err("ROM header lacks title, no save loaded", .{});
}