|
|
@ -272,7 +272,7 @@ void DataFilesModel::addMasters(const QString &path)
|
|
|
|
foreach (const QString &path, dir.entryList()) {
|
|
|
|
foreach (const QString &path, dir.entryList()) {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ESM::ESMReader fileReader;
|
|
|
|
ESM::ESMReader fileReader;
|
|
|
|
fileReader.setEncoding(ToUTF8::CalculateEncoding(mEncoding.toStdString()));
|
|
|
|
fileReader.setEncoding(ToUTF8::calculateEncoding(mEncoding.toStdString()));
|
|
|
|
fileReader.open(dir.absoluteFilePath(path).toStdString());
|
|
|
|
fileReader.open(dir.absoluteFilePath(path).toStdString());
|
|
|
|
|
|
|
|
|
|
|
|
ESM::ESMReader::MasterList mlist = fileReader.getMasters();
|
|
|
|
ESM::ESMReader::MasterList mlist = fileReader.getMasters();
|
|
|
@ -335,7 +335,7 @@ void DataFilesModel::addPlugins(const QString &path)
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
ESM::ESMReader fileReader;
|
|
|
|
ESM::ESMReader fileReader;
|
|
|
|
fileReader.setEncoding(ToUTF8::CalculateEncoding(mEncoding.toStdString()));
|
|
|
|
fileReader.setEncoding(ToUTF8::calculateEncoding(mEncoding.toStdString()));
|
|
|
|
fileReader.open(dir.absoluteFilePath(path).toStdString());
|
|
|
|
fileReader.open(dir.absoluteFilePath(path).toStdString());
|
|
|
|
|
|
|
|
|
|
|
|
ESM::ESMReader::MasterList mlist = fileReader.getMasters();
|
|
|
|
ESM::ESMReader::MasterList mlist = fileReader.getMasters();
|
|
|
|