Fix -O being always ignored (#1339)

The file isn't opened at this point, it's the file name that should be inspected.
This commit is contained in:
SnDream authored and GitHub committed 2024-03-09 14:11:56 +01:00
1 parent 9f5bf5e285
commit 9890cf25b4
1 file changed
+1 -1
+1 -1
View File
@@ -202,7 +202,7 @@ static void writeROM() {
err("Failed to open output file \"%s\"", outputFileName);
}
if (overlayFile) {
if (overlayFileName) {
if (strcmp(overlayFileName, "-")) {
overlayFile = fopen(overlayFileName, "rb");
} else {