imgtools/romtools/rombuild/rombuild.cpp
changeset 705 67449e76cb84
parent 700 c22eff170fac
child 710 44ac166bbdbc
equal deleted inserted replaced
704:0f8b90f18a21 705:67449e76cb84
    32 const TInt KRomLoaderHeaderEPOC=1;
    32 const TInt KRomLoaderHeaderEPOC=1;
    33 const TInt KRomLoaderHeaderCOFF=2;
    33 const TInt KRomLoaderHeaderCOFF=2;
    34 
    34 
    35 static const TInt RombuildMajorVersion=2;
    35 static const TInt RombuildMajorVersion=2;
    36 static const TInt RombuildMinorVersion=19;
    36 static const TInt RombuildMinorVersion=19;
    37 static const TInt RombuildPatchVersion=0;
    37 static const TInt RombuildPatchVersion=1;
    38 static TBool SizeSummary=EFalse;
    38 static TBool SizeSummary=EFalse;
    39 static TPrintType SizeWhere=EAlways;
    39 static TPrintType SizeWhere=EAlways;
    40 static string compareROMName = "";
    40 static string compareROMName = "";
    41 static TInt MAXIMUM_THREADS = 128;
    41 static TInt MAXIMUM_THREADS = 128;
    42 static TInt DEFAULT_THREADS = 8;
    42 static TInt DEFAULT_THREADS = 8;
   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;