chore: dynamically update window title on ROM replace

This commit is contained in:
2023-03-10 20:41:49 -06:00
parent 85ec9a84c4
commit c7b62d3202
3 changed files with 16 additions and 11 deletions

View File

@@ -91,7 +91,7 @@ pub fn main() void {
}
// TODO: Just copy the title instead of grabbing a pointer to it
var gui = Gui.init(allocator, bus.pak.title, &bus.apu) catch |e| exitln("failed to init gui: {}", .{e});
var gui = Gui.init(allocator, &bus.apu) catch |e| exitln("failed to init gui: {}", .{e});
defer gui.deinit();
var quit = std.atomic.Atomic(bool).init(false);