diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-07-10 01:11:06 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-07-10 01:11:06 +0200 |
commit | 8e7caf4e25dc3f56877a504c45d157860215496b (patch) | |
tree | 4ce3ea68190d4b693519ad6f76473b5b8f4da8be /logic/minecraft/LegacyInstance.cpp | |
parent | 5dd48e89f5a7facf8355641d0caf8deaec2a03ec (diff) | |
download | MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.gz MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.lz MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.tar.xz MultiMC-8e7caf4e25dc3f56877a504c45d157860215496b.zip |
GH-1053 move launch related things and rename them
Diffstat (limited to 'logic/minecraft/LegacyInstance.cpp')
-rw-r--r-- | logic/minecraft/LegacyInstance.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/minecraft/LegacyInstance.cpp b/logic/minecraft/LegacyInstance.cpp index 8431c35b..0991b7b5 100644 --- a/logic/minecraft/LegacyInstance.cpp +++ b/logic/minecraft/LegacyInstance.cpp @@ -24,7 +24,7 @@ #include "minecraft/LegacyUpdate.h" #include "icons/IconList.h" -#include "BaseLauncher.h" +#include "launch/LaunchTask.h" #include "minecraft/ModList.h" #include <MMCZip.h> @@ -96,7 +96,7 @@ std::shared_ptr<Task> LegacyInstance::createUpdateTask() return std::shared_ptr<Task>(new LegacyUpdate(this, this)); } -std::shared_ptr<BaseLauncher> LegacyInstance::createLaunchTask(AuthSessionPtr account) +std::shared_ptr<LaunchTask> LegacyInstance::createLaunchTask(AuthSessionPtr account) { QString launchScript; QIcon icon = ENV.icons()->getIcon(iconKey()); @@ -123,7 +123,7 @@ std::shared_ptr<BaseLauncher> LegacyInstance::createLaunchTask(AuthSessionPtr ac launchScript += "lwjgl " + lwjgl + "\n"; launchScript += "launcher legacy\n"; } - auto process = BaseLauncher::create(std::dynamic_pointer_cast<MinecraftInstance>(getSharedPtr())); + auto process = LaunchTask::create(std::dynamic_pointer_cast<MinecraftInstance>(getSharedPtr())); process->setLaunchScript(launchScript); process->setWorkdir(minecraftRoot()); process->setLogin(account); |