Reduce include chain further, forward declare settings and log model

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
This commit is contained in:
Rachel Powers 2026-02-09 19:59:19 -07:00
parent 0ba2c09787
commit 45df360e4c
No known key found for this signature in database
GPG key ID: B4CB507E51F8B89C
26 changed files with 31 additions and 12 deletions

View file

@ -49,9 +49,7 @@
#include "QObjectPtr.h"
#include "launch/LogModel.h"
#include "minecraft/auth/MinecraftAccount.h"
#include "settings/SettingsObject.h"
class LaunchController;
class LocalPeer;
@ -78,11 +76,10 @@ class ThemeManager;
class IconTheme;
class BaseInstance;
struct MinecraftTarget;
class LogModel;
// pointers for lazy people
using InstancePtr = std::shared_ptr<BaseInstance>;
using MinecraftTargetPtr = std::shared_ptr<MinecraftTarget>;
struct MinecraftTarget;
class MinecraftAccount;
namespace Meta {
class Index;
@ -221,8 +218,8 @@ class Application : public QApplication {
bool launch(BaseInstance* instance,
bool online = true,
bool demo = false,
MinecraftTargetPtr targetToJoin = nullptr,
MinecraftAccountPtr accountToUse = nullptr,
std::shared_ptr<MinecraftTarget> targetToJoin = nullptr,
shared_qobject_ptr<MinecraftAccount> accountToUse = nullptr,
const QString& offlineName = QString());
bool kill(BaseInstance* instance);
void closeCurrentWindow();