|
|
@ -85,7 +85,7 @@ namespace
|
|
|
|
namespace ESSImport
|
|
|
|
namespace ESSImport
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
Importer::Importer(const std::string &essfile, const std::string &outfile, const std::string &encoding)
|
|
|
|
Importer::Importer(const std::filesystem::path &essfile, const std::filesystem::path &outfile, const std::string &encoding)
|
|
|
|
: mEssFile(essfile)
|
|
|
|
: mEssFile(essfile)
|
|
|
|
, mOutFile(outfile)
|
|
|
|
, mOutFile(outfile)
|
|
|
|
, mEncoding(encoding)
|
|
|
|
, mEncoding(encoding)
|
|
|
@ -112,7 +112,7 @@ namespace ESSImport
|
|
|
|
std::vector<Record> mRecords;
|
|
|
|
std::vector<Record> mRecords;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
void read(const std::string& filename, File& file)
|
|
|
|
void read(const std::filesystem::path &filename, File& file)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
ESM::ESMReader esm;
|
|
|
|
ESM::ESMReader esm;
|
|
|
|
esm.open(filename);
|
|
|
|
esm.open(filename);
|
|
|
|