git-svn-id: svn://svn.cc65.org/cc65/trunk@1972 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz
2003-02-11 22:40:56 +00:00
parent 631aeb2a8d
commit 686f267324
6 changed files with 30 additions and 3 deletions

View File

@@ -396,7 +396,7 @@ void Convert (const O65Data* D, const char* OutputFile)
case O65_OS_CC65_MODULE:
if (Model != O65_MODEL_NONE &&
Model != O65_MODEL_CC65_MODULE) {
Warning ("Wrong o65 model");
Warning ("Wrong o65 model for input file specified");
} else {
Model = O65_MODEL_CC65_MODULE;
}
@@ -430,7 +430,12 @@ void Convert (const O65Data* D, const char* OutputFile)
}
}
/* Open the output file */
/* If we shouldn't generate output, we're done here */
if (NoOutput) {
return;
}
/* Open the output file */
F = fopen (OutputFile, "wb");
if (F == 0) {
Error ("Cannot open `%s': %s", OutputFile, strerror (errno));