mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-05 04:46:57 +03:00
GH-93 add an option to not copy saves on instance copy
This commit is contained in:
parent
4fbcb3efb9
commit
44db72ead5
10 changed files with 138 additions and 60 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue