summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--api/logic/CMakeLists.txt34
-rw-r--r--api/logic/FolderInstanceProvider.cpp2
-rw-r--r--api/logic/FolderInstanceProvider.h2
-rw-r--r--api/logic/InstanceImportTask.cpp4
-rw-r--r--api/logic/modplatform/flame/FileResolvingTask.cpp (renamed from api/logic/minecraft/flame/FileResolvingTask.cpp)0
-rw-r--r--api/logic/modplatform/flame/FileResolvingTask.h (renamed from api/logic/minecraft/flame/FileResolvingTask.h)0
-rw-r--r--api/logic/modplatform/flame/PackManifest.cpp (renamed from api/logic/minecraft/flame/PackManifest.cpp)0
-rw-r--r--api/logic/modplatform/flame/PackManifest.h (renamed from api/logic/minecraft/flame/PackManifest.h)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackDownloader.cpp (renamed from api/logic/modplatform/FtbPackDownloader.cpp)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackDownloader.h (renamed from api/logic/modplatform/FtbPackDownloader.h)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackFetchTask.cpp (renamed from api/logic/modplatform/FtbPackFetchTask.cpp)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackFetchTask.h (renamed from api/logic/modplatform/FtbPackFetchTask.h)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackInstallTask.cpp (renamed from api/logic/modplatform/FtbPackInstallTask.cpp)0
-rw-r--r--api/logic/modplatform/ftb/FtbPackInstallTask.h (renamed from api/logic/modplatform/FtbPackInstallTask.h)2
-rw-r--r--api/logic/modplatform/ftb/PackHelpers.h (renamed from api/logic/modplatform/PackHelpers.h)0
-rw-r--r--application/FtbListModel.h2
-rw-r--r--application/MainWindow.cpp3
-rw-r--r--application/MainWindow.h2
-rw-r--r--application/dialogs/ChooseFtbPackDialog.h3
-rw-r--r--application/dialogs/NewInstanceDialog.h4
20 files changed, 30 insertions, 28 deletions
diff --git a/api/logic/CMakeLists.txt b/api/logic/CMakeLists.txt
index 404044d8..e40f188e 100644
--- a/api/logic/CMakeLists.txt
+++ b/api/logic/CMakeLists.txt
@@ -277,12 +277,6 @@ set(MINECRAFT_SOURCES
minecraft/WorldList.h
minecraft/WorldList.cpp
- # Flame
- minecraft/flame/PackManifest.h
- minecraft/flame/PackManifest.cpp
- minecraft/flame/FileResolvingTask.h
- minecraft/flame/FileResolvingTask.cpp
-
# Assets
minecraft/AssetsUtils.h
minecraft/AssetsUtils.cpp
@@ -418,18 +412,25 @@ set(META_SOURCES
meta/Index.h
)
-set(MODPLATFORM_SOURCES
- # Modplatform sources
- modplatform/FtbPackDownloader.h
- modplatform/FtbPackDownloader.cpp
+set(FTB_SOURCES
+ # Modplatform sources
+ modplatform/ftb/FtbPackDownloader.h
+ modplatform/ftb/FtbPackDownloader.cpp
- modplatform/FtbPackFetchTask.h
- modplatform/FtbPackFetchTask.cpp
- modplatform/FtbPackInstallTask.h
- modplatform/FtbPackInstallTask.cpp
+ modplatform/ftb/FtbPackFetchTask.h
+ modplatform/ftb/FtbPackFetchTask.cpp
+ modplatform/ftb/FtbPackInstallTask.h
+ modplatform/ftb/FtbPackInstallTask.cpp
- modplatform/PackHelpers.h
+ modplatform/ftb/PackHelpers.h
+)
+set(FLAME_SOURCES
+ # Flame
+ modplatform/flame/PackManifest.h
+ modplatform/flame/PackManifest.cpp
+ modplatform/flame/FileResolvingTask.h
+ modplatform/flame/FileResolvingTask.cpp
)
add_unit_test(Index
@@ -460,7 +461,8 @@ set(LOGIC_SOURCES
${TOOLS_SOURCES}
${META_SOURCES}
${ICONS_SOURCES}
- ${MODPLATFORM_SOURCES}
+ ${FTB_SOURCES}
+ ${FLAME_SOURCES}
)
add_library(MultiMC_logic SHARED ${LOGIC_SOURCES})
diff --git a/api/logic/FolderInstanceProvider.cpp b/api/logic/FolderInstanceProvider.cpp
index a6d3bdc8..52e23254 100644
--- a/api/logic/FolderInstanceProvider.cpp
+++ b/api/logic/FolderInstanceProvider.cpp
@@ -428,7 +428,7 @@ Task * FolderInstanceProvider::creationTask(BaseVersionPtr version, const QStrin
return new FolderInstanceStaging(this, task, stagingPath, instName, instGroup);
}
-#include <modplatform/FtbPackInstallTask.h>
+#include <modplatform/ftb/FtbPackInstallTask.h>
Task * FolderInstanceProvider::ftbCreationTask(FtbPackDownloader *downloader, const QString& instName, const QString& instGroup, const QString& instIcon)
{
auto stagingPath = getStagedInstancePath();
diff --git a/api/logic/FolderInstanceProvider.h b/api/logic/FolderInstanceProvider.h
index 5117affc..2641a46b 100644
--- a/api/logic/FolderInstanceProvider.h
+++ b/api/logic/FolderInstanceProvider.h
@@ -2,7 +2,7 @@
#include "BaseInstanceProvider.h"
#include <QMap>
-#include <modplatform/FtbPackDownloader.h>
+#include <modplatform/ftb/FtbPackDownloader.h>
class QFileSystemWatcher;
diff --git a/api/logic/InstanceImportTask.cpp b/api/logic/InstanceImportTask.cpp
index 2b481300..7fae97b8 100644
--- a/api/logic/InstanceImportTask.cpp
+++ b/api/logic/InstanceImportTask.cpp
@@ -12,8 +12,8 @@
// FIXME: this does not belong here, it's Minecraft/Flame specific
#include "minecraft/MinecraftInstance.h"
#include "minecraft/ComponentList.h"
-#include "minecraft/flame/FileResolvingTask.h"
-#include "minecraft/flame/PackManifest.h"
+#include "modplatform/flame/FileResolvingTask.h"
+#include "modplatform/flame/PackManifest.h"
#include "Json.h"
InstanceImportTask::InstanceImportTask(SettingsObjectPtr settings, const QUrl sourceUrl, const QString & stagingPath,
diff --git a/api/logic/minecraft/flame/FileResolvingTask.cpp b/api/logic/modplatform/flame/FileResolvingTask.cpp
index efc73621..efc73621 100644
--- a/api/logic/minecraft/flame/FileResolvingTask.cpp
+++ b/api/logic/modplatform/flame/FileResolvingTask.cpp
diff --git a/api/logic/minecraft/flame/FileResolvingTask.h b/api/logic/modplatform/flame/FileResolvingTask.h
index 00658452..00658452 100644
--- a/api/logic/minecraft/flame/FileResolvingTask.h
+++ b/api/logic/modplatform/flame/FileResolvingTask.h
diff --git a/api/logic/minecraft/flame/PackManifest.cpp b/api/logic/modplatform/flame/PackManifest.cpp
index 6a9324fe..6a9324fe 100644
--- a/api/logic/minecraft/flame/PackManifest.cpp
+++ b/api/logic/modplatform/flame/PackManifest.cpp
diff --git a/api/logic/minecraft/flame/PackManifest.h b/api/logic/modplatform/flame/PackManifest.h
index 1a5254a8..1a5254a8 100644
--- a/api/logic/minecraft/flame/PackManifest.h
+++ b/api/logic/modplatform/flame/PackManifest.h
diff --git a/api/logic/modplatform/FtbPackDownloader.cpp b/api/logic/modplatform/ftb/FtbPackDownloader.cpp
index caadd4ae..caadd4ae 100644
--- a/api/logic/modplatform/FtbPackDownloader.cpp
+++ b/api/logic/modplatform/ftb/FtbPackDownloader.cpp
diff --git a/api/logic/modplatform/FtbPackDownloader.h b/api/logic/modplatform/ftb/FtbPackDownloader.h
index c5cc9bd2..c5cc9bd2 100644
--- a/api/logic/modplatform/FtbPackDownloader.h
+++ b/api/logic/modplatform/ftb/FtbPackDownloader.h
diff --git a/api/logic/modplatform/FtbPackFetchTask.cpp b/api/logic/modplatform/ftb/FtbPackFetchTask.cpp
index 9e151186..9e151186 100644
--- a/api/logic/modplatform/FtbPackFetchTask.cpp
+++ b/api/logic/modplatform/ftb/FtbPackFetchTask.cpp
diff --git a/api/logic/modplatform/FtbPackFetchTask.h b/api/logic/modplatform/ftb/FtbPackFetchTask.h
index 3cfac4ed..3cfac4ed 100644
--- a/api/logic/modplatform/FtbPackFetchTask.h
+++ b/api/logic/modplatform/ftb/FtbPackFetchTask.h
diff --git a/api/logic/modplatform/FtbPackInstallTask.cpp b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
index 530f72ca..530f72ca 100644
--- a/api/logic/modplatform/FtbPackInstallTask.cpp
+++ b/api/logic/modplatform/ftb/FtbPackInstallTask.cpp
diff --git a/api/logic/modplatform/FtbPackInstallTask.h b/api/logic/modplatform/ftb/FtbPackInstallTask.h
index cf477ae2..7d6e5276 100644
--- a/api/logic/modplatform/FtbPackInstallTask.h
+++ b/api/logic/modplatform/ftb/FtbPackInstallTask.h
@@ -1,6 +1,6 @@
#pragma once
#include "tasks/Task.h"
-#include "modplatform/FtbPackDownloader.h"
+#include "modplatform/ftb/FtbPackDownloader.h"
#include "BaseInstanceProvider.h"
#include "net/NetJob.h"
#include "quazip.h"
diff --git a/api/logic/modplatform/PackHelpers.h b/api/logic/modplatform/ftb/PackHelpers.h
index f761ed6b..f761ed6b 100644
--- a/api/logic/modplatform/PackHelpers.h
+++ b/api/logic/modplatform/ftb/PackHelpers.h
diff --git a/application/FtbListModel.h b/application/FtbListModel.h
index e41e9b62..41fc3ccd 100644
--- a/application/FtbListModel.h
+++ b/application/FtbListModel.h
@@ -2,7 +2,7 @@
#include <QAbstractListModel>
#include <QSortFilterProxyModel>
-#include <modplatform/PackHelpers.h>
+#include <modplatform/ftb/PackHelpers.h>
class FtbFilterModel : public QSortFilterProxyModel
{
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index e690e1b7..542d1da6 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1368,7 +1368,8 @@ void MainWindow::addInstance(QString url)
const QUrl modpackUrl = newInstDlg.modpackUrl();
- if(newInstDlg.isFtbModpackRequested()) {
+ if(newInstDlg.isFtbModpackRequested())
+ {
instanceFromFtbPack(newInstDlg.getFtbPackDownloader(), newInstDlg.instName(), newInstDlg.instGroup(), newInstDlg.iconKey());
}
else if (modpackUrl.isValid())
diff --git a/application/MainWindow.h b/application/MainWindow.h
index 25dc36ed..e9897606 100644
--- a/application/MainWindow.h
+++ b/application/MainWindow.h
@@ -25,7 +25,7 @@
#include "minecraft/auth/MojangAccount.h"
#include "net/NetJob.h"
#include "updater/GoUpdate.h"
-#include <modplatform/FtbPackDownloader.h>
+#include <modplatform/ftb/FtbPackDownloader.h>
class LaunchController;
class NewsChecker;
diff --git a/application/dialogs/ChooseFtbPackDialog.h b/application/dialogs/ChooseFtbPackDialog.h
index 0b021138..f9f3dd08 100644
--- a/application/dialogs/ChooseFtbPackDialog.h
+++ b/application/dialogs/ChooseFtbPackDialog.h
@@ -2,9 +2,8 @@
#include <QDialog>
#include <net/NetJob.h>
-#include <modplatform/PackHelpers.h>
+#include <modplatform/ftb/PackHelpers.h>
#include "ui_ChooseFtbPackDialog.h"
-#include <modplatform/PackHelpers.h>
#include "FtbListModel.h"
namespace Ui {
diff --git a/application/dialogs/NewInstanceDialog.h b/application/dialogs/NewInstanceDialog.h
index 9b0f7f53..f1fe26f4 100644
--- a/application/dialogs/NewInstanceDialog.h
+++ b/application/dialogs/NewInstanceDialog.h
@@ -18,8 +18,8 @@
#include <QDialog>
#include "BaseVersion.h"
-#include "modplatform/FtbPackDownloader.h"
-#include "modplatform/PackHelpers.h"
+#include "modplatform/ftb/FtbPackDownloader.h"
+#include "modplatform/ftb/PackHelpers.h"
namespace Ui
{