aboutsummaryrefslogtreecommitdiff
path: root/launcher/modplatform/import_ftb/PackHelpers.h
diff options
context:
space:
mode:
authorSefa Eyeoglu <contact@scrumplex.net>2023-08-02 19:27:48 +0200
committerGitHub <noreply@github.com>2023-08-02 19:27:48 +0200
commitfa2b784f7eb817e97d0af45fe78d205932ada193 (patch)
treef263bdc3fd2f945e6ecc75f9b59b55d009082cca /launcher/modplatform/import_ftb/PackHelpers.h
parentb1aa9e584624a0732dd55fc6c459524a8abfe6ba (diff)
parent01e17806f67534140a6db6cf90191f4db4dd30ac (diff)
downloadPrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.tar.gz
PrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.tar.bz2
PrismLauncher-fa2b784f7eb817e97d0af45fe78d205932ada193.zip
Merge branch 'develop' into sparkle-disable
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
Diffstat (limited to 'launcher/modplatform/import_ftb/PackHelpers.h')
-rw-r--r--launcher/modplatform/import_ftb/PackHelpers.h55
1 files changed, 55 insertions, 0 deletions
diff --git a/launcher/modplatform/import_ftb/PackHelpers.h b/launcher/modplatform/import_ftb/PackHelpers.h
new file mode 100644
index 00000000..8ea4f3fa
--- /dev/null
+++ b/launcher/modplatform/import_ftb/PackHelpers.h
@@ -0,0 +1,55 @@
+// SPDX-License-Identifier: GPL-3.0-only
+/*
+ * Prism Launcher - Minecraft Launcher
+ * Copyright (c) 2023 Trial97 <alexandru.tripon97@gmail.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 <QIcon>
+#include <QList>
+#include <QMetaType>
+#include <QString>
+#include <QVariant>
+#include "modplatform/ResourceAPI.h"
+
+namespace FTBImportAPP {
+
+struct Modpack {
+ QString path;
+
+ // json data
+ QString uuid;
+ int id;
+ int versionId;
+ QString name;
+ QString version;
+ QString mcVersion;
+ // not needed for instance creation
+ QVariant jvmArgs;
+
+ std::optional<ResourceAPI::ModLoaderType> loaderType;
+ QString loaderVersion;
+
+ QIcon icon;
+};
+
+typedef QList<Modpack> ModpackList;
+
+Modpack parseDirectory(QString path);
+
+} // namespace FTBImportAPP
+
+// We need it for the proxy model
+Q_DECLARE_METATYPE(FTBImportAPP::Modpack)