aboutsummaryrefslogtreecommitdiff
path: root/launcher/minecraft/launch/DirectJavaLaunch.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-08-02 20:27:37 +0100
committerGitHub <noreply@github.com>2023-08-02 20:27:37 +0100
commitafaf6f894c797fc0aa7eb329b661b533be469005 (patch)
tree0be358a0b616010aa5a022dbd3336a15cb791638 /launcher/minecraft/launch/DirectJavaLaunch.h
parent8b3c465a50e6be2a09c3968f1fd1e91b0428cbb0 (diff)
parentac36a2289faf331af17b51e2c9ebb78d005f9bfa (diff)
downloadPrismLauncher-afaf6f894c797fc0aa7eb329b661b533be469005.tar.gz
PrismLauncher-afaf6f894c797fc0aa7eb329b661b533be469005.tar.bz2
PrismLauncher-afaf6f894c797fc0aa7eb329b661b533be469005.zip
Merge branch 'PrismLauncher:develop' into better-component-installation
Diffstat (limited to 'launcher/minecraft/launch/DirectJavaLaunch.h')
-rw-r--r--launcher/minecraft/launch/DirectJavaLaunch.h58
1 files changed, 0 insertions, 58 deletions
diff --git a/launcher/minecraft/launch/DirectJavaLaunch.h b/launcher/minecraft/launch/DirectJavaLaunch.h
deleted file mode 100644
index 58b119b8..00000000
--- a/launcher/minecraft/launch/DirectJavaLaunch.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/* Copyright 2013-2021 MultiMC Contributors
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-#pragma once
-
-#include <launch/LaunchStep.h>
-#include <LoggedProcess.h>
-#include <minecraft/auth/AuthSession.h>
-
-#include "MinecraftServerTarget.h"
-
-class DirectJavaLaunch: public LaunchStep
-{
- Q_OBJECT
-public:
- explicit DirectJavaLaunch(LaunchTask *parent);
- virtual ~DirectJavaLaunch() {};
-
- virtual void executeTask();
- virtual bool abort();
- virtual void proceed();
- virtual bool canAbort() const
- {
- return true;
- }
- void setWorkingDirectory(const QString &wd);
- void setAuthSession(AuthSessionPtr session)
- {
- m_session = session;
- }
-
- void setServerToJoin(MinecraftServerTargetPtr serverToJoin)
- {
- m_serverToJoin = std::move(serverToJoin);
- }
-
-private slots:
- void on_state(LoggedProcess::State state);
-
-private:
- LoggedProcess m_process;
- QString m_command;
- AuthSessionPtr m_session;
- MinecraftServerTargetPtr m_serverToJoin;
-};
-