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
2024-03-09 21:11:56 +08:00
committed by GitHub
parent 9f5bf5e285
commit 9890cf25b4

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 {