imgtools/romtools/rombuild/rombuild.cpp
changeset 698 e3ee96a3961c
parent 694 c3fbb20e86f0
child 700 c22eff170fac
equal deleted inserted replaced
697:818fe0ed324b 698:e3ee96a3961c
   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;