mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-22 11:12:07 +00:00
Allow rgbasm and rgblink to use stdout and stdin as input and output
This commit is contained in:
@@ -471,7 +471,12 @@ static void registerExportedSymbol(struct Symbol *symbol, void *arg)
|
||||
*/
|
||||
void out_WriteObject(void)
|
||||
{
|
||||
FILE *f = fopen(tzObjectname, "wb");
|
||||
FILE *f;
|
||||
if (strcmp(tzObjectname, "-") != 0) {
|
||||
f = fopen(tzObjectname, "wb");
|
||||
} else {
|
||||
f = fdopen(1, "wb");
|
||||
}
|
||||
|
||||
if (!f)
|
||||
err(1, "Couldn't write file '%s'", tzObjectname);
|
||||
|
||||
Reference in New Issue
Block a user