mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-04 03:40:14 +00:00
Reject files with non-zero preceding separators
This sign is typically bad news on some 10.0.1.2 files used in Oblivion. Technically our fault, but NifTools research is incomplete, will need to check if cc9cii found anything
This commit is contained in:
parent
c8307ad397
commit
a90c848349
@ -539,10 +539,8 @@ namespace Nif
|
||||
}
|
||||
|
||||
// Record separator. Some Havok records in Oblivion do not have it.
|
||||
if (hasRecordSeparators && !rec.starts_with("bhk"))
|
||||
if (nif.get<int32_t>())
|
||||
Log(Debug::Warning) << "NIFFile Warning: Record of type " << rec << ", index " << i
|
||||
<< " is preceded by a non-zero separator. File: " << mFilename;
|
||||
if (hasRecordSeparators && !rec.starts_with("bhk") && nif.get<int32_t>())
|
||||
throw Nif::Exception("Non-zero separator precedes " + rec + ", index " + std::to_string(i), mFilename);
|
||||
|
||||
const auto entry = factories.find(rec);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user