forked from mirror/openmw-tes3mp
Add NAME and DELE handling to ESM records.
Changed records are those where DELE is located after NAME sub-record. And DELE is the last sub-record.openmw-38
parent
6691891bee
commit
926c825d0c
@ -0,0 +1,20 @@
|
||||
#include "util.hpp"
|
||||
|
||||
namespace ESM
|
||||
{
|
||||
bool readDeleSubRecord(ESMReader &esm)
|
||||
{
|
||||
if (esm.isNextSub("DELE"))
|
||||
{
|
||||
esm.getSubName();
|
||||
esm.skipHSub();
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
void writeDeleSubRecord(ESMWriter &esm)
|
||||
{
|
||||
esm.writeHNString("DELE", "");
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue