summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modinforegular.cpp4
-rw-r--r--src/shared/directoryentry.cpp14
2 files changed, 10 insertions, 8 deletions
diff --git a/src/modinforegular.cpp b/src/modinforegular.cpp
index 15ce56ba..529f20cb 100644
--- a/src/modinforegular.cpp
+++ b/src/modinforegular.cpp
@@ -47,7 +47,9 @@ ModInfoRegular::ModInfoRegular(PluginContainer *pluginContainer, const IPluginGa
//populate m_Archives
m_Archives = QStringList();
- archives(true);
+ if (Settings::instance().archiveParsing()) {
+ archives(true);
+ }
connect(&m_NexusBridge, SIGNAL(descriptionAvailable(QString,int,QVariant,QVariant))
, this, SLOT(nxmDescriptionAvailable(QString,int,QVariant,QVariant)));
diff --git a/src/shared/directoryentry.cpp b/src/shared/directoryentry.cpp
index 9f54e526..8fc63188 100644
--- a/src/shared/directoryentry.cpp
+++ b/src/shared/directoryentry.cpp
@@ -313,18 +313,18 @@ bool FileEntry::removeOrigin(int origin)
m_Origin = currentID;
// now we need to update the file time...
- std::wstring filePath = getFullPath();
- HANDLE file = ::CreateFile(filePath.c_str(), GENERIC_READ | GENERIC_WRITE,
- 0, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
- if (!::GetFileTime(file, nullptr, nullptr, &m_FileTime)) {
+ //std::wstring filePath = getFullPath();
+ //HANDLE file = ::CreateFile(filePath.c_str(), GENERIC_READ | GENERIC_WRITE,
+ // 0, nullptr, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, nullptr);
+ //if (!::GetFileTime(file, nullptr, nullptr, &m_FileTime)) {
// maybe this file is in a bsa, but there is no easy way to find out which. User should refresh
// the view to find out
//m_Archive = std::pair<std::wstring, int>(L"bsa?", -1);
- } else {
+ //} else {
//m_Archive = std::pair<std::wstring, int>(L"", -1);
- }
+ //}
- ::CloseHandle(file);
+ //::CloseHandle(file);
} else {
m_Origin = -1;