mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-06-29 01:54:20 +03:00
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:
parent
0ba2c09787
commit
45df360e4c
26 changed files with 31 additions and 12 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue