equal
deleted
inserted
replaced
488 printf("ERROR: %s\r\n", le.GetErrorMessage()); |
488 printf("ERROR: %s\r\n", le.GetErrorMessage()); |
489 return 1; |
489 return 1; |
490 } |
490 } |
491 return 0; |
491 return 0; |
492 } |
492 } |
493 if (romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/') |
493 if (romlogfile.empty() || romlogfile[romlogfile.size()-1] == '\\' || romlogfile[romlogfile.size()-1] == '/') |
494 romlogfile += "ROMBUILD.LOG"; |
494 romlogfile += "ROMBUILD.LOG"; |
495 H.SetLogFile(romlogfile.c_str()); |
495 H.SetLogFile(romlogfile.c_str()); |
496 ObeyFileReader *reader=new ObeyFileReader(filename.c_str()); |
496 ObeyFileReader *reader=new ObeyFileReader(filename.c_str()); |
497 if (!reader->Open()) { |
497 if (!reader->Open()) { |
498 delete reader; |
498 delete reader; |