From e49236394da92cd9386a95210547b89c9eae2482 Mon Sep 17 00:00:00 2001 From: Max Fierke Date: Tue, 8 Oct 2024 22:04:39 -0500 Subject: [PATCH] Fix automatic boot rom path lookup --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 593a950..3386067 100644 --- a/main.go +++ b/main.go @@ -194,7 +194,7 @@ func loadBootROM(options *CLIOptions) (*os.File, error) { if bootRomPath == "" { for _, romPath := range DEFAULT_BOOT_ROM_PATHS { - if bootRomFile, err := os.Open(romPath); err != nil && !errors.Is(err, os.ErrNotExist) { + if bootRomFile, err = os.Open(romPath); err != nil && !errors.Is(err, os.ErrNotExist) { return nil, err } else if bootRomFile != nil { // yay! we found one!