Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Commit

Permalink
(ref. #8) Change to RecordProcessor::Accept()
Browse files Browse the repository at this point in the history
Patched Accept implementation to print out the name of the MOD
triggering the warning.
  • Loading branch information
leandor committed Oct 24, 2016
1 parent 37d793f commit 50f5a1f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/GenericRecord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,10 @@ bool RecordProcessor::Accept(RecordHeader &header)
if (result.second == false)
{
if (IsAddMasters) //If not, can cause any new records to be given a duplicate ID
printer("RecordProcessor: Warning - Information lost. Record skipped with duplicate formID: %08X\n", header.formID);
{
printer("RecordProcessor MOD=(%s): Warning - Information lost. Record skipped with duplicate formID: %08X\n", curModFile->FileName, header.formID);
}

return false;
}

Expand Down

0 comments on commit 50f5a1f

Please sign in to comment.