diff options
author | Petr Mrázek <peterix@gmail.com> | 2013-08-17 13:40:51 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2013-08-17 13:40:51 +0200 |
commit | 253067c782955380bbf66ac0475dc954375b1ff4 (patch) | |
tree | ca97e231fd3a764256d95b5fc8d08fc25ff72161 | |
parent | 77e80665422c4e97e2286418ab55e20c4030023b (diff) | |
download | MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.gz MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.lz MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.tar.xz MultiMC-253067c782955380bbf66ac0475dc954375b1ff4.zip |
Move all the things (YES. Move them.)
Also, implemented some basic modlist logic, to be wired up.
-rw-r--r-- | CMakeLists.txt | 128 | ||||
-rw-r--r-- | backend/CMakeLists.txt | 120 | ||||
-rw-r--r-- | backend/LegacyInstance_p.h | 10 | ||||
-rw-r--r-- | depends/classparser/CMakeLists.txt | 41 | ||||
-rw-r--r-- | depends/classparser/include/classparser_config.h (renamed from backend/libmmc_config.h) | 11 | ||||
-rw-r--r-- | depends/classparser/include/javautils.h (renamed from java/javautils.h) | 1 | ||||
-rw-r--r-- | depends/classparser/src/annotations.cpp (renamed from java/annotations.cpp) | 0 | ||||
-rw-r--r-- | depends/classparser/src/annotations.h (renamed from java/annotations.h) | 0 | ||||
-rw-r--r-- | depends/classparser/src/classfile.h (renamed from java/classfile.h) | 0 | ||||
-rw-r--r-- | depends/classparser/src/constants.h (renamed from java/constants.h) | 0 | ||||
-rw-r--r-- | depends/classparser/src/errors.h (renamed from java/errors.h) | 0 | ||||
-rw-r--r-- | depends/classparser/src/javaendian.h (renamed from java/javaendian.h) | 0 | ||||
-rw-r--r-- | depends/classparser/src/javautils.cpp (renamed from java/javautils.cpp) | 0 | ||||
-rw-r--r-- | depends/classparser/src/membuffer.h (renamed from java/membuffer.h) | 0 | ||||
-rw-r--r-- | depends/groupview/CMakeLists.txt (renamed from libgroupview/CMakeLists.txt) | 2 | ||||
-rw-r--r-- | depends/groupview/include/categorizedsortfilterproxymodel.h (renamed from libgroupview/include/categorizedsortfilterproxymodel.h) | 2 | ||||
-rw-r--r-- | depends/groupview/include/categorizedview.h (renamed from libgroupview/include/categorizedview.h) | 2 | ||||
-rw-r--r-- | depends/groupview/include/categorydrawer.h (renamed from libgroupview/include/categorydrawer.h) | 2 | ||||
-rw-r--r-- | depends/groupview/include/groupview_config.h (renamed from libgroupview/include/libgroupview_config.h) | 0 | ||||
-rw-r--r-- | depends/groupview/src/categorizedsortfilterproxymodel.cpp (renamed from libgroupview/src/categorizedsortfilterproxymodel.cpp) | 0 | ||||
-rw-r--r-- | depends/groupview/src/categorizedsortfilterproxymodel_p.h (renamed from libgroupview/src/categorizedsortfilterproxymodel_p.h) | 0 | ||||
-rw-r--r-- | depends/groupview/src/categorizedview.cpp (renamed from libgroupview/src/categorizedview.cpp) | 0 | ||||
-rw-r--r-- | depends/groupview/src/categorizedview_p.h (renamed from libgroupview/src/categorizedview_p.h) | 0 | ||||
-rw-r--r-- | depends/groupview/src/categorydrawer.cpp (renamed from libgroupview/src/categorydrawer.cpp) | 0 | ||||
-rw-r--r-- | depends/launcher/CMakeLists.txt (renamed from launcher/CMakeLists.txt) | 2 | ||||
-rw-r--r-- | depends/launcher/MCFrame.java (renamed from launcher/MCFrame.java) | 0 | ||||
-rw-r--r-- | depends/launcher/MultiMCLauncher.java (renamed from launcher/MultiMCLauncher.java) | 0 | ||||
-rw-r--r-- | depends/launcher/UseJava.cmake (renamed from launcher/UseJava.cmake) | 0 | ||||
-rw-r--r-- | depends/launcher/UseJavaClassFilelist.cmake (renamed from launcher/UseJavaClassFilelist.cmake) | 0 | ||||
-rw-r--r-- | depends/launcher/UseJavaSymlinks.cmake (renamed from launcher/UseJavaSymlinks.cmake) | 0 | ||||
-rw-r--r-- | depends/launcher/net/minecraft/Launcher.java (renamed from launcher/net/minecraft/Launcher.java) | 0 | ||||
-rw-r--r-- | depends/launcher/org/simplericity/macify/eawt/Application.java (renamed from launcher/org/simplericity/macify/eawt/Application.java) | 0 | ||||
-rw-r--r-- | depends/launcher/org/simplericity/macify/eawt/ApplicationAdapter.java (renamed from launcher/org/simplericity/macify/eawt/ApplicationAdapter.java) | 0 | ||||
-rw-r--r-- | depends/launcher/org/simplericity/macify/eawt/ApplicationEvent.java (renamed from launcher/org/simplericity/macify/eawt/ApplicationEvent.java) | 0 | ||||
-rw-r--r-- | depends/launcher/org/simplericity/macify/eawt/ApplicationListener.java (renamed from launcher/org/simplericity/macify/eawt/ApplicationListener.java) | 0 | ||||
-rw-r--r-- | depends/launcher/org/simplericity/macify/eawt/DefaultApplication.java (renamed from launcher/org/simplericity/macify/eawt/DefaultApplication.java) | 0 | ||||
-rw-r--r-- | depends/patchlib/CMakeLists.txt (renamed from patchlib/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | depends/patchlib/LICENSE-bzip2 (renamed from patchlib/LICENSE-bzip2) | 0 | ||||
-rw-r--r-- | depends/patchlib/blocksort.c (renamed from patchlib/blocksort.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/bspatch.c (renamed from patchlib/bspatch.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/bspatch.h (renamed from patchlib/bspatch.h) | 0 | ||||
-rw-r--r-- | depends/patchlib/bzlib.c (renamed from patchlib/bzlib.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/bzlib.h (renamed from patchlib/bzlib.h) | 0 | ||||
-rw-r--r-- | depends/patchlib/bzlib_private.h (renamed from patchlib/bzlib_private.h) | 0 | ||||
-rw-r--r-- | depends/patchlib/compress.c (renamed from patchlib/compress.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/crctable.c (renamed from patchlib/crctable.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/decompress.c (renamed from patchlib/decompress.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/huffman.c (renamed from patchlib/huffman.c) | 0 | ||||
-rw-r--r-- | depends/patchlib/randtable.c (renamed from patchlib/randtable.c) | 0 | ||||
-rw-r--r-- | depends/quazip/CMakeLists.txt (renamed from quazip/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | depends/quazip/JlCompress.cpp (renamed from quazip/JlCompress.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/JlCompress.h (renamed from quazip/JlCompress.h) | 0 | ||||
-rw-r--r-- | depends/quazip/crypt.h (renamed from quazip/crypt.h) | 0 | ||||
-rw-r--r-- | depends/quazip/ioapi.h (renamed from quazip/ioapi.h) | 0 | ||||
-rw-r--r-- | depends/quazip/qioapi.cpp (renamed from quazip/qioapi.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quaadler32.cpp (renamed from quazip/quaadler32.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quaadler32.h (renamed from quazip/quaadler32.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quachecksum32.h (renamed from quazip/quachecksum32.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quacrc32.cpp (renamed from quazip/quacrc32.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quacrc32.h (renamed from quazip/quacrc32.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quagzipfile.cpp (renamed from quazip/quagzipfile.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quagzipfile.h (renamed from quazip/quagzipfile.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quaziodevice.cpp (renamed from quazip/quaziodevice.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quaziodevice.h (renamed from quazip/quaziodevice.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazip.cpp (renamed from quazip/quazip.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quazip.h (renamed from quazip/quazip.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazip_global.h (renamed from quazip/quazip_global.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipdir.cpp (renamed from quazip/quazipdir.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipdir.h (renamed from quazip/quazipdir.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipfile.cpp (renamed from quazip/quazipfile.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipfile.h (renamed from quazip/quazipfile.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipfileinfo.h (renamed from quazip/quazipfileinfo.h) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipnewinfo.cpp (renamed from quazip/quazipnewinfo.cpp) | 0 | ||||
-rw-r--r-- | depends/quazip/quazipnewinfo.h (renamed from quazip/quazipnewinfo.h) | 0 | ||||
-rw-r--r-- | depends/quazip/unzip.c (renamed from quazip/unzip.c) | 0 | ||||
-rw-r--r-- | depends/quazip/unzip.h (renamed from quazip/unzip.h) | 0 | ||||
-rw-r--r-- | depends/quazip/zip.c (renamed from quazip/zip.c) | 0 | ||||
-rw-r--r-- | depends/quazip/zip.h (renamed from quazip/zip.h) | 0 | ||||
-rw-r--r-- | depends/settings/CMakeLists.txt (renamed from libsettings/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | depends/settings/include/basicsettingsobject.h (renamed from libsettings/include/basicsettingsobject.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/inifile.h (renamed from libsettings/include/inifile.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/inisettingsobject.h (renamed from libsettings/include/inisettingsobject.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/keyring.h (renamed from libsettings/include/keyring.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/libsettings_config.h (renamed from libsettings/include/libsettings_config.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/overridesetting.h (renamed from libsettings/include/overridesetting.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/setting.h (renamed from libsettings/include/setting.h) | 0 | ||||
-rw-r--r-- | depends/settings/include/settingsobject.h (renamed from libsettings/include/settingsobject.h) | 0 | ||||
-rw-r--r-- | depends/settings/src/basicsettingsobject.cpp (renamed from libsettings/src/basicsettingsobject.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/inifile.cpp (renamed from libsettings/src/inifile.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/inisettingsobject.cpp (renamed from libsettings/src/inisettingsobject.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/keyring.cpp (renamed from libsettings/src/keyring.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/overridesetting.cpp (renamed from libsettings/src/overridesetting.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/setting.cpp (renamed from libsettings/src/setting.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/settingsobject.cpp (renamed from libsettings/src/settingsobject.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/stubkeyring.cpp (renamed from libsettings/src/stubkeyring.cpp) | 0 | ||||
-rw-r--r-- | depends/settings/src/stubkeyring.h (renamed from libsettings/src/stubkeyring.h) | 0 | ||||
-rw-r--r-- | depends/util/CMakeLists.txt (renamed from libutil/CMakeLists.txt) | 0 | ||||
-rw-r--r-- | depends/util/include/apputils.h (renamed from libutil/include/apputils.h) | 0 | ||||
-rw-r--r-- | depends/util/include/cmdutils.h (renamed from libutil/include/cmdutils.h) | 0 | ||||
-rw-r--r-- | depends/util/include/libutil_config.h (renamed from libutil/include/libutil_config.h) | 0 | ||||
-rw-r--r-- | depends/util/include/osutils.h (renamed from libutil/include/osutils.h) | 0 | ||||
-rw-r--r-- | depends/util/include/pathutils.h (renamed from libutil/include/pathutils.h) | 0 | ||||
-rw-r--r-- | depends/util/include/siglist.h (renamed from libutil/include/siglist.h) | 0 | ||||
-rw-r--r-- | depends/util/include/siglist_impl.h (renamed from libutil/include/siglist_impl.h) | 0 | ||||
-rw-r--r-- | depends/util/include/userutils.h (renamed from libutil/include/userutils.h) | 0 | ||||
-rw-r--r-- | depends/util/src/cmdutils.cpp (renamed from libutil/src/cmdutils.cpp) | 0 | ||||
-rw-r--r-- | depends/util/src/osutils.cpp (renamed from libutil/src/osutils.cpp) | 0 | ||||
-rw-r--r-- | depends/util/src/pathutils.cpp (renamed from libutil/src/pathutils.cpp) | 0 | ||||
-rw-r--r-- | depends/util/src/userutils.cpp (renamed from libutil/src/userutils.cpp) | 0 | ||||
-rw-r--r-- | gui/IconPickerDialog.cpp | 2 | ||||
-rw-r--r-- | gui/LegacyModEditDialog.cpp (renamed from gui/legacymodeditdialog.cpp) | 9 | ||||
-rw-r--r-- | gui/LegacyModEditDialog.h (renamed from gui/legacymodeditdialog.h) | 11 | ||||
-rw-r--r-- | gui/LegacyModEditDialog.ui (renamed from gui/legacymodeditdialog.ui) | 2 | ||||
-rw-r--r-- | gui/consolewindow.h | 2 | ||||
-rw-r--r-- | gui/instancemodel.cpp | 4 | ||||
-rw-r--r-- | gui/instancemodel.h | 2 | ||||
-rw-r--r-- | gui/lwjglselectdialog.cpp | 2 | ||||
-rw-r--r-- | gui/mainwindow.cpp | 31 | ||||
-rw-r--r-- | gui/mainwindow.h | 6 | ||||
-rw-r--r-- | gui/modeditdialog.cpp | 2 | ||||
-rw-r--r-- | gui/modeditdialog.h | 2 | ||||
-rw-r--r-- | gui/modeditdialog.ui | 2 | ||||
-rw-r--r-- | gui/newinstancedialog.cpp | 12 | ||||
-rw-r--r-- | gui/newinstancedialog.h | 2 | ||||
-rw-r--r-- | gui/taskdialog.cpp | 2 | ||||
-rw-r--r-- | gui/versionselectdialog.cpp | 6 | ||||
-rw-r--r-- | gui/versionselectdialog.h | 2 | ||||
-rw-r--r-- | java/test.cpp | 35 | ||||
-rw-r--r-- | logic/BaseInstance.cpp (renamed from backend/BaseInstance.cpp) | 2 | ||||
-rw-r--r-- | logic/BaseInstance.h (renamed from backend/BaseInstance.h) | 8 | ||||
-rw-r--r-- | logic/BaseInstance_p.h (renamed from backend/BaseInstance_p.h) | 0 | ||||
-rw-r--r-- | logic/BaseUpdate.cpp (renamed from backend/BaseUpdate.cpp) | 0 | ||||
-rw-r--r-- | logic/BaseUpdate.h (renamed from backend/BaseUpdate.h) | 3 | ||||
-rw-r--r-- | logic/CMakeLists.txt | 24 | ||||
-rw-r--r-- | logic/IconListModel.cpp (renamed from backend/IconListModel.cpp) | 0 | ||||
-rw-r--r-- | logic/IconListModel.h (renamed from backend/IconListModel.h) | 0 | ||||
-rw-r--r-- | logic/InstanceFactory.cpp (renamed from backend/InstanceFactory.cpp) | 0 | ||||
-rw-r--r-- | logic/InstanceFactory.h (renamed from backend/InstanceFactory.h) | 3 | ||||
-rw-r--r-- | logic/InstanceVersion.h (renamed from backend/InstanceVersion.h) | 3 | ||||
-rw-r--r-- | logic/LegacyForge.cpp (renamed from backend/LegacyForge.cpp) | 0 | ||||
-rw-r--r-- | logic/LegacyForge.h (renamed from backend/LegacyForge.h) | 0 | ||||
-rw-r--r-- | logic/LegacyInstance.cpp (renamed from backend/LegacyInstance.cpp) | 45 | ||||
-rw-r--r-- | logic/LegacyInstance.h (renamed from backend/LegacyInstance.h) | 12 | ||||
-rw-r--r-- | logic/LegacyInstance_p.h | 15 | ||||
-rw-r--r-- | logic/LegacyUpdate.cpp (renamed from backend/LegacyUpdate.cpp) | 0 | ||||
-rw-r--r-- | logic/LegacyUpdate.h (renamed from backend/LegacyUpdate.h) | 3 | ||||
-rw-r--r-- | logic/MinecraftProcess.cpp (renamed from backend/MinecraftProcess.cpp) | 0 | ||||
-rw-r--r-- | logic/MinecraftProcess.h (renamed from backend/MinecraftProcess.h) | 6 | ||||
-rw-r--r-- | logic/MinecraftVersion.h (renamed from backend/MinecraftVersion.h) | 4 | ||||
-rw-r--r-- | logic/Mod.cpp (renamed from backend/Mod.cpp) | 0 | ||||
-rw-r--r-- | logic/Mod.h (renamed from backend/Mod.h) | 4 | ||||
-rw-r--r-- | logic/ModList.cpp (renamed from backend/ModList.cpp) | 58 | ||||
-rw-r--r-- | logic/ModList.h (renamed from backend/ModList.h) | 48 | ||||
-rw-r--r-- | logic/NostalgiaInstance.cpp (renamed from backend/NostalgiaInstance.cpp) | 0 | ||||
-rw-r--r-- | logic/NostalgiaInstance.h (renamed from backend/NostalgiaInstance.h) | 2 | ||||
-rw-r--r-- | logic/OneSixAssets.cpp (renamed from backend/OneSixAssets.cpp) | 0 | ||||
-rw-r--r-- | logic/OneSixAssets.h (renamed from backend/OneSixAssets.h) | 0 | ||||
-rw-r--r-- | logic/OneSixInstance.cpp (renamed from backend/OneSixInstance.cpp) | 7 | ||||
-rw-r--r-- | logic/OneSixInstance.h (renamed from backend/OneSixInstance.h) | 4 | ||||
-rw-r--r-- | logic/OneSixInstance_p.h (renamed from backend/OneSixInstance_p.h) | 0 | ||||
-rw-r--r-- | logic/OneSixUpdate.cpp (renamed from backend/OneSixUpdate.cpp) | 0 | ||||
-rw-r--r-- | logic/OneSixUpdate.h (renamed from backend/OneSixUpdate.h) | 3 | ||||
-rw-r--r-- | logic/OneSixVersion.cpp (renamed from backend/OneSixVersion.cpp) | 0 | ||||
-rw-r--r-- | logic/OneSixVersion.h (renamed from backend/OneSixVersion.h) | 0 | ||||
-rw-r--r-- | logic/VersionFactory.cpp (renamed from backend/VersionFactory.cpp) | 0 | ||||
-rw-r--r-- | logic/VersionFactory.h (renamed from backend/VersionFactory.h) | 0 | ||||
-rw-r--r-- | logic/lists/InstVersionList.cpp (renamed from backend/lists/InstVersionList.cpp) | 4 | ||||
-rw-r--r-- | logic/lists/InstVersionList.h (renamed from backend/lists/InstVersionList.h) | 5 | ||||
-rw-r--r-- | logic/lists/InstanceList.cpp (renamed from backend/lists/InstanceList.cpp) | 6 | ||||
-rw-r--r-- | logic/lists/InstanceList.h (renamed from backend/lists/InstanceList.h) | 5 | ||||
-rw-r--r-- | logic/lists/LwjglVersionList.cpp (renamed from backend/lists/LwjglVersionList.cpp) | 2 | ||||
-rw-r--r-- | logic/lists/LwjglVersionList.h (renamed from backend/lists/LwjglVersionList.h) | 6 | ||||
-rw-r--r-- | logic/lists/MinecraftVersionList.cpp (renamed from backend/lists/MinecraftVersionList.cpp) | 2 | ||||
-rw-r--r-- | logic/lists/MinecraftVersionList.h (renamed from backend/lists/MinecraftVersionList.h) | 7 | ||||
-rw-r--r-- | logic/net/DownloadJob.cpp (renamed from backend/net/DownloadJob.cpp) | 0 | ||||
-rw-r--r-- | logic/net/DownloadJob.h (renamed from backend/net/DownloadJob.h) | 0 | ||||
-rw-r--r-- | logic/net/JobQueue.h (renamed from backend/net/JobQueue.h) | 0 | ||||
-rw-r--r-- | logic/net/NetWorker.cpp (renamed from backend/net/NetWorker.cpp) | 0 | ||||
-rw-r--r-- | logic/net/NetWorker.h (renamed from backend/net/NetWorker.h) | 0 | ||||
-rw-r--r-- | logic/tasks/LoginTask.cpp (renamed from backend/tasks/LoginTask.cpp) | 2 | ||||
-rw-r--r-- | logic/tasks/LoginTask.h (renamed from backend/tasks/LoginTask.h) | 3 | ||||
-rw-r--r-- | logic/tasks/Task.cpp (renamed from backend/tasks/Task.cpp) | 0 | ||||
-rw-r--r-- | logic/tasks/Task.h (renamed from backend/tasks/Task.h) | 4 | ||||
-rw-r--r-- | main.cpp | 6 |
184 files changed, 416 insertions, 347 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index d907e152..84d8a6f7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -43,33 +43,28 @@ find_package(ZLIB REQUIRED) ######## Included Libs ######## # Add quazip -add_subdirectory(quazip) -include_directories(quazip ${ZLIB_INCLUDE_DIRS}) +add_subdirectory(depends/quazip) +include_directories(depends/quazip ${ZLIB_INCLUDE_DIRS}) # Add bspatch -add_subdirectory(patchlib) -include_directories(patchlib) +add_subdirectory(depends/patchlib) +include_directories(depends/patchlib) # Add the java launcher -add_subdirectory(launcher) - +add_subdirectory(depends/launcher) ######## MultiMC Libs ######## # Add the util library. -add_subdirectory(libutil) +add_subdirectory(depends/util) include_directories(${LIBUTIL_INCLUDE_DIR}) # Add the settings library. -add_subdirectory(libsettings) +add_subdirectory(depends/settings) include_directories(${LIBSETTINGS_INCLUDE_DIR}) -# Add the instance library. -add_subdirectory(backend) -include_directories(${LIBMULTIMC_INCLUDE_DIR}) - # Add the group view library. -add_subdirectory(libgroupview) +add_subdirectory(depends/groupview) include_directories(${LIBGROUPVIEW_INCLUDE_DIR}) @@ -164,7 +159,6 @@ AppSettings.h gui/mainwindow.h gui/modeditdialog.h -gui/legacymodeditdialog.h gui/settingsdialog.h gui/newinstancedialog.h gui/logindialog.h @@ -178,14 +172,51 @@ gui/versionselectdialog.h gui/lwjglselectdialog.h gui/instancesettings.h gui/IconPickerDialog.h - -java/annotations.h -java/classfile.h -java/constants.h -java/javaendian.h -java/errors.h -java/javautils.h -java/membuffer.h +gui/LegacyModEditDialog.h + +# Base classes and infrastructure +logic/InstanceVersion.h +logic/MinecraftVersion.h +logic/InstanceFactory.h +logic/BaseUpdate.h +logic/BaseInstance.h +logic/BaseInstance_p.h +logic/MinecraftProcess.h +logic/Mod.h +logic/ModList.h + +# network stuffs +logic/net/DownloadJob.h +logic/net/JobQueue.h +logic/net/NetWorker.h + +# legacy instances +logic/LegacyInstance.h +logic/LegacyInstance_p.h +logic/LegacyUpdate.h +logic/LegacyForge.h + +# 1.6 instances +logic/OneSixAssets.h +logic/OneSixInstance.h +logic/OneSixInstance_p.h +logic/OneSixUpdate.h +logic/OneSixVersion.h +logic/VersionFactory.h + +# Nostalgia +logic/NostalgiaInstance.h + +# Lists +logic/lists/InstanceList.h +logic/lists/InstVersionList.h +logic/lists/MinecraftVersionList.h +logic/lists/LwjglVersionList.h +logic/IconListModel.h + +# Tasks +logic/tasks/Task.h +logic/tasks/LoginTask.h ) @@ -197,7 +228,6 @@ AppSettings.cpp gui/mainwindow.cpp gui/modeditdialog.cpp -gui/legacymodeditdialog.cpp gui/settingsdialog.cpp gui/newinstancedialog.cpp gui/logindialog.cpp @@ -211,9 +241,45 @@ gui/versionselectdialog.cpp gui/lwjglselectdialog.cpp gui/instancesettings.cpp gui/IconPickerDialog.cpp - -java/javautils.cpp -java/annotations.cpp +gui/LegacyModEditDialog.cpp + +# Base classes and infrastructure +logic/InstanceFactory.cpp +logic/BaseUpdate.cpp +logic/BaseInstance.cpp +logic/MinecraftProcess.cpp +logic/Mod.cpp +logic/ModList.cpp + +# network stuffs - to be moved into a depend lib ~_~ +logic/net/NetWorker.cpp +logic/net/DownloadJob.cpp + +# legacy instances +logic/LegacyInstance.cpp +logic/LegacyUpdate.cpp +logic/LegacyForge.cpp + +# 1.6 instances +logic/OneSixAssets.cpp +logic/OneSixInstance.cpp +logic/OneSixVersion.cpp +logic/OneSixUpdate.cpp +logic/VersionFactory.cpp + +# Nostalgia +logic/NostalgiaInstance.cpp + +# Lists +logic/lists/InstanceList.cpp +logic/lists/InstVersionList.cpp +logic/lists/MinecraftVersionList.cpp +logic/lists/LwjglVersionList.cpp +logic/IconListModel.cpp + +# Tasks +logic/tasks/Task.cpp +logic/tasks/LoginTask.cpp ) @@ -221,7 +287,6 @@ java/annotations.cpp SET(MULTIMC_UIS gui/mainwindow.ui gui/modeditdialog.ui -gui/legacymodeditdialog.ui gui/settingsdialog.ui gui/newinstancedialog.ui gui/logindialog.ui @@ -233,6 +298,7 @@ gui/versionselectdialog.ui gui/lwjglselectdialog.ui gui/instancesettings.ui gui/IconPickerDialog.ui +gui/LegacyModEditDialog.ui ) @@ -270,11 +336,9 @@ ADD_EXECUTABLE(MultiMC MACOSX_BUNDLE WIN32 ${MULTIMC_SOURCES} ${MULTIMC_HEADERS} ${MULTIMC_UI} ${MULTIMC_QRC} ${MULTIMC_RCS}) # Link -QT5_USE_MODULES(MultiMC Widgets Network WebKitWidgets) -TARGET_LINK_LIBRARIES(MultiMC quazip patchlib -libUtil libSettings backend libGroupView -${MultiMC_LINK_ADDITIONAL_LIBS}) -ADD_DEPENDENCIES(MultiMC MultiMCLauncher libUtil libSettings backend libGroupView) +QT5_USE_MODULES(MultiMC Widgets Network WebKitWidgets Xml) +TARGET_LINK_LIBRARIES(MultiMC quazip patchlib libUtil libSettings libGroupView ${MultiMC_LINK_ADDITIONAL_LIBS}) +ADD_DEPENDENCIES(MultiMC MultiMCLauncher libUtil libSettings libGroupView) option(BUILD_KEYRING_TEST "Build the simple keyring test binary" OFF) diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt deleted file mode 100644 index 7a92d5cf..00000000 --- a/backend/CMakeLists.txt +++ /dev/null @@ -1,120 +0,0 @@ -project(libMultiMC) - -set(CMAKE_AUTOMOC ON) - -# Find Qt -find_package(Qt5Core REQUIRED) -find_package(Qt5Network REQUIRED) -find_package(Qt5Xml REQUIRED) - -# Include Qt headers. -include_directories(${Qt5Base_INCLUDE_DIRS}) -include_directories(${Qt5Network_INCLUDE_DIRS}) - -# Include utility library. -include_directories(${CMAKE_SOURCE_DIR}/libutil/include) - -# Include settings library. -include_directories(${CMAKE_SOURCE_DIR}/libsettings/include) - -SET(LIBINST_HEADERS -libmmc_config.h - -# Base classes and infrastructure -InstanceVersion.h -MinecraftVersion.h -InstanceFactory.h -BaseUpdate.h -BaseInstance.h -BaseInstance_p.h -MinecraftProcess.h -Mod.h -ModList.h - -# network stuffs -net/DownloadJob.h -net/JobQueue.h -net/NetWorker.h - -# legacy instances -LegacyInstance.h -LegacyInstance_p.h -LegacyUpdate.h -LegacyForge.h - -# 1.6 instances -OneSixAssets.h -OneSixInstance.h -OneSixInstance_p.h -OneSixUpdate.h -OneSixVersion.h -VersionFactory.h - -# Nostalgia -NostalgiaInstance.h - -# Lists -lists/InstanceList.h -lists/InstVersionList.h -lists/MinecraftVersionList.h -lists/LwjglVersionList.h -IconListModel.h - -# Tasks -tasks/Task.h -tasks/LoginTask.h -) - -SET(LIBINST_SOURCES -# Base classes and infrastructure -InstanceFactory.cpp -BaseUpdate.cpp -BaseInstance.cpp -MinecraftProcess.cpp -Mod.cpp -ModList.cpp - -# network stuffs -net/NetWorker.cpp -net/DownloadJob.cpp - -# legacy instances -LegacyInstance.cpp -LegacyUpdate.cpp -LegacyForge.cpp - -# 1.6 instances -OneSixAssets.cpp -OneSixInstance.cpp -OneSixVersion.cpp -OneSixUpdate.cpp -VersionFactory.cpp - -# Nostalgia -NostalgiaInstance.cpp - -# Lists -lists/InstanceList.cpp -lists/InstVersionList.cpp -lists/MinecraftVersionList.cpp -lists/LwjglVersionList.cpp -IconListModel.cpp - -# Tasks -tasks/Task.cpp -tasks/LoginTask.cpp -) - -# Set the include dir path. -SET(LIBMULTIMC_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}" PARENT_SCOPE) - -# Include self. -include_directories(${CMAKE_CURRENT_SOURCE_DIR}) -include_directories(${CMAKE_BINARY_DIR}/include) - -add_definitions(-DLIBMULTIMC_LIBRARY) - -add_library(backend SHARED ${LIBINST_SOURCES} ${LIBINST_HEADERS}) -qt5_use_modules(backend Core Network Xml) -target_link_libraries(backend libUtil libSettings quazip) - diff --git a/backend/LegacyInstance_p.h b/backend/LegacyInstance_p.h deleted file mode 100644 index ac367e20..00000000 --- a/backend/LegacyInstance_p.h +++ /dev/null @@ -1,10 +0,0 @@ -#pragma once -#include <QString> -#include <settingsobject.h> -#include "BaseInstance_p.h" - -class BaseInstance; - -struct LegacyInstancePrivate: public BaseInstancePrivate -{ -};
\ No newline at end of file diff --git a/depends/classparser/CMakeLists.txt b/depends/classparser/CMakeLists.txt new file mode 100644 index 00000000..5a48e002 --- /dev/null +++ b/depends/classparser/CMakeLists.txt @@ -0,0 +1,41 @@ +project(classparser) + +set(CMAKE_AUTOMOC ON) + +# Find Qt +find_package(Qt5Core REQUIRED) + +# Include Qt headers. +include_directories(${Qt5Base_INCLUDE_DIRS}) + +SET(CLASSPARSER_HEADERS +include/classparser_config.h + +# Public headers +include/javautils.h + +# Private headers +src/annotations.h +src/classfile.h +src/constants.h +src/errors.h +src/javaendian.h +src/membuffer.h +) + +SET(CLASSPARSER_SOURCES +src/javautils.cpp +src/annotations.cpp +) + +# Set the include dir path. +SET(LIBGROUPVIEW_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include" PARENT_SCOPE) + +# Include self. +include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include) +include_directories(${CMAKE_BINARY_DIR}/include) + +add_definitions(-DCLASSPARSER_LIBRARY) + +add_library(classparser SHARED ${CLASSPARSER_SOURCES} ${CLASSPARSER_HEADERS}) +qt5_use_modules(classparser Core) diff --git a/backend/libmmc_config.h b/depends/classparser/include/classparser_config.h index 6d967f5f..fe6a2ab9 100644 --- a/backend/libmmc_config.h +++ b/depends/classparser/include/classparser_config.h @@ -3,7 +3,7 @@ * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software @@ -13,12 +13,11 @@ * limitations under the License. */ -#pragma once - #include <QtCore/QtGlobal> -#ifdef LIBMULTIMC_LIBRARY -# define LIBMULTIMC_EXPORT Q_DECL_EXPORT +#ifdef CLASSPARSER_LIBRARY +# define CLASSPARSER_EXPORT Q_DECL_EXPORT #else -# define LIBMULTIMC_EXPORT Q_DECL_IMPORT +# define CLASSPARSER_EXPORT Q_DECL_IMPORT #endif + diff --git a/java/javautils.h b/depends/classparser/include/javautils.h index 883eff1d..63e5ec26 100644 --- a/java/javautils.h +++ b/depends/classparser/include/javautils.h @@ -16,6 +16,7 @@ */ #pragma once #include <QString> +#include "classparser_config.h" #define MCVer_Unknown "Unknown" diff --git a/java/annotations.cpp b/depends/classparser/src/annotations.cpp index fc0c98fa..fc0c98fa 100644 --- a/java/annotations.cpp +++ b/depends/classparser/src/annotations.cpp diff --git a/java/annotations.h b/depends/classparser/src/annotations.h index b115dc0b..b115dc0b 100644 --- a/java/annotations.h +++ b/depends/classparser/src/annotations.h diff --git a/java/classfile.h b/depends/classparser/src/classfile.h index 33207e99..33207e99 100644 --- a/java/classfile.h +++ b/depends/classparser/src/classfile.h diff --git a/java/constants.h b/depends/classparser/src/constants.h index 61aa5687..61aa5687 100644 --- a/java/constants.h +++ b/depends/classparser/src/constants.h diff --git a/java/errors.h b/depends/classparser/src/errors.h index c02b07c8..c02b07c8 100644 --- a/java/errors.h +++ b/depends/classparser/src/errors.h diff --git a/java/javaendian.h b/depends/classparser/src/javaendian.h index fa6207fe..fa6207fe 100644 --- a/java/javaendian.h +++ b/depends/classparser/src/javaendian.h diff --git a/java/javautils.cpp b/depends/classparser/src/javautils.cpp index 4a359031..4a359031 100644 --- a/java/javautils.cpp +++ b/depends/classparser/src/javautils.cpp diff --git a/java/membuffer.h b/depends/classparser/src/membuffer.h index 2ea3a69b..2ea3a69b 100644 --- a/java/membuffer.h +++ b/depends/classparser/src/membuffer.h diff --git a/libgroupview/CMakeLists.txt b/depends/groupview/CMakeLists.txt index d60d914a..3fa2b044 100644 --- a/libgroupview/CMakeLists.txt +++ b/depends/groupview/CMakeLists.txt @@ -10,7 +10,7 @@ find_package(Qt5Widgets REQUIRED) include_directories(${Qt5Base_INCLUDE_DIRS}) SET(LIBGROUPVIEW_HEADERS -include/libgroupview_config.h +include/groupview_config.h # Public headers include/categorizedsortfilterproxymodel.h diff --git a/libgroupview/include/categorizedsortfilterproxymodel.h b/depends/groupview/include/categorizedsortfilterproxymodel.h index 1ef39fc2..d90fb254 100644 --- a/libgroupview/include/categorizedsortfilterproxymodel.h +++ b/depends/groupview/include/categorizedsortfilterproxymodel.h @@ -24,7 +24,7 @@ #include <QSortFilterProxyModel> -#include <libgroupview_config.h> +#include <groupview_config.h> class QItemSelection; diff --git a/libgroupview/include/categorizedview.h b/depends/groupview/include/categorizedview.h index 243ccf15..81b1dbb1 100644 --- a/libgroupview/include/categorizedview.h +++ b/depends/groupview/include/categorizedview.h @@ -23,7 +23,7 @@ #include <QListView> -#include <libgroupview_config.h> +#include <groupview_config.h> class KCategoryDrawer; diff --git a/libgroupview/include/categorydrawer.h b/depends/groupview/include/categorydrawer.h index aa561f0d..f37422ec 100644 --- a/libgroupview/include/categorydrawer.h +++ b/depends/groupview/include/categorydrawer.h @@ -21,7 +21,7 @@ #ifndef KCATEGORYDRAWER_H #define KCATEGORYDRAWER_H -#include <libgroupview_config.h> +#include <groupview_config.h> #include <QtCore/QObject> #include <QtGui/QMouseEvent> diff --git a/libgroupview/include/libgroupview_config.h b/depends/groupview/include/groupview_config.h index 86bed139..86bed139 100644 --- a/libgroupview/include/libgroupview_config.h +++ b/depends/groupview/include/groupview_config.h diff --git a/libgroupview/src/categorizedsortfilterproxymodel.cpp b/depends/groupview/src/categorizedsortfilterproxymodel.cpp index 09da9dd3..09da9dd3 100644 --- a/libgroupview/src/categorizedsortfilterproxymodel.cpp +++ b/depends/groupview/src/categorizedsortfilterproxymodel.cpp diff --git a/libgroupview/src/categorizedsortfilterproxymodel_p.h b/depends/groupview/src/categorizedsortfilterproxymodel_p.h index d7e7c9a0..d7e7c9a0 100644 --- a/libgroupview/src/categorizedsortfilterproxymodel_p.h +++ b/depends/groupview/src/categorizedsortfilterproxymodel_p.h diff --git a/libgroupview/src/categorizedview.cpp b/depends/groupview/src/categorizedview.cpp index f4449949..f4449949 100644 --- a/libgroupview/src/categorizedview.cpp +++ b/depends/groupview/src/categorizedview.cpp diff --git a/libgroupview/src/categorizedview_p.h b/depends/groupview/src/categorizedview_p.h index 13809312..13809312 100644 --- a/libgroupview/src/categorizedview_p.h +++ b/depends/groupview/src/categorizedview_p.h diff --git a/libgroupview/src/categorydrawer.cpp b/depends/groupview/src/categorydrawer.cpp index 04903206..04903206 100644 --- a/libgroupview/src/categorydrawer.cpp +++ b/depends/groupview/src/categorydrawer.cpp diff --git a/launcher/CMakeLists.txt b/depends/launcher/CMakeLists.txt index 7f189458..e5402ce7 100644 --- a/launcher/CMakeLists.txt +++ b/depends/launcher/CMakeLists.txt @@ -7,7 +7,7 @@ find_package(Java 1.6 REQUIRED COMPONENTS Development) include(UseJava) set(CMAKE_JAVA_JAR_ENTRY_POINT MultiMCLauncher) set(CMAKE_JAVA_COMPILE_FLAGS -target 1.6 -source 1.6 -Xlint:deprecation -Xlint:unchecked) -set(CMAKE_JAVA_TARGET_OUTPUT_DIR "${PROJECT_SOURCE_DIR}/../resources") +set(CMAKE_JAVA_TARGET_OUTPUT_DIR "${PROJECT_SOURCE_DIR}/../../resources") set(SRC MultiMCLauncher.java diff --git a/launcher/MCFrame.java b/depends/launcher/MCFrame.java index d6ebb240..d6ebb240 100644 --- a/launcher/MCFrame.java +++ b/depends/launcher/MCFrame.java diff --git a/launcher/MultiMCLauncher.java b/depends/launcher/MultiMCLauncher.java index 09a019ce..09a019ce 100644 --- a/launcher/MultiMCLauncher.java +++ b/depends/launcher/MultiMCLauncher.java diff --git a/launcher/UseJava.cmake b/depends/launcher/UseJava.cmake index 1a5ef107..1a5ef107 100644 --- a/launcher/UseJava.cmake +++ b/depends/launcher/UseJava.cmake diff --git a/launcher/UseJavaClassFilelist.cmake b/depends/launcher/UseJavaClassFilelist.cmake index c842bf71..c842bf71 100644 --- a/launcher/UseJavaClassFilelist.cmake +++ b/depends/launcher/UseJavaClassFilelist.cmake diff --git a/launcher/UseJavaSymlinks.cmake b/depends/launcher/UseJavaSymlinks.cmake index c66ee1ea..c66ee1ea 100644 --- a/launcher/UseJavaSymlinks.cmake +++ b/depends/launcher/UseJavaSymlinks.cmake diff --git a/launcher/net/minecraft/Launcher.java b/depends/launcher/net/minecraft/Launcher.java index 8cef35ad..8cef35ad 100644 --- a/launcher/net/minecraft/Launcher.java +++ b/depends/launcher/net/minecraft/Launcher.java diff --git a/launcher/org/simplericity/macify/eawt/Application.java b/depends/launcher/org/simplericity/macify/eawt/Application.java index 153bb9ee..153bb9ee 100644 --- a/launcher/org/simplericity/macify/eawt/Application.java +++ b/depends/launcher/org/simplericity/macify/eawt/Application.java diff --git a/launcher/org/simplericity/macify/eawt/ApplicationAdapter.java b/depends/launcher/org/simplericity/macify/eawt/ApplicationAdapter.java index e9c3db7d..e9c3db7d 100644 --- a/launcher/org/simplericity/macify/eawt/ApplicationAdapter.java +++ b/depends/launcher/org/simplericity/macify/eawt/ApplicationAdapter.java diff --git a/launcher/org/simplericity/macify/eawt/ApplicationEvent.java b/depends/launcher/org/simplericity/macify/eawt/ApplicationEvent.java index 78420355..78420355 100644 --- a/launcher/org/simplericity/macify/eawt/ApplicationEvent.java +++ b/depends/launcher/org/simplericity/macify/eawt/ApplicationEvent.java diff --git a/launcher/org/simplericity/macify/eawt/ApplicationListener.java b/depends/launcher/org/simplericity/macify/eawt/ApplicationListener.java index a291bee4..a291bee4 100644 --- a/launcher/org/simplericity/macify/eawt/ApplicationListener.java +++ b/depends/launcher/org/simplericity/macify/eawt/ApplicationListener.java diff --git a/launcher/org/simplericity/macify/eawt/DefaultApplication.java b/depends/launcher/org/simplericity/macify/eawt/DefaultApplication.java index 5752a350..5752a350 100644 --- a/launcher/org/simplericity/macify/eawt/DefaultApplication.java +++ b/depends/launcher/org/simplericity/macify/eawt/DefaultApplication.java diff --git a/patchlib/CMakeLists.txt b/depends/patchlib/CMakeLists.txt index 4130e08f..4130e08f 100644 --- a/patchlib/CMakeLists.txt +++ b/depends/patchlib/CMakeLists.txt diff --git a/patchlib/LICENSE-bzip2 b/depends/patchlib/LICENSE-bzip2 index cc614178..cc614178 100644 --- a/patchlib/LICENSE-bzip2 +++ b/depends/patchlib/LICENSE-bzip2 diff --git a/patchlib/blocksort.c b/depends/patchlib/blocksort.c index d63dbbf8..d63dbbf8 100644 --- a/patchlib/blocksort.c +++ b/depends/patchlib/blocksort.c diff --git a/patchlib/bspatch.c b/depends/patchlib/bspatch.c index e8469edc..e8469edc 100644 --- a/patchlib/bspatch.c +++ b/depends/patchlib/bspatch.c diff --git a/patchlib/bspatch.h b/depends/patchlib/bspatch.h index efb83ee5..efb83ee5 100644 --- a/patchlib/bspatch.h +++ b/depends/patchlib/bspatch.h diff --git a/patchlib/bzlib.c b/depends/patchlib/bzlib.c index e2994b44..e2994b44 100644 --- a/patchlib/bzlib.c +++ b/depends/patchlib/bzlib.c diff --git a/patchlib/bzlib.h b/depends/patchlib/bzlib.h index 7676f23a..7676f23a 100644 --- a/patchlib/bzlib.h +++ b/depends/patchlib/bzlib.h diff --git a/patchlib/bzlib_private.h b/depends/patchlib/bzlib_private.h index b134e220..b134e220 100644 --- a/patchlib/bzlib_private.h +++ b/depends/patchlib/bzlib_private.h diff --git a/patchlib/compress.c b/depends/patchlib/compress.c index caf76960..caf76960 100644 --- a/patchlib/compress.c +++ b/depends/patchlib/compress.c diff --git a/patchlib/crctable.c b/depends/patchlib/crctable.c index 1fea7e94..1fea7e94 100644 --- a/patchlib/crctable.c +++ b/depends/patchlib/crctable.c diff --git a/patchlib/decompress.c b/depends/patchlib/decompress.c index 311f5668..311f5668 100644 --- a/patchlib/decompress.c +++ b/depends/patchlib/decompress.c diff --git a/patchlib/huffman.c b/depends/patchlib/huffman.c index 2283fdbc..2283fdbc 100644 --- a/patchlib/huffman.c +++ b/depends/patchlib/huffman.c diff --git a/patchlib/randtable.c b/depends/patchlib/randtable.c index 6d624599..6d624599 100644 --- a/patchlib/randtable.c +++ b/depends/patchlib/randtable.c diff --git a/quazip/CMakeLists.txt b/depends/quazip/CMakeLists.txt index b5a391e9..b5a391e9 100644 --- a/quazip/CMakeLists.txt +++ b/depends/quazip/CMakeLists.txt diff --git a/quazip/JlCompress.cpp b/depends/quazip/JlCompress.cpp index 69832140..69832140 100644 --- a/quazip/JlCompress.cpp +++ b/depends/quazip/JlCompress.cpp diff --git a/quazip/JlCompress.h b/depends/quazip/JlCompress.h index 29d6191f..29d6191f 100644 --- a/quazip/JlCompress.h +++ b/depends/quazip/JlCompress.h diff --git a/quazip/crypt.h b/depends/quazip/crypt.h index 1d6da628..1d6da628 100644 --- a/quazip/crypt.h +++ b/depends/quazip/crypt.h diff --git a/quazip/ioapi.h b/depends/quazip/ioapi.h index f4c21809..f4c21809 100644 --- a/quazip/ioapi.h +++ b/depends/quazip/ioapi.h diff --git a/quazip/qioapi.cpp b/depends/quazip/qioapi.cpp index f254c34d..f254c34d 100644 --- a/quazip/qioapi.cpp +++ b/depends/quazip/qioapi.cpp diff --git a/quazip/quaadler32.cpp b/depends/quazip/quaadler32.cpp index 097899f6..097899f6 100644 --- a/quazip/quaadler32.cpp +++ b/depends/quazip/quaadler32.cpp diff --git a/quazip/quaadler32.h b/depends/quazip/quaadler32.h index c5ac0532..c5ac0532 100644 --- a/quazip/quaadler32.h +++ b/depends/quazip/quaadler32.h diff --git a/quazip/quachecksum32.h b/depends/quazip/quachecksum32.h index 773ec2a4..773ec2a4 100644 --- a/quazip/quachecksum32.h +++ b/depends/quazip/quachecksum32.h diff --git a/quazip/quacrc32.cpp b/depends/quazip/quacrc32.cpp index 9381f24c..9381f24c 100644 --- a/quazip/quacrc32.cpp +++ b/depends/quazip/quacrc32.cpp diff --git a/quazip/quacrc32.h b/depends/quazip/quacrc32.h index 4c86d566..4c86d566 100644 --- a/quazip/quacrc32.h +++ b/depends/quazip/quacrc32.h diff --git a/quazip/quagzipfile.cpp b/depends/quazip/quagzipfile.cpp index c1c70aad..c1c70aad 100644 --- a/quazip/quagzipfile.cpp +++ b/depends/quazip/quagzipfile.cpp diff --git a/quazip/quagzipfile.h b/depends/quazip/quagzipfile.h index 211ceadb..211ceadb 100644 --- a/quazip/quagzipfile.h +++ b/depends/quazip/quagzipfile.h diff --git a/quazip/quaziodevice.cpp b/depends/quazip/quaziodevice.cpp index 959ca0e8..959ca0e8 100644 --- a/quazip/quaziodevice.cpp +++ b/depends/quazip/quaziodevice.cpp diff --git a/quazip/quaziodevice.h b/depends/quazip/quaziodevice.h index b061cd16..b061cd16 100644 --- a/quazip/quaziodevice.h +++ b/depends/quazip/quaziodevice.h diff --git a/quazip/quazip.cpp b/depends/quazip/quazip.cpp index b6fa92f0..b6fa92f0 100644 --- a/quazip/quazip.cpp +++ b/depends/quazip/quazip.cpp diff --git a/quazip/quazip.h b/depends/quazip/quazip.h index a3ab8e52..a3ab8e52 100644 --- a/quazip/quazip.h +++ b/depends/quazip/quazip.h diff --git a/quazip/quazip_global.h b/depends/quazip/quazip_global.h index d9d09ade..d9d09ade 100644 --- a/quazip/quazip_global.h +++ b/depends/quazip/quazip_global.h diff --git a/quazip/quazipdir.cpp b/depends/quazip/quazipdir.cpp index 02208894..02208894 100644 --- a/quazip/quazipdir.cpp +++ b/depends/quazip/quazipdir.cpp diff --git a/quazip/quazipdir.h b/depends/quazip/quazipdir.h index e2d70bc8..e2d70bc8 100644 --- a/quazip/quazipdir.h +++ b/depends/quazip/quazipdir.h diff --git a/quazip/quazipfile.cpp b/depends/quazip/quazipfile.cpp index 323f815e..323f815e 100644 --- a/quazip/quazipfile.cpp +++ b/depends/quazip/quazipfile.cpp diff --git a/quazip/quazipfile.h b/depends/quazip/quazipfile.h index f6cc41a6..f6cc41a6 100644 --- a/quazip/quazipfile.h +++ b/depends/quazip/quazipfile.h diff --git a/quazip/quazipfileinfo.h b/depends/quazip/quazipfileinfo.h index 99540229..99540229 100644 --- a/quazip/quazipfileinfo.h +++ b/depends/quazip/quazipfileinfo.h diff --git a/quazip/quazipnewinfo.cpp b/depends/quazip/quazipnewinfo.cpp index ed57e09f..ed57e09f 100644 --- a/quazip/quazipnewinfo.cpp +++ b/depends/quazip/quazipnewinfo.cpp diff --git a/quazip/quazipnewinfo.h b/depends/quazip/quazipnewinfo.h index 62159ea7..62159ea7 100644 --- a/quazip/quazipnewinfo.h +++ b/depends/quazip/quazipnewinfo.h diff --git a/quazip/unzip.c b/depends/quazip/unzip.c index 6e115ae6..6e115ae6 100644 --- a/quazip/unzip.c +++ b/depends/quazip/unzip.c diff --git a/quazip/unzip.h b/depends/quazip/unzip.h index 33c9dc1a..33c9dc1a 100644 --- a/quazip/unzip.h +++ b/depends/quazip/unzip.h diff --git a/quazip/zip.c b/depends/quazip/zip.c index bf8c0a10..bf8c0a10 100644 --- a/quazip/zip.c +++ b/depends/quazip/zip.c diff --git a/quazip/zip.h b/depends/quazip/zip.h index 269ec2da..269ec2da 100644 --- a/quazip/zip.h +++ b/depends/quazip/zip.h diff --git a/libsettings/CMakeLists.txt b/depends/settings/CMakeLists.txt index e5aae0b7..e5aae0b7 100644 --- a/libsettings/CMakeLists.txt +++ b/depends/settings/CMakeLists.txt diff --git a/libsettings/include/basicsettingsobject.h b/depends/settings/include/basicsettingsobject.h index b7e5851d..b7e5851d 100644 --- a/libsettings/include/basicsettingsobject.h +++ b/depends/settings/include/basicsettingsobject.h diff --git a/libsettings/include/inifile.h b/depends/settings/include/inifile.h index 94467832..94467832 100644 --- a/libsettings/include/inifile.h +++ b/depends/settings/include/inifile.h diff --git a/libsettings/include/inisettingsobject.h b/depends/settings/include/inisettingsobject.h index 03d6fe05..03d6fe05 100644 --- a/libsettings/include/inisettingsobject.h +++ b/depends/settings/include/inisettingsobject.h diff --git a/libsettings/include/keyring.h b/depends/settings/include/keyring.h index 299b14b0..299b14b0 100644 --- a/libsettings/include/keyring.h +++ b/depends/settings/include/keyring.h diff --git a/libsettings/include/libsettings_config.h b/depends/settings/include/libsettings_config.h index dc8e6228..dc8e6228 100644 --- a/libsettings/include/libsettings_config.h +++ b/depends/settings/include/libsettings_config.h diff --git a/libsettings/include/overridesetting.h b/depends/settings/include/overridesetting.h index 58bb6d40..58bb6d40 100644 --- a/libsettings/include/overridesetting.h +++ b/depends/settings/include/overridesetting.h diff --git a/libsettings/include/setting.h b/depends/settings/include/setting.h index a161ab50..a161ab50 100644 --- a/libsettings/include/setting.h +++ b/depends/settings/include/setting.h diff --git a/libsettings/include/settingsobject.h b/depends/settings/include/settingsobject.h index a2f03699..a2f03699 100644 --- a/libsettings/include/settingsobject.h +++ b/depends/settings/include/settingsobject.h diff --git a/libsettings/src/basicsettingsobject.cpp b/depends/settings/src/basicsettingsobject.cpp index 484928c8..484928c8 100644 --- a/libsettings/src/basicsettingsobject.cpp +++ b/depends/settings/src/basicsettingsobject.cpp diff --git a/libsettings/src/inifile.cpp b/depends/settings/src/inifile.cpp index 43545a4a..43545a4a 100644 --- a/libsettings/src/inifile.cpp +++ b/depends/settings/src/inifile.cpp diff --git a/libsettings/src/inisettingsobject.cpp b/depends/settings/src/inisettingsobject.cpp index 854421b6..854421b6 100644 --- a/libsettings/src/inisettingsobject.cpp +++ b/depends/settings/src/inisettingsobject.cpp diff --git a/libsettings/src/keyring.cpp b/depends/settings/src/keyring.cpp index 9eaba684..9eaba684 100644 --- a/libsettings/src/keyring.cpp +++ b/depends/settings/src/keyring.cpp diff --git a/libsettings/src/overridesetting.cpp b/depends/settings/src/overridesetting.cpp index eafb298f..eafb298f 100644 --- a/libsettings/src/overridesetting.cpp +++ b/depends/settings/src/overridesetting.cpp diff --git a/libsettings/src/setting.cpp b/depends/settings/src/setting.cpp index 8e60af06..8e60af06 100644 --- a/libsettings/src/setting.cpp +++ b/depends/settings/src/setting.cpp diff --git a/libsettings/src/settingsobject.cpp b/depends/settings/src/settingsobject.cpp index bf7b8825..bf7b8825 100644 --- a/libsettings/src/settingsobject.cpp +++ b/depends/settings/src/settingsobject.cpp diff --git a/libsettings/src/stubkeyring.cpp b/depends/settings/src/stubkeyring.cpp index cf814d2f..cf814d2f 100644 --- a/libsettings/src/stubkeyring.cpp +++ b/depends/settings/src/stubkeyring.cpp diff --git a/libsettings/src/stubkeyring.h b/depends/settings/src/stubkeyring.h index 45791c85..45791c85 100644 --- a/libsettings/src/stubkeyring.h +++ b/depends/settings/src/stubkeyring.h diff --git a/libutil/CMakeLists.txt b/depends/util/CMakeLists.txt index 7affb5ea..7affb5ea 100644 --- a/libutil/CMakeLists.txt +++ b/depends/util/CMakeLists.txt diff --git a/libutil/include/apputils.h b/depends/util/include/apputils.h index a64adc50..a64adc50 100644 --- a/libutil/include/apputils.h +++ b/depends/util/include/apputils.h diff --git a/libutil/include/cmdutils.h b/depends/util/include/cmdutils.h index a6379397..a6379397 100644 --- a/libutil/include/cmdutils.h +++ b/depends/util/include/cmdutils.h diff --git a/libutil/include/libutil_config.h b/depends/util/include/libutil_config.h index 4bf111e6..4bf111e6 100644 --- a/libutil/include/libutil_config.h +++ b/depends/util/include/libutil_config.h diff --git a/libutil/include/osutils.h b/depends/util/include/osutils.h index c5d4bb61..c5d4bb61 100644 --- a/libutil/include/osutils.h +++ b/depends/util/include/osutils.h diff --git a/libutil/include/pathutils.h b/depends/util/include/pathutils.h index d4f41da3..d4f41da3 100644 --- a/libutil/include/pathutils.h +++ b/depends/util/include/pathutils.h diff --git a/libutil/include/siglist.h b/depends/util/include/siglist.h index 24b1a889..24b1a889 100644 --- a/libutil/include/siglist.h +++ b/depends/util/include/siglist.h diff --git a/libutil/include/siglist_impl.h b/depends/util/include/siglist_impl.h index 5cdc632a..5cdc632a 100644 --- a/libutil/include/siglist_impl.h +++ b/depends/util/include/siglist_impl.h diff --git a/libutil/include/userutils.h b/depends/util/include/userutils.h index 4f2760b1..4f2760b1 100644 --- a/libutil/include/userutils.h +++ b/depends/util/include/userutils.h diff --git a/libutil/src/cmdutils.cpp b/depends/util/src/cmdutils.cpp index 80ba719d..80ba719d 100644 --- a/libutil/src/cmdutils.cpp +++ b/depends/util/src/cmdutils.cpp diff --git a/libutil/src/osutils.cpp b/depends/util/src/osutils.cpp index 9a85d1e5..9a85d1e5 100644 --- a/libutil/src/osutils.cpp +++ b/depends/util/src/osutils.cpp diff --git a/libutil/src/pathutils.cpp b/depends/util/src/pathutils.cpp index 97287840..97287840 100644 --- a/libutil/src/pathutils.cpp +++ b/depends/util/src/pathutils.cpp diff --git a/libutil/src/userutils.cpp b/depends/util/src/userutils.cpp index b70841ed..b70841ed 100644 --- a/libutil/src/userutils.cpp +++ b/depends/util/src/userutils.cpp diff --git a/gui/IconPickerDialog.cpp b/gui/IconPickerDialog.cpp index 27e7f3b6..d80673a8 100644 --- a/gui/IconPickerDialog.cpp +++ b/gui/IconPickerDialog.cpp @@ -1,7 +1,7 @@ #include "IconPickerDialog.h" #include "instancedelegate.h" #include "ui_IconPickerDialog.h" -#include <IconListModel.h> +#include "logic/IconListModel.h" IconPickerDialog::IconPickerDialog(QWidget *parent) : QDialog(parent), diff --git a/gui/legacymodeditdialog.cpp b/gui/LegacyModEditDialog.cpp index 319705f9..a6becd7d 100644 --- a/gui/legacymodeditdialog.cpp +++ b/gui/LegacyModEditDialog.cpp @@ -13,15 +13,16 @@ * limitations under the License. */ -#include "legacymodeditdialog.h" -#include "ui_legacymodeditdialog.h" -#include "BaseInstance.h" +#include "LegacyModEditDialog.h" +#include "ui_LegacyModEditDialog.h" -LegacyModEditDialog::LegacyModEditDialog(QWidget *parent, BaseInstance* m_inst) : +LegacyModEditDialog::LegacyModEditDialog( LegacyInstance* inst, QWidget* parent ) : + m_inst(inst), QDialog(parent), ui(new Ui::LegacyModEditDialog) { ui->setupUi(this); + } LegacyModEditDialog::~LegacyModEditDialog() diff --git a/gui/legacymodeditdialog.h b/gui/LegacyModEditDialog.h index 54dceffe..3af6c8d7 100644 --- a/gui/legacymodeditdialog.h +++ b/gui/LegacyModEditDialog.h @@ -13,12 +13,10 @@ * limitations under the License. */ -#ifndef LEGACYMODEDITDIALOG_H -#define LEGACYMODEDITDIALOG_H +#pragma once #include <QDialog> - -#include "BaseInstance.h" +#include "logic/LegacyInstance.h" namespace Ui { class LegacyModEditDialog; @@ -29,7 +27,7 @@ class LegacyModEditDialog : public QDialog Q_OBJECT public: - explicit LegacyModEditDialog(QWidget *parent = 0, BaseInstance* m_inst = 0); + explicit LegacyModEditDialog(LegacyInstance* inst, QWidget *parent = 0); ~LegacyModEditDialog(); private slots: @@ -57,6 +55,5 @@ private slots: private: Ui::LegacyModEditDialog *ui; + LegacyInstance * m_inst; }; - -#endif // LEGACYMODEDITDIALOG_H diff --git a/gui/legacymodeditdialog.ui b/gui/LegacyModEditDialog.ui index d8b09bfe..d55c3e1c 100644 --- a/gui/legacymodeditdialog.ui +++ b/gui/LegacyModEditDialog.ui @@ -20,7 +20,7 @@ <bool>false</bool> </property> <property name="currentIndex"> - <number>3</number> + <number>0</number> </property> <widget class="QWidget" name="jarTab"> <attribute name="title"> diff --git a/gui/consolewindow.h b/gui/consolewindow.h index 3ea02ad9..60bec69f 100644 --- a/gui/consolewindow.h +++ b/gui/consolewindow.h @@ -2,7 +2,7 @@ #define CONSOLEWINDOW_H #include <QDialog> -#include "MinecraftProcess.h" +#include "logic/MinecraftProcess.h" namespace Ui { class ConsoleWindow; diff --git a/gui/instancemodel.cpp b/gui/instancemodel.cpp index 3cbb0fb9..39dea34b 100644 --- a/gui/instancemodel.cpp +++ b/gui/instancemodel.cpp @@ -1,6 +1,6 @@ #include "instancemodel.h" -#include <BaseInstance.h> -#include <IconListModel.h> +#include <logic/BaseInstance.h> +#include <logic/IconListModel.h> #include <QIcon> //#include "iconcache.h" diff --git a/gui/instancemodel.h b/gui/instancemodel.h index fe05744f..52b58081 100644 --- a/gui/instancemodel.h +++ b/gui/instancemodel.h @@ -2,7 +2,7 @@ #include <QAbstractListModel> #include "categorizedsortfilterproxymodel.h" -#include "lists/InstanceList.h" +#include "logic/lists/InstanceList.h" #include <QIcon> class InstanceModel : public QAbstractListModel diff --git a/gui/lwjglselectdialog.cpp b/gui/lwjglselectdialog.cpp index d4a42b59..9de92754 100644 --- a/gui/lwjglselectdialog.cpp +++ b/gui/lwjglselectdialog.cpp @@ -16,7 +16,7 @@ #include "lwjglselectdialog.h" #include "ui_lwjglselectdialog.h" -#include "lists/LwjglVersionList.h" +#include "logic/lists/LwjglVersionList.h" LWJGLSelectDialog::LWJGLSelectDialog(QWidget *parent) : QDialog(parent), diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 6176c079..5087b38f 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -33,6 +33,9 @@ #include "userutils.h" #include "pathutils.h" +#include "categorizedview.h" +#include "categorydrawer.h" + #include "gui/settingsdialog.h" #include "gui/newinstancedialog.h" #include "gui/logindialog.h" @@ -42,31 +45,25 @@ #include "gui/versionselectdialog.h" #include "gui/lwjglselectdialog.h" #include "gui/consolewindow.h" -#include "gui/legacymodeditdialog.h" #include "gui/instancesettings.h" -#include "categorizedview.h" -#include "categorydrawer.h" - -#include "lists/InstanceList.h" #include "AppSettings.h" #include "AppVersion.h" -#include "tasks/LoginTask.h" - -#include "BaseInstance.h" -#include "InstanceFactory.h" -#include "MinecraftProcess.h" -#include "OneSixAssets.h" -#include "OneSixUpdate.h" +#include "logic/lists/InstanceList.h" +#include "logic/tasks/LoginTask.h" +#include "logic/BaseInstance.h" +#include "logic/InstanceFactory.h" +#include "logic/MinecraftProcess.h" +#include "logic/OneSixAssets.h" +#include "logic/OneSixUpdate.h" +#include "logic/lists/MinecraftVersionList.h" +#include "logic/lists/LwjglVersionList.h" #include "instancemodel.h" #include "instancedelegate.h" #include "IconPickerDialog.h" -#include "lists/MinecraftVersionList.h" -#include "lists/LwjglVersionList.h" - // Opens the given file in the default application. // TODO: Move this somewhere. void openFileInDefaultProgram ( QString filename ); @@ -378,8 +375,8 @@ void MainWindow::on_actionEditInstMods_triggered() BaseInstance* inst = selectedInstance(); if (inst) { - LegacyModEditDialog dialog ( this, inst ); - dialog.exec(); + auto dialog = inst->createModEditDialog(this); + dialog->exec(); } } diff --git a/gui/mainwindow.h b/gui/mainwindow.h index 62115e1d..79716e5e 100644 --- a/gui/mainwindow.h +++ b/gui/mainwindow.h @@ -18,9 +18,9 @@ #include <QMainWindow> -#include "lists/InstanceList.h" -#include "tasks/LoginTask.h" -#include "BaseInstance.h" +#include "logic/lists/InstanceList.h" +#include "logic/tasks/LoginTask.h" +#include "logic/BaseInstance.h" class InstanceModel; class InstanceProxyModel; diff --git a/gui/modeditdialog.cpp b/gui/modeditdialog.cpp index 2f437101..011de53d 100644 --- a/gui/modeditdialog.cpp +++ b/gui/modeditdialog.cpp @@ -15,7 +15,7 @@ #include "modeditdialog.h" #include "ui_modeditdialog.h" -#include "BaseInstance.h" +#include "logic/BaseInstance.h" ModEditDialog::ModEditDialog(QWidget *parent, BaseInstance* m_inst) : QDialog(parent), diff --git a/gui/modeditdialog.h b/gui/modeditdialog.h index 329a1b4e..94272a32 100644 --- a/gui/modeditdialog.h +++ b/gui/modeditdialog.h @@ -18,7 +18,7 @@ #include <QDialog> -#include "BaseInstance.h" +#include "logic/BaseInstance.h" namespace Ui { class ModEditDialog; diff --git a/gui/modeditdialog.ui b/gui/modeditdialog.ui index 380aec39..dfc59d21 100644 --- a/gui/modeditdialog.ui +++ b/gui/modeditdialog.ui @@ -26,7 +26,7 @@ </size> </property> <property name="currentIndex"> - <number>2</number> + <number>0</number> </property> <property name="elideMode"> <enum>Qt::ElideNone</enum> diff --git a/gui/newinstancedialog.cpp b/gui/newinstancedialog.cpp index 4f19e9a2..3a4adbc1 100644 --- a/gui/newinstancedialog.cpp +++ b/gui/newinstancedialog.cpp @@ -16,13 +16,11 @@ #include "newinstancedialog.h" #include "ui_newinstancedialog.h" -#include "InstanceFactory.h" - -#include <lists/MinecraftVersionList.h> -#include "InstanceVersion.h" - -#include "tasks/Task.h" -#include <IconListModel.h> +#include "logic/InstanceFactory.h" +#include "logic/InstanceVersion.h" +#include "logic/IconListModel.h" +#include "logic/lists/MinecraftVersionList.h" +#include "logic/tasks/Task.h" #include "versionselectdialog.h" #include "taskdialog.h" diff --git a/gui/newinstancedialog.h b/gui/newinstancedialog.h index 07267e19..e8c57024 100644 --- a/gui/newinstancedialog.h +++ b/gui/newinstancedialog.h @@ -17,7 +17,7 @@ #define NEWINSTANCEDIALOG_H #include <QDialog> -#include "InstanceVersion.h" +#include "logic/InstanceVersion.h" namespace Ui { class NewInstanceDialog; diff --git a/gui/taskdialog.cpp b/gui/taskdialog.cpp index f61614e8..8c745b38 100644 --- a/gui/taskdialog.cpp +++ b/gui/taskdialog.cpp @@ -18,7 +18,7 @@ #include <QKeyEvent> -#include "tasks/Task.h" +#include "logic/tasks/Task.h" TaskDialog::TaskDialog(QWidget *parent) : QDialog(parent), diff --git a/gui/versionselectdialog.cpp b/gui/versionselectdialog.cpp index 33aedc71..afe112f4 100644 --- a/gui/versionselectdialog.cpp +++ b/gui/versionselectdialog.cpp @@ -22,9 +22,9 @@ #include <gui/taskdialog.h> -#include <lists/InstVersionList.h> -#include <InstanceVersion.h> -#include <tasks/Task.h> +#include <logic/InstanceVersion.h> +#include <logic/lists/InstVersionList.h> +#include <logic/tasks/Task.h> VersionSelectDialog::VersionSelectDialog(InstVersionList *vlist, QWidget *parent) : QDialog(parent), diff --git a/gui/versionselectdialog.h b/gui/versionselectdialog.h index 752c937b..b864aee1 100644 --- a/gui/versionselectdialog.h +++ b/gui/versionselectdialog.h @@ -19,7 +19,7 @@ #include <QDialog> #include <QSortFilterProxyModel> -#include <InstanceVersion.h> +#include "logic/InstanceVersion.h" class InstVersionList; diff --git a/java/test.cpp b/java/test.cpp deleted file mode 100644 index f73e3c21..00000000 --- a/java/test.cpp +++ /dev/null @@ -1,35 +0,0 @@ - -#include "classfile.h" -#include "annotations.h" -#include <fstream> -#include <iostream> - -int main(int argc, char* argv[]) -{ - if(argc > 1) - { - std::ifstream file_in(argv[1]); - if(file_in.is_open()) - { - file_in.seekg(0, std::_S_end); - auto length = file_in.tellg(); - char * data = new char[length]; - file_in.seekg(0); - file_in.read(data,length); - java::classfile cf (data, length); - java::annotation_table atable = cf.visible_class_annotations; - for(int i = 0; i < atable.size(); i++) - { - std::cout << atable[i]->toString() << std::endl; - } - return 0; - } - else - { - std::cerr << "Failed to open file : " << argv[1] << std::endl; - return 1; - } - } - std::cerr << "No file to open :(" << std::endl; - return 1; -}
\ No newline at end of file diff --git a/backend/BaseInstance.cpp b/logic/BaseInstance.cpp index 951b403a..c2df34e1 100644 --- a/backend/BaseInstance.cpp +++ b/logic/BaseInstance.cpp @@ -23,7 +23,7 @@ #include "overridesetting.h" #include "pathutils.h" -#include <lists/MinecraftVersionList.h> +#include "lists/MinecraftVersionList.h" BaseInstance::BaseInstance( BaseInstancePrivate* d_in, diff --git a/backend/BaseInstance.h b/logic/BaseInstance.h index 05f3ce00..8b5de6f5 100644 --- a/backend/BaseInstance.h +++ b/logic/BaseInstance.h @@ -23,8 +23,7 @@ #include "inifile.h" #include "lists/InstVersionList.h" -#include "libmmc_config.h" - +class QDialog; class BaseUpdate; class MinecraftProcess; class OneSixUpdate; @@ -39,7 +38,7 @@ class BaseInstancePrivate; * To create a new instance type, create a new class inheriting from this class * and implement the pure virtual functions. */ -class LIBMULTIMC_EXPORT BaseInstance : public QObject +class BaseInstance : public QObject { Q_OBJECT protected: @@ -128,6 +127,9 @@ public: /// do any necessary cleanups after the instance finishes. also runs before 'prepareForLaunch' virtual void cleanupAfterRun() = 0; + + /// create a mod edit dialog for the instance + virtual QSharedPointer<QDialog> createModEditDialog ( QWidget* parent ) = 0; signals: /*! * \brief Signal emitted when properties relevant to the instance view change diff --git a/backend/BaseInstance_p.h b/logic/BaseInstance_p.h index a30916a4..a30916a4 100644 --- a/backend/BaseInstance_p.h +++ b/logic/BaseInstance_p.h diff --git a/backend/BaseUpdate.cpp b/logic/BaseUpdate.cpp index b086ab14..b086ab14 100644 --- a/backend/BaseUpdate.cpp +++ b/logic/BaseUpdate.cpp diff --git a/backend/BaseUpdate.h b/logic/BaseUpdate.h index b7d2017e..d1e7b735 100644 --- a/backend/BaseUpdate.h +++ b/logic/BaseUpdate.h @@ -22,7 +22,6 @@ #include "net/DownloadJob.h" #include "tasks/Task.h" -#include "libmmc_config.h" class MinecraftVersion; class BaseInstance; @@ -30,7 +29,7 @@ class BaseInstance; /*! * The game update task is the task that handles downloading instances' files. */ -class LIBMULTIMC_EXPORT BaseUpdate : public Task +class BaseUpdate : public Task { Q_OBJECT public: diff --git a/logic/CMakeLists.txt b/logic/CMakeLists.txt new file mode 100644 index 00000000..b1eacced --- /dev/null +++ b/logic/CMakeLists.txt @@ -0,0 +1,24 @@ +project(libMultiMC) + +set(CMAKE_AUTOMOC ON) + +# Find Qt +find_package(Qt5Core REQUIRED) +find_package(Qt5Network REQUIRED) +find_package(Qt5Xml REQUIRED) + +# Include Qt headers. +include_directories(${Qt5Base_INCLUDE_DIRS}) +include_directories(${Qt5Network_INCLUDE_DIRS}) + +# Include utility library. +include_directories(${CMAKE_SOURCE_DIR}/libutil/include) + +# Include settings library. +include_directories(${CMAKE_SOURCE_DIR}/libsettings/include) + +SET(LIBINST_HEADERS + +) + + diff --git a/backend/IconListModel.cpp b/logic/IconListModel.cpp index 2d2fb6cf..2d2fb6cf 100644 --- a/backend/IconListModel.cpp +++ b/logic/IconListModel.cpp diff --git a/backend/IconListModel.h b/logic/IconListModel.h index 31b05e64..31b05e64 100644 --- a/backend/IconListModel.h +++ b/logic/IconListModel.h diff --git a/backend/InstanceFactory.cpp b/logic/InstanceFactory.cpp index f3511157..f3511157 100644 --- a/backend/InstanceFactory.cpp +++ b/logic/InstanceFactory.cpp diff --git a/backend/InstanceFactory.h b/logic/InstanceFactory.h index e1100504..ed54f520 100644 --- a/backend/InstanceFactory.h +++ b/logic/InstanceFactory.h @@ -19,7 +19,6 @@ #include <QMap> #include <QList> -#include "libmmc_config.h" #include "InstanceVersion.h" class InstVersion; @@ -28,7 +27,7 @@ class BaseInstance; /*! * The \bInstanceFactory\b is a singleton that manages loading and creating instances. */ -class LIBMULTIMC_EXPORT InstanceFactory : public QObject +class InstanceFactory : public QObject { Q_OBJECT public: diff --git a/backend/InstanceVersion.h b/logic/InstanceVersion.h index aeff9842..eecd9c4e 100644 --- a/backend/InstanceVersion.h +++ b/logic/InstanceVersion.h @@ -14,13 +14,12 @@ */ #pragma once -#include "libmmc_config.h" #include <QSharedPointer> /*! * An abstract base class for versions. */ -struct LIBMULTIMC_EXPORT InstVersion +struct InstVersion { /*! * Checks if this version is less (older) than the given version. diff --git a/backend/LegacyForge.cpp b/logic/LegacyForge.cpp index adcf487c..adcf487c 100644 --- a/backend/LegacyForge.cpp +++ b/logic/LegacyForge.cpp diff --git a/backend/LegacyForge.h b/logic/LegacyForge.h index 00a054b8..00a054b8 100644 --- a/backend/LegacyForge.h +++ b/logic/LegacyForge.h diff --git a/backend/LegacyInstance.cpp b/logic/LegacyInstance.cpp index 9102c9c7..db2a72d9 100644 --- a/backend/LegacyInstance.cpp +++ b/logic/LegacyInstance.cpp @@ -5,6 +5,7 @@ #include <setting.h> #include <pathutils.h> #include <cmdutils.h> +#include "gui/LegacyModEditDialog.h" #include <QFileInfo> #include <QDir> #include <QImage> @@ -82,6 +83,50 @@ MinecraftProcess* LegacyInstance::prepareForLaunch(QString user, QString session return proc; } +QSharedPointer< ModList > LegacyInstance::coreModList() +{ + I_D(LegacyInstance); + if(!d->core_mod_list) + { + d->core_mod_list.reset(new ModList(coreModsDir(), QString())); + } + return d->core_mod_list; +} + +QSharedPointer< ModList > LegacyInstance::jarModList() +{ + I_D(LegacyInstance); + if(!d->jar_mod_list) + { + auto list = new ModList(instModsDir(), modListFile()); + connect(list, SIGNAL(changed()), SLOT(jarModsChanged())); + d->jar_mod_list.reset(list); + } + return d->jar_mod_list; +} + +void LegacyInstance::jarModsChanged() +{ + setShouldRebuild(true); +} + + +QSharedPointer< ModList > LegacyInstance::loaderModList() +{ + I_D(LegacyInstance); + if(!d->loader_mod_list) + { + d->loader_mod_list.reset(new ModList(mlModsDir(), QString())); + } + return d->loader_mod_list; +} + +QSharedPointer< QDialog > LegacyInstance::createModEditDialog ( QWidget* parent ) +{ + return QSharedPointer<QDialog> (new LegacyModEditDialog(this, parent)); +} + + void LegacyInstance::cleanupAfterRun() { //FIXME: delete the launcher and icons and whatnot. diff --git a/backend/LegacyInstance.h b/logic/LegacyInstance.h index 6c9a295f..43a66a2b 100644 --- a/backend/LegacyInstance.h +++ b/logic/LegacyInstance.h @@ -2,9 +2,10 @@ #include "BaseInstance.h" +class ModList; class BaseUpdate; -class LIBMULTIMC_EXPORT LegacyInstance : public BaseInstance +class LegacyInstance : public BaseInstance { Q_OBJECT public: @@ -20,6 +21,11 @@ public: //! Path to the instance's modlist file. QString modListFile() const; + ////// Mod Lists ////// + QSharedPointer<ModList> jarModList(); + QSharedPointer<ModList> coreModList(); + QSharedPointer<ModList> loaderModList(); + ////// Directories ////// QString savesDir() const; QString instModsDir() const; @@ -82,4 +88,8 @@ public: virtual MinecraftProcess* prepareForLaunch( QString user, QString session ); virtual void cleanupAfterRun(); + virtual QSharedPointer< QDialog > createModEditDialog ( QWidget* parent ); + +protected slots: + virtual void jarModsChanged(); };
\ No newline at end of file diff --git a/logic/LegacyInstance_p.h b/logic/LegacyInstance_p.h new file mode 100644 index 00000000..a1d195b4 --- /dev/null +++ b/logic/LegacyInstance_p.h @@ -0,0 +1,15 @@ +#pragma once +#include <QString> +#include <settingsobject.h> +#include "BaseInstance_p.h" +#include "ModList.h" +#include <QSharedPointer> + +class ModList; + +struct LegacyInstancePrivate: public BaseInstancePrivate +{ + QSharedPointer<ModList> jar_mod_list; + QSharedPointer<ModList> core_mod_list; + QSharedPointer<ModList> loader_mod_list; +};
\ No newline at end of file diff --git a/backend/LegacyUpdate.cpp b/logic/LegacyUpdate.cpp index a748bad3..a748bad3 100644 --- a/backend/LegacyUpdate.cpp +++ b/logic/LegacyUpdate.cpp diff --git a/backend/LegacyUpdate.h b/logic/LegacyUpdate.h index a48189a6..342d1eab 100644 --- a/backend/LegacyUpdate.h +++ b/logic/LegacyUpdate.h @@ -21,13 +21,12 @@ #include "net/DownloadJob.h" #include "tasks/Task.h" -#include "libmmc_config.h" #include "BaseUpdate.h" class MinecraftVersion; class BaseInstance; -class LIBMULTIMC_EXPORT LegacyUpdate : public BaseUpdate +class LegacyUpdate : public BaseUpdate { Q_OBJECT public: diff --git a/backend/MinecraftProcess.cpp b/logic/MinecraftProcess.cpp index d34be835..d34be835 100644 --- a/backend/MinecraftProcess.cpp +++ b/logic/MinecraftProcess.cpp diff --git a/backend/MinecraftProcess.h b/logic/MinecraftProcess.h index 756d2de5..516bf986 100644 --- a/backend/MinecraftProcess.h +++ b/logic/MinecraftProcess.h @@ -20,14 +20,12 @@ #include "BaseInstance.h" -#include "libmmc_config.h" - /** * @brief the MessageLevel Enum * defines what level a message is */ namespace MessageLevel { -enum LIBMULTIMC_EXPORT Enum { +enum Enum { MultiMC, /**< MultiMC Messages */ Debug, /**< Debug Messages */ Info, /**< Info Messages */ @@ -42,7 +40,7 @@ enum LIBMULTIMC_EXPORT Enum { * @file data/minecraftprocess.h * @brief The MinecraftProcess class */ -class LIBMULTIMC_EXPORT MinecraftProcess : public QProcess +class MinecraftProcess : public QProcess { Q_OBJECT public: diff --git a/backend/MinecraftVersion.h b/logic/MinecraftVersion.h index 5cd29925..27977262 100644 --- a/backend/MinecraftVersion.h +++ b/logic/MinecraftVersion.h @@ -15,12 +15,10 @@ #pragma once -#include "libmmc_config.h" - #include "InstanceVersion.h" #include <QStringList> -struct LIBMULTIMC_EXPORT MinecraftVersion : public InstVersion +struct MinecraftVersion : public InstVersion { // From InstVersion: /* diff --git a/backend/Mod.cpp b/logic/Mod.cpp index 652bbda7..652bbda7 100644 --- a/backend/Mod.cpp +++ b/logic/Mod.cpp diff --git a/backend/Mod.h b/logic/Mod.h index d9d90426..f14818d1 100644 --- a/backend/Mod.h +++ b/logic/Mod.h @@ -33,11 +33,13 @@ public: QFileInfo filename() const { return m_file; } QString id() const { return m_id; } ModType type() const { return m_type; } - QString mcversion() const; + QString mcversion() const { return m_mcversion; }; bool valid() {return m_type != MOD_UNKNOWN;} + QString name() const {return m_name; }; QString version() const; + // delete all the files of this mod bool destroy(); // replace this mod with a copy of the other diff --git a/backend/ModList.cpp b/logic/ModList.cpp index 851eb940..d9e67574 100644 --- a/backend/ModList.cpp +++ b/logic/ModList.cpp @@ -1,5 +1,5 @@ // -// Copyright 2012 MultiMC Contributors +// Copyright 2013 MultiMC Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -18,7 +18,8 @@ #include "LegacyInstance.h" #include <pathutils.h> -ModList::ModList ( const QString& dir ) : QObject(), m_dir(dir) +ModList::ModList ( const QString& dir, const QString& list_file ) +: QAbstractListModel(), m_dir(dir), m_list_file(list_file) { m_dir.setFilter(QDir::Readable | QDir::NoDotAndDotDot | QDir::Files | QDir::Dirs | QDir::NoSymLinks); m_dir.setSorting(QDir::Name); @@ -114,6 +115,59 @@ bool ModList::deleteMod ( size_t index ) return false; } +bool ModList::moveMod ( size_t from, size_t to ) +{ + return false; +} + +int ModList::columnCount ( const QModelIndex& parent ) const +{ + return 2; +} + +QVariant ModList::data ( const QModelIndex& index, int role ) const +{ + if(!index.isValid()) + return QVariant(); + + int row = index.row(); + int column = index.column(); + + if(row < 0 || row >= mods.size()) + return QVariant(); + + if(role != Qt::DisplayRole) + return QVariant(); + + switch(column) + { + case 0: + return mods[row].name(); + case 1: + return mods[row].version(); + case 2: + return mods[row].mcversion(); + default: + return QVariant(); + } +} + +QVariant ModList::headerData ( int section, Qt::Orientation orientation, int role ) const +{ + if (role != Qt::DisplayRole || orientation != Qt::Horizontal) + return QVariant(); + switch (section) + { + case 0: + return QString("Mod Name"); + case 1: + return QString("Mod Version"); + case 2: + return QString("MC Version"); + } +} + + /* ModList::ModList(const QString &dir) diff --git a/backend/ModList.h b/logic/ModList.h index bf65a080..41d26491 100644 --- a/backend/ModList.h +++ b/logic/ModList.h @@ -1,5 +1,5 @@ // -// Copyright 2012 MultiMC Contributors +// Copyright 2013 MultiMC Contributors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,26 +14,37 @@ class BaseInstance; #include <QList> #include <QString> #include <QDir> +#include <QAbstractListModel> #include "Mod.h" /** - * A basic mod list. + * A legacy mod list. * Backed by a folder. */ -class ModList : public QObject +class ModList : public QAbstractListModel { Q_OBJECT public: - ModList(const QString& dir = QString()); + ModList(const QString& dir, const QString& list_file); - size_t size() { return mods.size(); }; + virtual QVariant data ( const QModelIndex& index, int role = Qt::DisplayRole ) const; + virtual int rowCount ( const QModelIndex& parent = QModelIndex() ) const + { + return size(); + }; + virtual QVariant headerData ( int section, Qt::Orientation orientation, int role = Qt::DisplayRole ) const; + virtual int columnCount ( const QModelIndex& parent ) const; + + size_t size() const { return mods.size(); }; Mod& operator[](size_t index) { return mods[index]; }; /// Reloads the mod list and returns true if the list changed. virtual bool update(); - /// Adds the given mod to the list at the given index. + /** + * Adds the given mod to the list at the given index - if the list supports custom ordering + */ virtual bool installMod(const QFileInfo& filename, size_t index = 0); /// Deletes the mod at the given index. @@ -43,33 +54,14 @@ public: * move the mod at index to the position N * 0 is the beginning of the list, length() is the end of the list. */ - virtual bool moveMod(size_t from, size_t to) { return false; }; + virtual bool moveMod(size_t from, size_t to); virtual bool isValid(); signals: - virtual void changed(); + void changed(); protected: QDir m_dir; + QString m_list_file; QList<Mod> mods; }; - -/** - * A jar mod list. - * Backed by a folder and a file which specifies the load order. - */ -class JarModList : public ModList -{ - Q_OBJECT -public: - JarModList(const QString& dir, const QString& list_file, LegacyInstance * inst) - : ModList(dir), m_listfile(list_file), m_inst(inst) {} - - virtual bool update(); - virtual bool installMod(const QString &filename, size_t index); - virtual bool deleteMod(size_t index); - virtual bool moveMod(size_t from, size_t to); -protected: - QString m_listfile; - LegacyInstance * m_inst; -}; diff --git a/backend/NostalgiaInstance.cpp b/logic/NostalgiaInstance.cpp index 0a7f3c5a..0a7f3c5a 100644 --- a/backend/NostalgiaInstance.cpp +++ b/logic/NostalgiaInstance.cpp diff --git a/backend/NostalgiaInstance.h b/logic/NostalgiaInstance.h index 7c48713b..b8858218 100644 --- a/backend/NostalgiaInstance.h +++ b/logic/NostalgiaInstance.h @@ -2,7 +2,7 @@ #include "OneSixInstance.h" -class LIBMULTIMC_EXPORT NostalgiaInstance : public OneSixInstance +class NostalgiaInstance : public OneSixInstance { Q_OBJECT public: diff --git a/backend/OneSixAssets.cpp b/logic/OneSixAssets.cpp index db9e7421..db9e7421 100644 --- a/backend/OneSixAssets.cpp +++ b/logic/OneSixAssets.cpp diff --git a/backend/OneSixAssets.h b/logic/OneSixAssets.h index 8c345daa..8c345daa 100644 --- a/backend/OneSixAssets.h +++ b/logic/OneSixAssets.h diff --git a/backend/OneSixInstance.cpp b/logic/OneSixInstance.cpp index 46866b0e..b7f39e4a 100644 --- a/backend/OneSixInstance.cpp +++ b/logic/OneSixInstance.cpp @@ -151,6 +151,13 @@ void OneSixInstance::cleanupAfterRun() dir.removeRecursively(); } +QSharedPointer< QDialog > OneSixInstance::createModEditDialog ( QWidget* parent ) +{ + return QSharedPointer< QDialog >(); +} + + + bool OneSixInstance::setIntendedVersionId ( QString version ) { settings().set("IntendedVersion", version); diff --git a/backend/OneSixInstance.h b/logic/OneSixInstance.h index 12ad9e40..edd96eaa 100644 --- a/backend/OneSixInstance.h +++ b/logic/OneSixInstance.h @@ -5,7 +5,7 @@ class FullVersion; class BaseUpdate; -class LIBMULTIMC_EXPORT OneSixInstance : public BaseInstance +class OneSixInstance : public BaseInstance { Q_OBJECT public: @@ -23,6 +23,8 @@ public: virtual bool shouldUpdate() const; virtual void setShouldUpdate(bool val); + virtual QSharedPointer< QDialog > createModEditDialog ( QWidget* parent ); + /// reload the full version json file. return true on success! bool reloadFullVersion(); /// get the current full version info diff --git a/backend/OneSixInstance_p.h b/logic/OneSixInstance_p.h index 1037e03c..1037e03c 100644 --- a/backend/OneSixInstance_p.h +++ b/logic/OneSixInstance_p.h diff --git a/backend/OneSixUpdate.cpp b/logic/OneSixUpdate.cpp index 2bb2f496..2bb2f496 100644 --- a/backend/OneSixUpdate.cpp +++ b/logic/OneSixUpdate.cpp diff --git a/backend/OneSixUpdate.h b/logic/OneSixUpdate.h index 75575166..7a0cac52 100644 --- a/backend/OneSixUpdate.h +++ b/logic/OneSixUpdate.h @@ -21,13 +21,12 @@ #include "net/DownloadJob.h" #include "tasks/Task.h" -#include "libmmc_config.h" #include "BaseUpdate.h" class MinecraftVersion; class BaseInstance; -class LIBMULTIMC_EXPORT OneSixUpdate : public BaseUpdate +class OneSixUpdate : public BaseUpdate { Q_OBJECT public: diff --git a/backend/OneSixVersion.cpp b/logic/OneSixVersion.cpp index 2b2f79f5..2b2f79f5 100644 --- a/backend/OneSixVersion.cpp +++ b/logic/OneSixVersion.cpp diff --git a/backend/OneSixVersion.h b/logic/OneSixVersion.h index e4f75542..e4f75542 100644 --- a/backend/OneSixVersion.h +++ b/logic/OneSixVersion.h diff --git a/backend/VersionFactory.cpp b/logic/VersionFactory.cpp index 9eccce26..9eccce26 100644 --- a/backend/VersionFactory.cpp +++ b/logic/VersionFactory.cpp diff --git a/backend/VersionFactory.h b/logic/VersionFactory.h index 82c5278a..82c5278a 100644 --- a/backend/VersionFactory.h +++ b/logic/VersionFactory.h diff --git a/backend/lists/InstVersionList.cpp b/logic/lists/InstVersionList.cpp index 855fce45..7dc67155 100644 --- a/backend/lists/InstVersionList.cpp +++ b/logic/lists/InstVersionList.cpp @@ -13,8 +13,8 @@ * limitations under the License. */ -#include "InstVersionList.h" -#include "InstanceVersion.h" +#include "logic/lists/InstVersionList.h" +#include "logic/InstanceVersion.h" InstVersionList::InstVersionList(QObject *parent) : QAbstractListModel(parent) diff --git a/backend/lists/InstVersionList.h b/logic/lists/InstVersionList.h index ff6938b4..bc6aa5d4 100644 --- a/backend/lists/InstVersionList.h +++ b/logic/lists/InstVersionList.h @@ -20,8 +20,7 @@ #include <QAbstractListModel> #include <QSharedPointer> -#include "libmmc_config.h" -#include "InstanceVersion.h" +#include "logic/InstanceVersion.h" class Task; @@ -37,7 +36,7 @@ class Task; * all have a default implementation, but they can be overridden by plugins to * change the behavior of the list. */ -class LIBMULTIMC_EXPORT InstVersionList : public QAbstractListModel +class InstVersionList : public QAbstractListModel { Q_OBJECT public: diff --git a/backend/lists/InstanceList.cpp b/logic/lists/InstanceList.cpp index 101d52c5..39f55f7b 100644 --- a/backend/lists/InstanceList.cpp +++ b/logic/lists/InstanceList.cpp @@ -22,9 +22,9 @@ #include <QJsonObject> #include <QJsonArray> -#include "lists/InstanceList.h" -#include "BaseInstance.h" -#include "InstanceFactory.h" +#include "logic/lists/InstanceList.h" +#include "logic/BaseInstance.h" +#include "logic/InstanceFactory.h" #include "pathutils.h" diff --git a/backend/lists/InstanceList.h b/logic/lists/InstanceList.h index 8c9965e5..82ef0ea4 100644 --- a/backend/lists/InstanceList.h +++ b/logic/lists/InstanceList.h @@ -18,12 +18,11 @@ #include <QObject> #include <QSharedPointer> -#include "BaseInstance.h" -#include "libmmc_config.h" +#include "logic/BaseInstance.h" class BaseInstance; -class LIBMULTIMC_EXPORT InstanceList : public QObject +class InstanceList : public QObject { Q_OBJECT private: diff --git a/backend/lists/LwjglVersionList.cpp b/logic/lists/LwjglVersionList.cpp index 068394e8..0e7b5a34 100644 --- a/backend/lists/LwjglVersionList.cpp +++ b/logic/lists/LwjglVersionList.cpp @@ -14,7 +14,7 @@ */ #include "LwjglVersionList.h" -#include <net/NetWorker.h> +#include "logic/net/NetWorker.h" #include <QtNetwork> diff --git a/backend/lists/LwjglVersionList.h b/logic/lists/LwjglVersionList.h index 2360f181..638a0b67 100644 --- a/backend/lists/LwjglVersionList.h +++ b/logic/lists/LwjglVersionList.h @@ -22,12 +22,10 @@ #include <QNetworkReply> -#include "libmmc_config.h" - class LWJGLVersion; typedef QSharedPointer<LWJGLVersion> PtrLWJGLVersion; -class LIBMULTIMC_EXPORT LWJGLVersion : public QObject +class LWJGLVersion : public QObject { Q_OBJECT @@ -49,7 +47,7 @@ protected: QString m_url; }; -class LIBMULTIMC_EXPORT LWJGLVersionList : public QAbstractListModel +class LWJGLVersionList : public QAbstractListModel { Q_OBJECT public: diff --git a/backend/lists/MinecraftVersionList.cpp b/logic/lists/MinecraftVersionList.cpp index 2e5f0cd7..80b4fbc0 100644 --- a/backend/lists/MinecraftVersionList.cpp +++ b/logic/lists/MinecraftVersionList.cpp @@ -14,7 +14,7 @@ */ #include "MinecraftVersionList.h" -#include <net/NetWorker.h> +#include <logic/net/NetWorker.h> #include <QDebug> diff --git a/backend/lists/MinecraftVersionList.h b/logic/lists/MinecraftVersionList.h index d3b18691..0477379f 100644 --- a/backend/lists/MinecraftVersionList.h +++ b/logic/lists/MinecraftVersionList.h @@ -21,14 +21,13 @@ #include <QSharedPointer> #include "InstVersionList.h" -#include "tasks/Task.h" -#include "MinecraftVersion.h" -#include "libmmc_config.h" +#include "logic/tasks/Task.h" +#include "logic/MinecraftVersion.h" class MCVListLoadTask; class QNetworkReply; -class LIBMULTIMC_EXPORT MinecraftVersionList : public InstVersionList +class MinecraftVersionList : public InstVersionList { Q_OBJECT public: diff --git a/backend/net/DownloadJob.cpp b/logic/net/DownloadJob.cpp index ef842dfd..ef842dfd 100644 --- a/backend/net/DownloadJob.cpp +++ b/logic/net/DownloadJob.cpp diff --git a/backend/net/DownloadJob.h b/logic/net/DownloadJob.h index cbde3852..cbde3852 100644 --- a/backend/net/DownloadJob.h +++ b/logic/net/DownloadJob.h diff --git a/backend/net/JobQueue.h b/logic/net/JobQueue.h index 26f49307..26f49307 100644 --- a/backend/net/JobQueue.h +++ b/logic/net/JobQueue.h diff --git a/backend/net/NetWorker.cpp b/logic/net/NetWorker.cpp index 1eef13d9..1eef13d9 100644 --- a/backend/net/NetWorker.cpp +++ b/logic/net/NetWorker.cpp diff --git a/backend/net/NetWorker.h b/logic/net/NetWorker.h index 98374e3b..98374e3b 100644 --- a/backend/net/NetWorker.h +++ b/logic/net/NetWorker.h diff --git a/backend/tasks/LoginTask.cpp b/logic/tasks/LoginTask.cpp index 48202044..21ac2a5d 100644 --- a/backend/tasks/LoginTask.cpp +++ b/logic/tasks/LoginTask.cpp @@ -14,7 +14,7 @@ */ #include "LoginTask.h" -#include <net/NetWorker.h> +#include "logic/net/NetWorker.h" #include <QStringList> diff --git a/backend/tasks/LoginTask.h b/logic/tasks/LoginTask.h index 77d65255..bde672b8 100644 --- a/backend/tasks/LoginTask.h +++ b/logic/tasks/LoginTask.h @@ -18,7 +18,6 @@ #include "Task.h" #include <QSharedPointer> -#include "libmmc_config.h" struct UserInfo { @@ -35,7 +34,7 @@ struct LoginResponse class QNetworkReply; -class LIBMULTIMC_EXPORT LoginTask : public Task +class LoginTask : public Task { Q_OBJECT public: diff --git a/backend/tasks/Task.cpp b/logic/tasks/Task.cpp index 7c148591..7c148591 100644 --- a/backend/tasks/Task.cpp +++ b/logic/tasks/Task.cpp diff --git a/backend/tasks/Task.h b/logic/tasks/Task.h index 15219931..91852b0f 100644 --- a/backend/tasks/Task.h +++ b/logic/tasks/Task.h @@ -19,9 +19,7 @@ #include <QObject> #include <QString> -#include "libmmc_config.h" - -class LIBMULTIMC_EXPORT Task : public QObject +class Task : public QObject { Q_OBJECT public: @@ -27,9 +27,9 @@ #include "gui/consolewindow.h" #include "AppSettings.h" -#include "lists/InstanceList.h" -#include "tasks/LoginTask.h" -#include "MinecraftProcess.h" +#include "logic/lists/InstanceList.h" +#include "logic/tasks/LoginTask.h" +#include "logic/MinecraftProcess.h" #include "pathutils.h" #include "cmdutils.h" |