Working
git-svn-id: svn://svn.cc65.org/cc65/trunk@1972 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user