aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2022-11-01 07:06:36 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2022-11-01 07:06:36 -0700
commit209a1650e489e21417ce2e1a29862703d51a2cd0 (patch)
tree31ccbdaad1cc58caf66ccce2e52abc3d10bd8218 /launcher/modplatform/flame/FlameInstanceCreationTask.cpp
parent6010ce0dc587527caa05bdc9b4cecdb9bd811375 (diff)
downloadPrismLauncher-209a1650e489e21417ce2e1a29862703d51a2cd0.tar.gz
PrismLauncher-209a1650e489e21417ce2e1a29862703d51a2cd0.tar.bz2
PrismLauncher-209a1650e489e21417ce2e1a29862703d51a2cd0.zip
clang_format and code cleanup
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher/modplatform/flame/FlameInstanceCreationTask.cpp')
-rw-r--r--launcher/modplatform/flame/FlameInstanceCreationTask.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/launcher/modplatform/flame/FlameInstanceCreationTask.cpp b/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
index 5d4dc689..f86e9335 100644
--- a/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
+++ b/launcher/modplatform/flame/FlameInstanceCreationTask.cpp
@@ -413,15 +413,14 @@ void FlameCreationTask::idResolverSucceeded(QEventLoop& loop)
/// @brief copy the matched blocked mods to the instance staging area
/// @param blocked_mods list of the blocked mods and their matched paths
-void FlameCreationTask::copyBlockedMods(QList<BlockedMod> const& blocked_mods) {
-
+void FlameCreationTask::copyBlockedMods(QList<BlockedMod> const& blocked_mods)
+{
setStatus(tr("Copying Blocked Mods..."));
setAbortable(false);
int i = 0;
int total = blocked_mods.length();
setProgress(i, total);
- for (auto &mod : blocked_mods) {
-
+ for (auto const& mod : blocked_mods) {
if (!mod.matched) {
qDebug() << mod.name << "was not matched to a local file, skipping copy";
continue;
@@ -433,9 +432,9 @@ void FlameCreationTask::copyBlockedMods(QList<BlockedMod> const& blocked_mods) {
qDebug() << "Will try to copy" << mod.localPath << "to" << dest_path;
- if (!FS::copy(mod.localPath, dest_path)()) {
+ if (!FS::copy(mod.localPath, dest_path)()) {
qDebug() << "Copy of" << mod.localPath << "to" << dest_path << "Failed";
- }
+ }
i++;
setProgress(i, total);