mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-23 20:23:52 +00:00
e9a8eac6af
Changed records are those where DELE is located after NAME sub-record.
And DELE is the last sub-record.
(cherry picked from commit 926c825d0c
)
Conflicts:
components/esm/loadstat.cpp
components/esm/loadstat.hpp
components/esm/util.hpp
20 lines
350 B
C++
20 lines
350 B
C++
#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", "");
|
|
}
|
|
}
|