2022-03-23 18:06:17 +00:00
|
|
|
// SPDX-License-Identifier: GPL-3.0-only
|
|
|
|
/*
|
2023-08-04 18:41:47 +01:00
|
|
|
* Prism Launcher - Minecraft Launcher
|
2022-03-23 18:06:17 +00:00
|
|
|
* Copyright (C) 2022 dada513 <dada513@protonmail.com>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, version 3.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <launch/LaunchStep.h>
|
|
|
|
|
2023-08-02 17:35:35 +01:00
|
|
|
class QuitAfterGameStop : public LaunchStep {
|
2022-03-23 18:06:17 +00:00
|
|
|
Q_OBJECT
|
2023-08-02 17:35:35 +01:00
|
|
|
public:
|
|
|
|
explicit QuitAfterGameStop(LaunchTask* parent) : LaunchStep(parent){};
|
|
|
|
virtual ~QuitAfterGameStop(){};
|
2022-03-23 18:06:17 +00:00
|
|
|
|
|
|
|
virtual void executeTask();
|
2023-08-02 17:35:35 +01:00
|
|
|
virtual bool canAbort() const { return false; }
|
2022-03-23 18:06:17 +00:00
|
|
|
};
|