pollymc/launcher
flow 6a18079953
refactor: generalize mod models and APIs to resources
Firstly, this abstract away behavior in the mod download models that can
also be applied to other types of resources into a superclass, allowing
other resource types to be implemented without so much code duplication.

For that, this also generalizes the APIs used (currently, ModrinthAPI
and FlameAPI) to be able to make requests to other types of resources.

It also does a general cleanup of both of those. In particular, this
makes use of std::optional instead of invalid values for errors and,
well, optional values :p

This is a squash of some commits that were becoming too interlaced
together to be cleanly separated.

Signed-off-by: flow <flowlnlnln@gmail.com>
2023-01-13 16:23:00 -03:00
..
icons Update launcher/icons/IconList.cpp 2022-12-10 10:31:44 -03:00
java Merge pull request #397 from flowln/windows_mod_updater_fixes_maybe 2022-11-10 14:34:15 +01:00
launch refactor: move MMCStrings -> StringUtils 2022-11-04 16:53:24 -03:00
meta Check parent in rowCount/columnCount/canFetchMore 2022-11-14 19:05:57 +00:00
minecraft refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
modplatform refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
mojang refactor: restructure tests 2022-09-11 22:29:01 +02:00
net refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
news
pathmatcher chore: add REUSE headers 2022-11-12 20:28:30 +01:00
resources feat: add CC BY-SA 4.0 info for teawie images 2023-01-07 19:18:22 -05:00
screenshots
settings Rename 2022-10-19 15:02:43 +05:30
tasks refactor(Tasks): remove 'm_total_size' from ConcurrentTask 2022-12-17 13:10:19 -03:00
tools
translations Fix New Zealand English display 2022-11-19 16:28:27 +00:00
ui refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
updater Rename 2022-10-19 15:02:43 +05:30
Application.cpp Update launcher/Application.cpp with suggestion from scrumplex 2023-01-10 16:06:42 +01:00
Application.h add theme setup wizard 2023-01-10 16:06:01 +01:00
ApplicationMessage.cpp ApplicationMessage: Use QHash instead of QMap 2022-12-15 16:17:19 +02:00
ApplicationMessage.h ApplicationMessage: Use QHash instead of QMap 2022-12-15 16:17:19 +02:00
BaseInstaller.cpp
BaseInstaller.h fix: don't use forward-declared Ptr types in meta/ 2022-11-01 19:48:26 -03:00
BaseInstance.cpp fix: use display name in code 2022-10-18 09:50:27 +02:00
BaseInstance.h Mark paramater line as unused in guessLevel() 2022-11-14 19:05:56 +00:00
BaseVersion.h fix: don't use forward-declared Ptr types in meta/ 2022-11-01 19:48:26 -03:00
BaseVersionList.cpp Check parent in rowCount/columnCount/canFetchMore 2022-11-14 19:05:57 +00:00
BaseVersionList.h fix: don't use forward-declared Ptr types in meta/ 2022-11-01 19:48:26 -03:00
CMakeLists.txt refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
Commandline.cpp refactor: use QCommandLineParser instead 2022-09-26 13:21:27 +02:00
Commandline.h refactor: use QCommandLineParser instead 2022-09-26 13:21:27 +02:00
DataMigrationTask.cpp fix: implement code review suggestions 2022-11-12 20:28:30 +01:00
DataMigrationTask.h chore: add REUSE headers 2022-11-12 20:28:30 +01:00
DefaultVariable.h
DesktopServices.cpp fix: do not trash instances in Flatpak 2022-10-31 11:34:46 +01:00
DesktopServices.h fix: do not trash instances in Flatpak 2022-10-31 11:34:46 +01:00
Exception.h
ExponentialSeries.h
FileSystem.cpp fix(FileSystem): don't attempt to trash items on Windows Server 2023-01-10 12:50:56 -03:00
FileSystem.h Merge pull request #576 from Ryex/identify-zip-packs 2023-01-07 17:33:34 +01:00
Filter.cpp
Filter.h
GZip.cpp Change old style cast to C++ cast 2022-10-22 13:04:48 +02:00
GZip.h
install_prereqs.cmake.in
InstanceCopyPrefs.cpp added option to not copy screenshots 2022-10-29 22:27:31 -04:00
InstanceCopyPrefs.h added option to not copy screenshots 2022-10-29 22:27:31 -04:00
InstanceCopyTask.cpp fix(Inst.Copy): create FS::copy object inside the secundary thread 2022-12-04 12:29:38 -03:00
InstanceCopyTask.h Abstract away InstanceCopyPrefs' internals through new getSelectedFiltersAsRegex() function 2022-10-26 00:20:36 -04:00
InstanceCreationTask.cpp fix(Inst.Import): Show error reason in fail dialog 2022-12-01 15:32:26 -03:00
InstanceCreationTask.h fix: move file deletion to the end of the instance update 2022-09-20 18:36:09 -03:00
InstanceImportTask.cpp fix(Inst.Import): don't assert extra data when importing from ZIP 2022-12-13 00:31:41 -03:00
InstanceImportTask.h refactor(InstanceImport): require rvalue from 'extra_info' mappings 2022-12-06 17:00:34 -03:00
InstanceList.cpp fix(ManagedPackPage): only update the current instance exactly 2022-12-06 17:00:34 -03:00
InstanceList.h fix(ManagedPackPage): only update the current instance exactly 2022-12-06 17:00:34 -03:00
InstancePageProvider.h feat: add ManagedPackPage to the instance pages 2022-12-06 17:00:32 -03:00
InstanceTask.cpp refactor: abstract away update confirmation dialog 2022-12-06 17:00:29 -03:00
InstanceTask.h fix(ManagedPackPage): only update the current instance exactly 2022-12-06 17:00:34 -03:00
JavaCommon.cpp refactor: move MMCStrings -> StringUtils 2022-11-04 16:53:24 -03:00
JavaCommon.h
Json.cpp
Json.h
KonamiCode.cpp
KonamiCode.h
LaunchController.cpp fix: use display name in code 2022-10-18 09:50:27 +02:00
LaunchController.h Added Launch Demo button. 2022-09-15 18:44:18 -03:00
Launcher.in refactor: filter values in environment variables 2022-07-19 18:07:58 +02:00
LoggedProcess.cpp Fix use of Qt 5.14 enum 2022-08-09 00:17:53 -05:00
LoggedProcess.h Use C locale codec for decoding 2022-08-13 10:39:05 -05:00
main.cpp add breeze themes 2022-11-20 05:24:10 +01:00
MangoHud.cpp chore: replace naive mangohud detection with vulkan layer detection 2022-12-11 11:01:33 +01:00
MangoHud.h chore: replace naive mangohud detection with vulkan layer detection 2022-12-11 11:01:33 +01:00
Markdown.h refactor: replace hoedown markdown parser with cmark 2023-01-12 10:08:52 -05:00
MessageLevel.cpp
MessageLevel.h
MMCTime.cpp Fix minutes unit 2022-12-06 13:01:43 +01:00
MMCTime.h
MMCZip.cpp fix(Inst.Import): don't search inside 'overrides/' for the manifest 2022-12-01 15:15:15 -03:00
MMCZip.h fix(Inst.Import): don't search inside 'overrides/' for the manifest 2022-12-01 15:15:15 -03:00
MTPixmapCache.h fix: use QPixmapCache only from the main thread 2022-11-15 18:14:03 -03:00
NullInstance.h chore: add missing license headers 2022-10-08 20:12:07 +02:00
ProblemProvider.h
QObjectPtr.h refactor: simplify smart pointers more 2022-08-05 11:38:46 -03:00
RecursiveFileSystemWatcher.cpp
RecursiveFileSystemWatcher.h
ResourceDownloadTask.cpp refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
ResourceDownloadTask.h refactor: generalize mod models and APIs to resources 2023-01-13 16:23:00 -03:00
RuntimeContext.h chore: clang-format RuntimeContext 2022-10-15 12:43:15 +02:00
RWStorage.h
SeparatorPrefixTree.h
SkinUtils.cpp
SkinUtils.h
StringUtils.cpp refactor: fix CodeQL warnings in StringUtils::naturalCompare 2022-11-09 14:14:25 -03:00
StringUtils.h feat: add more separation between types of std::string in StringUtils 2022-11-04 16:53:25 -03:00
UpdateController.cpp fix: use display name in code 2022-10-18 09:50:27 +02:00
UpdateController.h
Usable.h
Version.cpp
Version.h
VersionProxyModel.cpp Check parent in rowCount/columnCount/canFetchMore 2022-11-14 19:05:57 +00:00
VersionProxyModel.h
WatchLock.h