1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 13:23:53 +00:00
openmw/apps/essimporter/importdial.cpp

24 lines
600 B
C++
Raw Normal View History

#include "importdial.hpp"
#include <components/esm3/esmreader.hpp>
namespace ESSImport
{
2022-09-22 18:26:05 +00:00
void DIAL::load(ESM::ESMReader& esm)
{
2015-01-22 22:42:43 +00:00
// See ESM::Dialogue::Type enum, not sure why we would need this here though
2023-12-17 13:03:45 +00:00
int32_t type = 0;
2015-01-22 22:42:43 +00:00
esm.getHNOT(type, "DATA");
// Deleted dialogue in a savefile. No clue what this means...
2023-12-17 13:03:45 +00:00
int32_t deleted = 0;
2015-01-22 22:42:43 +00:00
esm.getHNOT(deleted, "DELE");
mIndex = 0;
// *should* always occur except when the dialogue is deleted, but leaving it optional just in case...
esm.getHNOT(mIndex, "XIDX");
}
}