mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-21 02:32:06 +00:00
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:
@@ -202,7 +202,7 @@ static void writeROM() {
|
|||||||
err("Failed to open output file \"%s\"", outputFileName);
|
err("Failed to open output file \"%s\"", outputFileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overlayFile) {
|
if (overlayFileName) {
|
||||||
if (strcmp(overlayFileName, "-")) {
|
if (strcmp(overlayFileName, "-")) {
|
||||||
overlayFile = fopen(overlayFileName, "rb");
|
overlayFile = fopen(overlayFileName, "rb");
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user