summaryrefslogtreecommitdiff
path: root/src/organizercore.cpp
diff options
context:
space:
mode:
authorTwinki <Twinki14@users.noreply.github.com>2024-06-15 12:51:47 -0400
committerGitHub <noreply@github.com>2024-06-15 18:51:47 +0200
commitd3b647ab2b19626b2f86b5c2af3946c1fcf22068 (patch)
tree3dac9ed85783bdf1bb682cd4a436cfa9197ba382 /src/organizercore.cpp
parent6d08d434a8a5a4471a620974a52550ada05ab663 (diff)
Use new Skip File & Skip Directory in usvfs (#2033)
* Use new Skip File & Skip Directory in usvfs. # Motivations https://github.com/ModOrganizer2/usvfs/pull/61 Highlights some reasons why the ability to skip files & directories would be beneficial # Modifications - Add two new settings, `skip_file_suffixes` and `skip_directories` - Wire the two new settings up to usvfs - Add two new buttons to the `Workarounds` dialog, one to adjust Skip File Suffixes and another for Skip Directories, both buttons act nearly identical to the Executable Blacklist button - Add a new grouping in the `Workarounds` dialog box that contains the usvfs buttons to keep the dialog a tad organized
Diffstat (limited to 'src/organizercore.cpp')
-rw-r--r--src/organizercore.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/organizercore.cpp b/src/organizercore.cpp
index df098205..f471ead1 100644
--- a/src/organizercore.cpp
+++ b/src/organizercore.cpp
@@ -469,12 +469,14 @@ void OrganizerCore::updateVFSParams(log::Levels logLevel,
env::CoreDumpTypes coreDumpType,
const QString& crashDumpsPath,
std::chrono::seconds spawnDelay,
- QString executableBlacklist)
+ QString executableBlacklist,
+ const QStringList& skipFileSuffixes,
+ const QStringList& skipDirectories)
{
setGlobalCoreDumpType(coreDumpType);
m_USVFS.updateParams(logLevel, coreDumpType, crashDumpsPath, spawnDelay,
- executableBlacklist);
+ executableBlacklist, skipFileSuffixes, skipDirectories);
}
void OrganizerCore::setLogLevel(log::Levels level)
@@ -484,7 +486,8 @@ void OrganizerCore::setLogLevel(log::Levels level)
updateVFSParams(
m_Settings.diagnostics().logLevel(), m_Settings.diagnostics().coreDumpType(),
QString::fromStdWString(getGlobalCoreDumpPath()),
- m_Settings.diagnostics().spawnDelay(), m_Settings.executablesBlacklist());
+ m_Settings.diagnostics().spawnDelay(), m_Settings.executablesBlacklist(),
+ m_Settings.skipFileSuffixes(), m_Settings.skipDirectories());
log::getDefault().setLevel(m_Settings.diagnostics().logLevel());
}