diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-09-04 08:17:25 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-09-04 08:17:25 +0200 |
commit | d80382180ef14d814eb9f6d7f2bf5db362f25cc2 (patch) | |
tree | 824dae31e08a961be3b1f0bf0129419ccbbef9b2 /api/logic/InstanceCopyTask.cpp | |
parent | b8adbb9b73751b022b42180dcc213dc99be9765b (diff) | |
download | MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.gz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.lz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.tar.xz MultiMC-d80382180ef14d814eb9f6d7f2bf5db362f25cc2.zip |
NOISSUE refactor pack import (extraction and paths)
It now:
* Doesn't extract until it knows the content format is good.
* Extracts in a predictable location, not requiring to use a second path for the actual pack root.
Diffstat (limited to 'api/logic/InstanceCopyTask.cpp')
-rw-r--r-- | api/logic/InstanceCopyTask.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/logic/InstanceCopyTask.cpp b/api/logic/InstanceCopyTask.cpp index b1bd39ef..e9ed9a82 100644 --- a/api/logic/InstanceCopyTask.cpp +++ b/api/logic/InstanceCopyTask.cpp @@ -56,7 +56,7 @@ void InstanceCopyTask::copyFinished() InstancePtr inst(new NullInstance(m_globalSettings, instanceSettings, m_stagingPath)); inst->setName(m_instName); inst->setIconKey(m_instIcon); - m_target->commitStagedInstance(m_stagingPath, m_stagingPath, m_instName, m_instGroup); + m_target->commitStagedInstance(m_stagingPath, m_instName, m_instGroup); emitSucceeded(); } |