diff options
author | Petr Mrázek <peterix@gmail.com> | 2018-03-16 23:33:58 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2018-03-16 23:33:58 +0100 |
commit | 106155dd627d8e333260e2460d4c9c558b49b21f (patch) | |
tree | d0678445ccb0881bb10e4bd1b13a3e03eda13d7b /api/logic | |
parent | 303842a19e4893e4ac6784d60aca990b4276d0ec (diff) | |
download | MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.gz MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.lz MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.tar.xz MultiMC-106155dd627d8e333260e2460d4c9c558b49b21f.zip |
NOISSUE move modpack platform related files to 'modplatform' subfolders
Diffstat (limited to 'api/logic')
-rw-r--r-- | api/logic/CMakeLists.txt | 34 | ||||
-rw-r--r-- | api/logic/FolderInstanceProvider.cpp | 2 | ||||
-rw-r--r-- | api/logic/FolderInstanceProvider.h | 2 | ||||
-rw-r--r-- | api/logic/InstanceImportTask.cpp | 4 | ||||
-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 |
15 files changed, 23 insertions, 21 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 |