Log to console when invalid objects found during check

This commit is contained in:
rwjuk 2017-07-05 00:33:39 +01:00 committed by Michał Janiszewski
parent fe140c5c20
commit 68c819c01f
2 changed files with 4 additions and 0 deletions

View File

@ -461,6 +461,7 @@ private:
if (ori == nullptr)
{
invalidEntries.push_back(*entry);
ReportMissingObject(entry);
}
else
{
@ -472,6 +473,7 @@ private:
if (loadedObject == nullptr)
{
invalidEntries.push_back(*entry);
ReportObjectLoadProblem(entry);
}
delete loadedObject;
}

View File

@ -1779,6 +1779,7 @@ private:
if (ori == nullptr)
{
missingObjects.push_back(entry);
Console::Error::WriteLine("[%s] Object not found.", objectName);
}
else
{
@ -1786,6 +1787,7 @@ private:
if (object == nullptr && objectType != OBJECT_TYPE_SCENERY_SETS)
{
missingObjects.push_back(entry);
Console::Error::WriteLine("[%s] Object could not be loaded.", objectName);
}
delete object;
}