mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +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);
|
||||
}
|
||||
|
||||
if (overlayFile) {
|
||||
if (overlayFileName) {
|
||||
if (strcmp(overlayFileName, "-")) {
|
||||
overlayFile = fopen(overlayFileName, "rb");
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user