- added an errorlog option.

This cuts down on as much message noise as possible, outputs everything to a file specified as a parameter and then quits immediately, allowing this to run from a batch that's supposed to check a larger list of files for errors.
Multiple outputs get appended if the file already exists.
This commit is contained in:
Christoph Oelckers 2016-02-09 14:20:49 +01:00
commit 4d2a52418f
22 changed files with 96 additions and 70 deletions

View file

@ -2495,7 +2495,7 @@ bool D_LoadDehFile(const char *patchfile)
static bool DoDehPatch()
{
Printf("Adding dehacked patch %s\n", PatchName);
if (!batchrun) Printf("Adding dehacked patch %s\n", PatchName);
int cont;
@ -2586,7 +2586,7 @@ static bool DoDehPatch()
UnloadDehSupp ();
delete[] PatchName;
delete[] PatchFile;
Printf ("Patch installed\n");
if (!batchrun) Printf ("Patch installed\n");
return true;
}