diff options
Diffstat (limited to 'logic')
-rw-r--r-- | logic/BaseInstaller.cpp | 9 | ||||
-rw-r--r-- | logic/BaseInstance.cpp | 2 | ||||
-rw-r--r-- | logic/BaseInstance.h | 2 | ||||
-rw-r--r-- | logic/BaseVersionList.cpp (renamed from logic/lists/BaseVersionList.cpp) | 2 | ||||
-rw-r--r-- | logic/BaseVersionList.h (renamed from logic/lists/BaseVersionList.h) | 0 | ||||
-rw-r--r-- | logic/InstanceFactory.cpp | 27 | ||||
-rw-r--r-- | logic/InstanceLauncher.cpp | 2 | ||||
-rw-r--r-- | logic/InstanceList.cpp (renamed from logic/lists/InstanceList.cpp) | 6 | ||||
-rw-r--r-- | logic/InstanceList.h (renamed from logic/lists/InstanceList.h) | 0 | ||||
-rw-r--r-- | logic/LegacyUpdate.cpp | 20 | ||||
-rw-r--r-- | logic/LwjglVersionList.cpp (renamed from logic/lists/LwjglVersionList.cpp) | 0 | ||||
-rw-r--r-- | logic/LwjglVersionList.h (renamed from logic/lists/LwjglVersionList.h) | 0 | ||||
-rw-r--r-- | logic/OneSixFTBInstance.cpp | 6 | ||||
-rw-r--r-- | logic/OneSixInstance.cpp | 21 | ||||
-rw-r--r-- | logic/OneSixInstance.h | 4 | ||||
-rw-r--r-- | logic/OneSixInstance_p.h | 7 | ||||
-rw-r--r-- | logic/OneSixUpdate.cpp | 19 | ||||
-rw-r--r-- | logic/forge/ForgeInstaller.cpp | 4 | ||||
-rw-r--r-- | logic/forge/ForgeVersionList.h | 2 | ||||
-rw-r--r-- | logic/java/JavaChecker.cpp (renamed from logic/JavaChecker.cpp) | 0 | ||||
-rw-r--r-- | logic/java/JavaChecker.h (renamed from logic/JavaChecker.h) | 0 | ||||
-rw-r--r-- | logic/java/JavaCheckerJob.cpp (renamed from logic/JavaCheckerJob.cpp) | 0 | ||||
-rw-r--r-- | logic/java/JavaCheckerJob.h (renamed from logic/JavaCheckerJob.h) | 0 | ||||
-rw-r--r-- | logic/java/JavaUtils.cpp (renamed from logic/JavaUtils.cpp) | 8 | ||||
-rw-r--r-- | logic/java/JavaUtils.h (renamed from logic/JavaUtils.h) | 2 | ||||
-rw-r--r-- | logic/java/JavaVersionList.cpp (renamed from logic/lists/JavaVersionList.cpp) | 10 | ||||
-rw-r--r-- | logic/java/JavaVersionList.h (renamed from logic/lists/JavaVersionList.h) | 4 | ||||
-rw-r--r-- | logic/liteloader/LiteLoaderInstaller.cpp | 4 | ||||
-rw-r--r-- | logic/liteloader/LiteLoaderVersionList.h | 4 | ||||
-rw-r--r-- | logic/minecraft/MinecraftVersion.h (renamed from logic/MinecraftVersion.h) | 2 | ||||
-rw-r--r-- | logic/minecraft/MinecraftVersionList.cpp (renamed from logic/lists/MinecraftVersionList.cpp) | 0 | ||||
-rw-r--r-- | logic/minecraft/MinecraftVersionList.h (renamed from logic/lists/MinecraftVersionList.h) | 4 | ||||
-rw-r--r-- | logic/minecraft/OneSixLibrary.cpp (renamed from logic/OneSixLibrary.cpp) | 0 | ||||
-rw-r--r-- | logic/minecraft/OneSixLibrary.h (renamed from logic/OneSixLibrary.h) | 2 | ||||
-rw-r--r-- | logic/minecraft/OneSixRule.cpp (renamed from logic/OneSixRule.cpp) | 0 | ||||
-rw-r--r-- | logic/minecraft/OneSixRule.h (renamed from logic/OneSixRule.h) | 2 | ||||
-rw-r--r-- | logic/minecraft/OneSixVersionBuilder.cpp (renamed from logic/OneSixVersionBuilder.cpp) | 17 | ||||
-rw-r--r-- | logic/minecraft/OneSixVersionBuilder.h (renamed from logic/OneSixVersionBuilder.h) | 0 | ||||
-rw-r--r-- | logic/minecraft/OpSys.cpp (renamed from logic/OpSys.cpp) | 0 | ||||
-rw-r--r-- | logic/minecraft/OpSys.h (renamed from logic/OpSys.h) | 0 | ||||
-rw-r--r-- | logic/minecraft/VersionFile.cpp (renamed from logic/VersionFile.cpp) | 10 | ||||
-rw-r--r-- | logic/minecraft/VersionFile.h (renamed from logic/VersionFile.h) | 4 | ||||
-rw-r--r-- | logic/minecraft/VersionFinal.cpp (renamed from logic/VersionFinal.cpp) | 10 | ||||
-rw-r--r-- | logic/minecraft/VersionFinal.h (renamed from logic/VersionFinal.h) | 0 |
44 files changed, 106 insertions, 110 deletions
diff --git a/logic/BaseInstaller.cpp b/logic/BaseInstaller.cpp index 669fd0ac..5660eb07 100644 --- a/logic/BaseInstaller.cpp +++ b/logic/BaseInstaller.cpp @@ -13,15 +13,10 @@ * limitations under the License. */ -#include "BaseInstaller.h" - #include <QFile> -#include "VersionFinal.h" -#include "OneSixLibrary.h" -#include "OneSixInstance.h" - -#include "cmdutils.h" +#include "logic/BaseInstaller.h" +#include "logic/OneSixInstance.h" BaseInstaller::BaseInstaller() { diff --git a/logic/BaseInstance.cpp b/logic/BaseInstance.cpp index 5fa62593..59aada40 100644 --- a/logic/BaseInstance.cpp +++ b/logic/BaseInstance.cpp @@ -27,7 +27,7 @@ #include "pathutils.h" #include <cmdutils.h> -#include "lists/MinecraftVersionList.h" +#include "logic/minecraft/MinecraftVersionList.h" #include "logic/icons/IconList.h" BaseInstance::BaseInstance(BaseInstancePrivate *d_in, const QString &rootDir, diff --git a/logic/BaseInstance.h b/logic/BaseInstance.h index 41ceda39..d272dc71 100644 --- a/logic/BaseInstance.h +++ b/logic/BaseInstance.h @@ -22,7 +22,7 @@ #include <settingsobject.h> #include "inifile.h" -#include "lists/BaseVersionList.h" +#include "logic/BaseVersionList.h" #include "logic/auth/MojangAccount.h" class QDialog; diff --git a/logic/lists/BaseVersionList.cpp b/logic/BaseVersionList.cpp index 6e2c5282..b34750b5 100644 --- a/logic/lists/BaseVersionList.cpp +++ b/logic/BaseVersionList.cpp @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "logic/lists/BaseVersionList.h" +#include "logic/BaseVersionList.h" #include "logic/BaseVersion.h" BaseVersionList::BaseVersionList(QObject *parent) : QAbstractListModel(parent) diff --git a/logic/lists/BaseVersionList.h b/logic/BaseVersionList.h index 21b44e8d..21b44e8d 100644 --- a/logic/lists/BaseVersionList.h +++ b/logic/BaseVersionList.h diff --git a/logic/InstanceFactory.cpp b/logic/InstanceFactory.cpp index 955a3f5b..c0a392e0 100644 --- a/logic/InstanceFactory.cpp +++ b/logic/InstanceFactory.cpp @@ -13,27 +13,26 @@ * limitations under the License. */ -#include "InstanceFactory.h" - #include <QDir> #include <QFileInfo> - -#include "BaseInstance.h" -#include "LegacyInstance.h" -#include "LegacyFTBInstance.h" -#include "OneSixInstance.h" -#include "OneSixFTBInstance.h" -#include "OneSixInstance.h" -#include "BaseVersion.h" -#include "MinecraftVersion.h" - -#include "inifile.h" +#include <inifile.h> #include <inisettingsobject.h> #include <setting.h> -#include "pathutils.h" +#include <pathutils.h> #include "logger/QsLog.h" +#include "logic/InstanceFactory.h" + +#include "logic/BaseInstance.h" +#include "logic/LegacyInstance.h" +#include "logic/LegacyFTBInstance.h" +#include "logic/OneSixInstance.h" +#include "logic/OneSixFTBInstance.h" +#include "logic/OneSixInstance.h" +#include "logic/BaseVersion.h" +#include "logic/minecraft/MinecraftVersion.h" + InstanceFactory InstanceFactory::loader; InstanceFactory::InstanceFactory() : QObject(NULL) diff --git a/logic/InstanceLauncher.cpp b/logic/InstanceLauncher.cpp index c0079d80..9170c87f 100644 --- a/logic/InstanceLauncher.cpp +++ b/logic/InstanceLauncher.cpp @@ -22,7 +22,7 @@ #include "gui/dialogs/ProgressDialog.h" #include "logic/MinecraftProcess.h" -#include "logic/lists/InstanceList.h" +#include "logic/InstanceList.h" InstanceLauncher::InstanceLauncher(QString instId) : QObject(), instId(instId) { diff --git a/logic/lists/InstanceList.cpp b/logic/InstanceList.cpp index 8808d6b5..7b9c8b2b 100644 --- a/logic/lists/InstanceList.cpp +++ b/logic/InstanceList.cpp @@ -27,13 +27,13 @@ #include <pathutils.h> #include "MultiMC.h" -#include "logic/lists/InstanceList.h" +#include "logic/InstanceList.h" #include "logic/icons/IconList.h" -#include "logic/lists/MinecraftVersionList.h" +#include "logic/minecraft/MinecraftVersionList.h" #include "logic/BaseInstance.h" #include "logic/InstanceFactory.h" #include "logger/QsLog.h" -#include <gui/groupview/GroupView.h> +#include "gui/groupview/GroupView.h" const static int GROUP_FILE_FORMAT_VERSION = 1; diff --git a/logic/lists/InstanceList.h b/logic/InstanceList.h index f0bbb7ec..f0bbb7ec 100644 --- a/logic/lists/InstanceList.h +++ b/logic/InstanceList.h diff --git a/logic/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp index aea88c95..00ee795d 100644 --- a/logic/LegacyUpdate.cpp +++ b/logic/LegacyUpdate.cpp @@ -13,20 +13,24 @@ * limitations under the License. */ -#include "LegacyUpdate.h" -#include "lists/LwjglVersionList.h" -#include "lists/MinecraftVersionList.h" -#include "BaseInstance.h" -#include "LegacyInstance.h" -#include "MultiMC.h" -#include "ModList.h" +#include <QStringList> + #include <pathutils.h> #include <quazip.h> #include <quazipfile.h> #include <JlCompress.h> + +#include "logic/LegacyUpdate.h" +#include "logic/LwjglVersionList.h" +#include "logic/minecraft/MinecraftVersionList.h" +#include "logic/BaseInstance.h" +#include "logic/LegacyInstance.h" +#include "MultiMC.h" +#include "logic/ModList.h" + #include "logger/QsLog.h" #include "logic/net/URLConstants.h" -#include <QStringList> + LegacyUpdate::LegacyUpdate(BaseInstance *inst, QObject *parent) : Task(parent), m_inst(inst) { diff --git a/logic/lists/LwjglVersionList.cpp b/logic/LwjglVersionList.cpp index df46d7be..df46d7be 100644 --- a/logic/lists/LwjglVersionList.cpp +++ b/logic/LwjglVersionList.cpp diff --git a/logic/lists/LwjglVersionList.h b/logic/LwjglVersionList.h index fa57e8eb..fa57e8eb 100644 --- a/logic/lists/LwjglVersionList.h +++ b/logic/LwjglVersionList.h diff --git a/logic/OneSixFTBInstance.cpp b/logic/OneSixFTBInstance.cpp index 131dbde3..491b15ba 100644 --- a/logic/OneSixFTBInstance.cpp +++ b/logic/OneSixFTBInstance.cpp @@ -1,12 +1,12 @@ #include "OneSixFTBInstance.h" -#include "VersionFinal.h" -#include "OneSixLibrary.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixLibrary.h" +#include "logic/minecraft/OneSixVersionBuilder.h" #include "tasks/SequentialTask.h" #include "forge/ForgeInstaller.h" #include "forge/ForgeVersionList.h" #include "OneSixInstance_p.h" -#include "OneSixVersionBuilder.h" #include "MultiMC.h" #include "pathutils.h" diff --git a/logic/OneSixInstance.cpp b/logic/OneSixInstance.cpp index 67953f95..2c67f7a9 100644 --- a/logic/OneSixInstance.cpp +++ b/logic/OneSixInstance.cpp @@ -13,21 +13,22 @@ * limitations under the License. */ -#include "OneSixInstance.h" - #include <QIcon> - -#include "OneSixInstance_p.h" -#include "OneSixUpdate.h" -#include "VersionFinal.h" -#include "pathutils.h" +#include <pathutils.h> #include "logger/QsLog.h" -#include "assets/AssetsUtils.h" #include "MultiMC.h" +#include "MMCError.h" + +#include "logic/OneSixInstance.h" + +#include "logic/OneSixInstance_p.h" +#include "logic/OneSixUpdate.h" +#include "logic/minecraft/VersionFinal.h" + +#include "logic/assets/AssetsUtils.h" #include "icons/IconList.h" -#include "MinecraftProcess.h" +#include "logic/MinecraftProcess.h" #include "gui/dialogs/InstanceEditDialog.h" -#include <MMCError.h> OneSixInstance::OneSixInstance(const QString &rootDir, SettingsObject *settings, QObject *parent) diff --git a/logic/OneSixInstance.h b/logic/OneSixInstance.h index 80b197c4..00653def 100644 --- a/logic/OneSixInstance.h +++ b/logic/OneSixInstance.h @@ -17,8 +17,8 @@ #include "BaseInstance.h" -#include "VersionFinal.h" -#include "ModList.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/ModList.h" class OneSixInstance : public BaseInstance { diff --git a/logic/OneSixInstance_p.h b/logic/OneSixInstance_p.h index e75a8da3..90802c24 100644 --- a/logic/OneSixInstance_p.h +++ b/logic/OneSixInstance_p.h @@ -15,9 +15,10 @@ #pragma once -#include "BaseInstance_p.h" -#include "VersionFinal.h" -#include "ModList.h" +#include "logic/BaseInstance_p.h" + +class ModList; +class VersionFinal; class OneSixInstancePrivate : public BaseInstancePrivate { diff --git a/logic/OneSixUpdate.cpp b/logic/OneSixUpdate.cpp index 230ef9a9..66a699fe 100644 --- a/logic/OneSixUpdate.cpp +++ b/logic/OneSixUpdate.cpp @@ -22,18 +22,17 @@ #include <QFileInfo> #include <QTextStream> #include <QDataStream> +#include <pathutils.h> +#include <JlCompress.h> -#include "BaseInstance.h" -#include "lists/MinecraftVersionList.h" -#include "VersionFinal.h" -#include "OneSixLibrary.h" -#include "OneSixInstance.h" +#include "logic/BaseInstance.h" +#include "logic/minecraft/MinecraftVersionList.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixLibrary.h" +#include "logic/OneSixInstance.h" #include "logic/forge/ForgeMirrors.h" -#include "net/URLConstants.h" -#include "assets/AssetsUtils.h" - -#include "pathutils.h" -#include <JlCompress.h> +#include "logic/net/URLConstants.h" +#include "logic/assets/AssetsUtils.h" OneSixUpdate::OneSixUpdate(OneSixInstance *inst, QObject *parent) : Task(parent), m_inst(inst) diff --git a/logic/forge/ForgeInstaller.cpp b/logic/forge/ForgeInstaller.cpp index 3b13a7cd..0e7b26f7 100644 --- a/logic/forge/ForgeInstaller.cpp +++ b/logic/forge/ForgeInstaller.cpp @@ -14,8 +14,8 @@ */ #include "ForgeInstaller.h" -#include "logic/VersionFinal.h" -#include "logic/OneSixLibrary.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixLibrary.h" #include "logic/net/HttpMetaCache.h" #include "logic/tasks/Task.h" #include "logic/OneSixInstance.h" diff --git a/logic/forge/ForgeVersionList.h b/logic/forge/ForgeVersionList.h index 2c020b0f..477edb3d 100644 --- a/logic/forge/ForgeVersionList.h +++ b/logic/forge/ForgeVersionList.h @@ -20,7 +20,7 @@ #include <QUrl> #include <QNetworkReply> -#include "logic/lists/BaseVersionList.h" +#include "logic/BaseVersionList.h" #include "logic/tasks/Task.h" #include "logic/net/NetJob.h" #include "logic/forge/ForgeVersion.h" diff --git a/logic/JavaChecker.cpp b/logic/java/JavaChecker.cpp index b87ee3d5..b87ee3d5 100644 --- a/logic/JavaChecker.cpp +++ b/logic/java/JavaChecker.cpp diff --git a/logic/JavaChecker.h b/logic/java/JavaChecker.h index e19895f7..e19895f7 100644 --- a/logic/JavaChecker.h +++ b/logic/java/JavaChecker.h diff --git a/logic/JavaCheckerJob.cpp b/logic/java/JavaCheckerJob.cpp index b0aea758..b0aea758 100644 --- a/logic/JavaCheckerJob.cpp +++ b/logic/java/JavaCheckerJob.cpp diff --git a/logic/JavaCheckerJob.h b/logic/java/JavaCheckerJob.h index 132a92d4..132a92d4 100644 --- a/logic/JavaCheckerJob.h +++ b/logic/java/JavaCheckerJob.h diff --git a/logic/JavaUtils.cpp b/logic/java/JavaUtils.cpp index 3a3046bd..1be93a9b 100644 --- a/logic/JavaUtils.cpp +++ b/logic/java/JavaUtils.cpp @@ -16,7 +16,6 @@ #include <QStringList> #include <QString> #include <QDir> -#include <QMessageBox> #include <QStringList> #include <setting.h> @@ -24,11 +23,10 @@ #include "MultiMC.h" -#include "JavaUtils.h" #include "logger/QsLog.h" -#include "gui/dialogs/VersionSelectDialog.h" -#include "JavaCheckerJob.h" -#include "lists/JavaVersionList.h" +#include "logic/java/JavaUtils.h" +#include "logic/java/JavaCheckerJob.h" +#include "logic/java/JavaVersionList.h" JavaUtils::JavaUtils() { diff --git a/logic/JavaUtils.h b/logic/java/JavaUtils.h index 22a68ef3..af92100f 100644 --- a/logic/JavaUtils.h +++ b/logic/java/JavaUtils.h @@ -21,7 +21,7 @@ #include <osutils.h> #include "JavaCheckerJob.h" #include "JavaChecker.h" -#include "lists/JavaVersionList.h" +#include "JavaVersionList.h" #if WINDOWS #include <windows.h> diff --git a/logic/lists/JavaVersionList.cpp b/logic/java/JavaVersionList.cpp index 4fd0bc19..dcb6ced6 100644 --- a/logic/lists/JavaVersionList.cpp +++ b/logic/java/JavaVersionList.cpp @@ -13,16 +13,16 @@ * limitations under the License. */ -#include "JavaVersionList.h" -#include "MultiMC.h" - #include <QtNetwork> #include <QtXml> #include <QRegExp> +#include "MultiMC.h" #include "logger/QsLog.h" -#include "logic/JavaCheckerJob.h" -#include "logic/JavaUtils.h" + +#include "logic/java/JavaVersionList.h" +#include "logic/java/JavaCheckerJob.h" +#include "logic/java/JavaUtils.h" JavaVersionList::JavaVersionList(QObject *parent) : BaseVersionList(parent) { diff --git a/logic/lists/JavaVersionList.h b/logic/java/JavaVersionList.h index e6cc8e5f..a46f33a2 100644 --- a/logic/lists/JavaVersionList.h +++ b/logic/java/JavaVersionList.h @@ -18,9 +18,9 @@ #include <QObject> #include <QAbstractListModel> -#include "BaseVersionList.h" +#include "logic/BaseVersionList.h" #include "logic/tasks/Task.h" -#include "logic/JavaCheckerJob.h" +#include "logic/java/JavaCheckerJob.h" class JavaListLoadTask; diff --git a/logic/liteloader/LiteLoaderInstaller.cpp b/logic/liteloader/LiteLoaderInstaller.cpp index 1a94e644..0a16ac6d 100644 --- a/logic/liteloader/LiteLoaderInstaller.cpp +++ b/logic/liteloader/LiteLoaderInstaller.cpp @@ -20,8 +20,8 @@ #include "logger/QsLog.h" -#include "logic/VersionFinal.h" -#include "logic/OneSixLibrary.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixLibrary.h" #include "logic/OneSixInstance.h" #include "MultiMC.h" #include "logic/liteloader/LiteLoaderVersionList.h" diff --git a/logic/liteloader/LiteLoaderVersionList.h b/logic/liteloader/LiteLoaderVersionList.h index aa35f1ca..0aecc3e1 100644 --- a/logic/liteloader/LiteLoaderVersionList.h +++ b/logic/liteloader/LiteLoaderVersionList.h @@ -19,9 +19,9 @@ #include <QString> #include <QStringList> -#include "logic/lists/BaseVersionList.h" -#include "logic/tasks/Task.h" #include "logic/BaseVersion.h" +#include "logic/BaseVersionList.h" +#include "logic/tasks/Task.h" #include "logic/net/NetJob.h" class LLListLoadTask; diff --git a/logic/MinecraftVersion.h b/logic/minecraft/MinecraftVersion.h index 61f803b5..3be25912 100644 --- a/logic/MinecraftVersion.h +++ b/logic/minecraft/MinecraftVersion.h @@ -15,7 +15,7 @@ #pragma once -#include "BaseVersion.h" +#include "logic/BaseVersion.h" #include <QStringList> #include <QSet> diff --git a/logic/lists/MinecraftVersionList.cpp b/logic/minecraft/MinecraftVersionList.cpp index cdf5fa77..cdf5fa77 100644 --- a/logic/lists/MinecraftVersionList.cpp +++ b/logic/minecraft/MinecraftVersionList.cpp diff --git a/logic/lists/MinecraftVersionList.h b/logic/minecraft/MinecraftVersionList.h index 4698fd8f..18b9b21e 100644 --- a/logic/lists/MinecraftVersionList.h +++ b/logic/minecraft/MinecraftVersionList.h @@ -19,9 +19,9 @@ #include <QList> #include <QSet> -#include "BaseVersionList.h" +#include "logic/BaseVersionList.h" #include "logic/tasks/Task.h" -#include "logic/MinecraftVersion.h" +#include "logic/minecraft/MinecraftVersion.h" class MCVListLoadTask; class QNetworkReply; diff --git a/logic/OneSixLibrary.cpp b/logic/minecraft/OneSixLibrary.cpp index 45fa169e..45fa169e 100644 --- a/logic/OneSixLibrary.cpp +++ b/logic/minecraft/OneSixLibrary.cpp diff --git a/logic/OneSixLibrary.h b/logic/minecraft/OneSixLibrary.h index 1c7169ce..13df0606 100644 --- a/logic/OneSixLibrary.h +++ b/logic/minecraft/OneSixLibrary.h @@ -23,7 +23,7 @@ #include <memory> #include "logic/net/URLConstants.h" -#include "OpSys.h" +#include "logic/minecraft/OpSys.h" class Rule; diff --git a/logic/OneSixRule.cpp b/logic/minecraft/OneSixRule.cpp index d8d13b50..d8d13b50 100644 --- a/logic/OneSixRule.cpp +++ b/logic/minecraft/OneSixRule.cpp diff --git a/logic/OneSixRule.h b/logic/minecraft/OneSixRule.h index 426e2886..2c569b9f 100644 --- a/logic/OneSixRule.h +++ b/logic/minecraft/OneSixRule.h @@ -17,7 +17,7 @@ #include <QString> -#include "logic/OneSixLibrary.h" +#include "logic/minecraft/OneSixLibrary.h" enum RuleAction { diff --git a/logic/OneSixVersionBuilder.cpp b/logic/minecraft/OneSixVersionBuilder.cpp index 3fb96c5e..da8f956c 100644 --- a/logic/OneSixVersionBuilder.cpp +++ b/logic/minecraft/OneSixVersionBuilder.cpp @@ -13,8 +13,6 @@ * limitations under the License. */ -#include "OneSixVersionBuilder.h" - #include <QList> #include <QJsonObject> #include <QJsonArray> @@ -25,13 +23,16 @@ #include <QObject> #include <QDir> #include <QDebug> +#include <modutils.h> + +#include "logic/minecraft/OneSixVersionBuilder.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixRule.h" +#include "logic/minecraft/VersionFile.h" + +#include "logic/OneSixInstance.h" +#include "logic/MMCJson.h" -#include "VersionFinal.h" -#include "OneSixInstance.h" -#include "OneSixRule.h" -#include "VersionFile.h" -#include "MMCJson.h" -#include "modutils.h" #include "logger/QsLog.h" OneSixVersionBuilder::OneSixVersionBuilder() diff --git a/logic/OneSixVersionBuilder.h b/logic/minecraft/OneSixVersionBuilder.h index 6646584e..6646584e 100644 --- a/logic/OneSixVersionBuilder.h +++ b/logic/minecraft/OneSixVersionBuilder.h diff --git a/logic/OpSys.cpp b/logic/minecraft/OpSys.cpp index e001b7f3..e001b7f3 100644 --- a/logic/OpSys.cpp +++ b/logic/minecraft/OpSys.cpp diff --git a/logic/OpSys.h b/logic/minecraft/OpSys.h index 363c87d7..363c87d7 100644 --- a/logic/OpSys.h +++ b/logic/minecraft/OpSys.h diff --git a/logic/VersionFile.cpp b/logic/minecraft/VersionFile.cpp index 87936b6a..a011ce1a 100644 --- a/logic/VersionFile.cpp +++ b/logic/minecraft/VersionFile.cpp @@ -1,13 +1,13 @@ #include <QJsonArray> #include <QJsonDocument> - #include <modutils.h> #include "logger/QsLog.h" -#include "logic/VersionFile.h" -#include "logic/OneSixLibrary.h" -#include "logic/VersionFinal.h" -#include "MMCJson.h" + +#include "logic/minecraft/VersionFile.h" +#include "logic/minecraft/OneSixLibrary.h" +#include "logic/minecraft/VersionFinal.h" +#include "logic/MMCJson.h" using namespace MMCJson; diff --git a/logic/VersionFile.h b/logic/minecraft/VersionFile.h index ae0c58a0..8234445b 100644 --- a/logic/VersionFile.h +++ b/logic/minecraft/VersionFile.h @@ -3,8 +3,8 @@ #include <QString> #include <QStringList> #include <memory> -#include "logic/OpSys.h" -#include "logic/OneSixRule.h" +#include "logic/minecraft/OpSys.h" +#include "logic/minecraft/OneSixRule.h" #include "MMCError.h" class VersionFinal; diff --git a/logic/VersionFinal.cpp b/logic/minecraft/VersionFinal.cpp index b8690740..fbf6a160 100644 --- a/logic/VersionFinal.cpp +++ b/logic/minecraft/VersionFinal.cpp @@ -13,17 +13,15 @@ * limitations under the License. */ -#include "VersionFinal.h" - #include <QDebug> #include <QFile> #include <QDir> - -#include "OneSixVersionBuilder.h" -#include "OneSixInstance.h" -#include "VersionFilterData.h" #include <pathutils.h> +#include "logic/minecraft/VersionFinal.h" +#include "logic/minecraft/OneSixVersionBuilder.h" +#include "logic/OneSixInstance.h" + VersionFinal::VersionFinal(OneSixInstance *instance, QObject *parent) : QAbstractListModel(parent), m_instance(instance) { diff --git a/logic/VersionFinal.h b/logic/minecraft/VersionFinal.h index ceb90f57..ceb90f57 100644 --- a/logic/VersionFinal.h +++ b/logic/minecraft/VersionFinal.h |