diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-10-10 05:55:55 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-10-10 05:55:55 +0200 |
commit | 44db72ead568fe7ce22e1999aac02fd9aac9beea (patch) | |
tree | b03d7fa01a0b2ef772c2770e2db99bc8aa69c768 /logic/minecraft/World.cpp | |
parent | 4fbcb3efb90368c084946600afdca05ca7c65519 (diff) | |
download | MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.gz MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.lz MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.tar.xz MultiMC-44db72ead568fe7ce22e1999aac02fd9aac9beea.zip |
GH-93 add an option to not copy saves on instance copy
Diffstat (limited to 'logic/minecraft/World.cpp')
-rw-r--r-- | logic/minecraft/World.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/minecraft/World.cpp b/logic/minecraft/World.cpp index e4734556..6081a8ec 100644 --- a/logic/minecraft/World.cpp +++ b/logic/minecraft/World.cpp @@ -197,7 +197,7 @@ bool World::install(const QString &to, const QString &name) else if(m_containerFile.isDir()) { QString from = m_containerFile.filePath(); - ok = FS::copyPath(from, finalPath); + ok = FS::copy(from, finalPath)(); } if(ok && !name.isEmpty() && m_actualName != name) @@ -350,7 +350,7 @@ bool World::replace(World &with) { if (!destroy()) return false; - bool success = FS::copyPath(with.m_containerFile.filePath(), m_containerFile.path()); + bool success = FS::copy(with.m_containerFile.filePath(), m_containerFile.path())(); if (success) { m_folderName = with.m_folderName; |