aboutsummaryrefslogtreecommitdiff
path: root/launcher/BaseInstance.h
diff options
context:
space:
mode:
authorTheKodeToad <TheKodeToad@proton.me>2023-07-06 18:04:44 +0100
committerTheKodeToad <TheKodeToad@proton.me>2023-07-06 18:07:45 +0100
commit22327bbe71b271a126521db737101ae07ba26f8d (patch)
treef06f2e447e27773b4e8423c3a733e087d5e01797 /launcher/BaseInstance.h
parentdedc9e4edc2769c62f33b6564f3009414245d9f3 (diff)
downloadPrismLauncher-22327bbe71b271a126521db737101ae07ba26f8d.tar.gz
PrismLauncher-22327bbe71b271a126521db737101ae07ba26f8d.tar.bz2
PrismLauncher-22327bbe71b271a126521db737101ae07ba26f8d.zip
Combine launch buttons in Instance window, persist profiler
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/BaseInstance.h')
-rw-r--r--launcher/BaseInstance.h14
1 files changed, 10 insertions, 4 deletions
diff --git a/launcher/BaseInstance.h b/launcher/BaseInstance.h
index 83a8064f..7da4e20b 100644
--- a/launcher/BaseInstance.h
+++ b/launcher/BaseInstance.h
@@ -1,8 +1,9 @@
// SPDX-License-Identifier: GPL-3.0-only
/*
- * PolyMC - Minecraft Launcher
+ * Prism Launcher - Minecraft Launcher
* Copyright (C) 2022 Sefa Eyeoglu <contact@scrumplex.net>
* Copyright (c) 2022 Jamie Mansfield <jmansfield@cadixdev.org>
+ * Copyright (C) 2023 TheKodeToad <TheKodeToad@proton.me>
*
* 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
@@ -37,11 +38,12 @@
#pragma once
#include <cassert>
-#include <QObject>
-#include "QObjectPtr.h"
#include <QDateTime>
-#include <QSet>
+#include <QMenu>
+#include <QObject>
#include <QProcess>
+#include <QSet>
+#include "QObjectPtr.h"
#include "settings/SettingsObject.h"
@@ -270,6 +272,8 @@ public:
virtual bool canEdit() const = 0;
virtual bool canExport() const = 0;
+ virtual void populateLaunchMenu(QMenu* menu) = 0;
+
bool reloadSettings();
/**
@@ -306,6 +310,8 @@ signals:
void runningStatusChanged(bool running);
+ void profilerChanged();
+
void statusChanged(Status from, Status to);
protected slots: