NOISSUE move modpack platform related files to 'modplatform' subfolders

This commit is contained in:
Petr Mrázek
2018-03-16 23:33:58 +01:00
parent 303842a19e
commit 106155dd62
20 changed files with 30 additions and 28 deletions

View File

@ -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})

View File

@ -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();

View File

@ -2,7 +2,7 @@
#include "BaseInstanceProvider.h"
#include <QMap>
#include <modplatform/FtbPackDownloader.h>
#include <modplatform/ftb/FtbPackDownloader.h>
class QFileSystemWatcher;

View File

@ -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,

View File

@ -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"