chore: exit early on shader compile failure

This commit is contained in:
2022-11-29 22:25:04 -04:00
parent 46e29245b7
commit c3f67e38a1
2 changed files with 30 additions and 4 deletions

View File

@@ -87,7 +87,7 @@ pub fn main() void {
cpu.fastBoot();
}
var gui = Gui.init(&bus.pak.title, &bus.apu, width, height);
var gui = Gui.init(&bus.pak.title, &bus.apu, width, height) catch |e| exitln("failed to init gui: {}", .{e});
defer gui.deinit();
gui.run(&cpu, &scheduler) catch |e| exitln("failed to run gui thread: {}", .{e});