diff options
author | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-10-30 22:49:54 -0700 |
---|---|---|
committer | Rachel Powers <508861+Ryex@users.noreply.github.com> | 2022-11-01 04:24:11 -0700 |
commit | a7a331a26e43df3dbafdbb29a59d38ba807ffa7d (patch) | |
tree | e4b6e0355410f2435c4a932236fdc969a7634d9f /launcher | |
parent | fda2c116bef33df2ca49d77ff4b016e724f47549 (diff) | |
download | PrismLauncher-a7a331a26e43df3dbafdbb29a59d38ba807ffa7d.tar.gz PrismLauncher-a7a331a26e43df3dbafdbb29a59d38ba807ffa7d.tar.bz2 PrismLauncher-a7a331a26e43df3dbafdbb29a59d38ba807ffa7d.zip |
ensure FS::copyFile is marked for removal
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'launcher')
-rw-r--r-- | launcher/FileSystem.h | 1 | ||||
-rw-r--r-- | launcher/modplatform/modpacksch/FTBPackInstallTask.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/launcher/FileSystem.h b/launcher/FileSystem.h index 771bda60..11981f68 100644 --- a/launcher/FileSystem.h +++ b/launcher/FileSystem.h @@ -75,6 +75,7 @@ bool ensureFilePathExists(QString filenamepath); */ bool ensureFolderPathExists(QString filenamepath); +// TODO: remove in favor of FS::copy once #333 is merged bool copyFile(QString const& src, QString const& dst); /// @brief Copies a directory and it's contents from src to dest diff --git a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp index 5091db0c..06ef1deb 100644 --- a/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp +++ b/launcher/modplatform/modpacksch/FTBPackInstallTask.cpp @@ -373,7 +373,7 @@ void PackInstallTask::copyBlockedMods() { qDebug() << "Will try to copy" << mod->localPath << "to" << dest_path; - if (!FS::copyFile(mod->localPath, dest_path)) { + if (!FS::copyFile(mod->localPath, dest_path)) { // FIXME: use FS::copy once #333 is merged qDebug() << "Copy of" << mod->localPath << "to" << dest_path << "Failed"; } |