feat: look for gba bios in data path

This commit is contained in:
2023-11-23 01:34:51 -06:00
parent 557b90a39f
commit 78b849b6ff
3 changed files with 35 additions and 10 deletions

View File

@@ -52,7 +52,13 @@ pub fn escape(title: [12]u8) [12]u8 {
pub const FilePaths = struct {
rom: ?[]const u8,
bios: ?[]const u8,
save: ?[]const u8,
save: []const u8,
pub fn deinit(self: @This(), allocator: Allocator) void {
if (self.rom) |path| allocator.free(path);
if (self.bios) |path| allocator.free(path);
allocator.free(self.save);
}
};
pub const io = struct {