GH-93 add an option to not copy saves on instance copy
This commit is contained in:
@ -278,7 +278,7 @@ bool Mod::replace(Mod &with)
|
||||
}
|
||||
if (t == MOD_FOLDER)
|
||||
{
|
||||
success = FS::copyPath(with.m_file.filePath(), m_file.path());
|
||||
success = FS::copy(with.m_file.filePath(), m_file.path())();
|
||||
}
|
||||
if (success)
|
||||
{
|
||||
|
@ -286,7 +286,7 @@ bool ModList::installMod(const QFileInfo &filename, int index)
|
||||
|
||||
QString from = filename.filePath();
|
||||
QString to = FS::PathCombine(m_dir.path(), filename.fileName());
|
||||
if (!FS::copyPath(from, to))
|
||||
if (!FS::copy(from, to)())
|
||||
return false;
|
||||
m.repath(to);
|
||||
beginInsertRows(QModelIndex(), index, index);
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user