From 50f5a1f716d6a5a07da99748ba513571dfa76b52 Mon Sep 17 00:00:00 2001 From: leandor Date: Mon, 24 Oct 2016 01:28:32 -0300 Subject: [PATCH] (ref. #8) Change to RecordProcessor::Accept() Patched Accept implementation to print out the name of the MOD triggering the warning. --- src/GenericRecord.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/GenericRecord.cpp b/src/GenericRecord.cpp index 1bfc51f..a995adc 100644 --- a/src/GenericRecord.cpp +++ b/src/GenericRecord.cpp @@ -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; }