diff options
author | TheKodeToad <TheKodeToad@proton.me> | 2022-11-08 11:20:13 +0000 |
---|---|---|
committer | TheKodeToad <TheKodeToad@proton.me> | 2022-11-23 09:46:55 +0000 |
commit | 96e8217b0034a7d73c7a37881955c51d3b248dca (patch) | |
tree | 1cecbbdc6fe912e952f0e18fbdfe68639d71042b /launcher/minecraft/PackProfile.h | |
parent | 298871e207718cc593a02b8f0f2f64f44bf02191 (diff) | |
download | PrismLauncher-96e8217b0034a7d73c7a37881955c51d3b248dca.tar.gz PrismLauncher-96e8217b0034a7d73c7a37881955c51d3b248dca.tar.bz2 PrismLauncher-96e8217b0034a7d73c7a37881955c51d3b248dca.zip |
Button to add agent
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
Diffstat (limited to 'launcher/minecraft/PackProfile.h')
-rw-r--r-- | launcher/minecraft/PackProfile.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/launcher/minecraft/PackProfile.h b/launcher/minecraft/PackProfile.h index 807511a2..2330cca1 100644 --- a/launcher/minecraft/PackProfile.h +++ b/launcher/minecraft/PackProfile.h @@ -1,7 +1,8 @@ // 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 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 @@ -85,6 +86,9 @@ public: /// install a jar/zip as a replacement for the main jar void installCustomJar(QString selectedFile); + /// install Java agent files + void installAgents(QStringList selectedFiles); + enum MoveDirection { MoveUp, MoveDown }; /// move component file # up or down the list void move(const int index, const MoveDirection direction); @@ -167,6 +171,7 @@ private: bool load(); bool installJarMods_internal(QStringList filepaths); bool installCustomJar_internal(QString filepath); + bool installAgents_internal(QStringList filepaths); bool removeComponent_internal(ComponentPtr patch); private: /* data */ |