mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Reset existing data when loading new plugin.
This commit is contained in:
@@ -45,6 +45,14 @@ namespace loot {
|
||||
espm::File * file = nullptr;
|
||||
espm::Settings espmSettings;
|
||||
|
||||
// Clear existing data.
|
||||
_isEmpty = true;
|
||||
_isMaster = false;
|
||||
_formIDs.clear();
|
||||
_masters.clear();
|
||||
_description.clear();
|
||||
_crc = 0;
|
||||
|
||||
// Get data from file contents using libespm.
|
||||
BOOST_LOG_TRIVIAL(trace) << name << ": " << "Opening with libespm...";
|
||||
boost::filesystem::path filepath = game.DataPath() / name;
|
||||
|
||||
Reference in New Issue
Block a user