diff options
author | flow <thiagodonato300@gmail.com> | 2022-03-06 16:45:39 -0300 |
---|---|---|
committer | flow <thiagodonato300@gmail.com> | 2022-03-06 16:45:39 -0300 |
commit | 39bd04f06ff42623f7349096d707c4a877fc7cd7 (patch) | |
tree | 8e3b6dd4da7e843f26afece1a1991ed6410bce71 /launcher/modplatform/ModAPI.h | |
parent | d755174bee1b1c5ba507d1d407236190501c7940 (diff) | |
download | PrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.tar.gz PrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.tar.bz2 PrismLauncher-39bd04f06ff42623f7349096d707c4a877fc7cd7.zip |
refactor: use Enum instead of raw int for ModLoaderType
Diffstat (limited to 'launcher/modplatform/ModAPI.h')
-rw-r--r-- | launcher/modplatform/ModAPI.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/launcher/modplatform/ModAPI.h b/launcher/modplatform/ModAPI.h index e60fa8e0..4d22a63d 100644 --- a/launcher/modplatform/ModAPI.h +++ b/launcher/modplatform/ModAPI.h @@ -6,7 +6,16 @@ class ModAPI { public: virtual ~ModAPI() = default; - inline virtual QString getModSearchURL(int, QString, QString, bool, QString) const { return ""; }; + // https://docs.curseforge.com/?http#tocS_ModLoaderType + enum ModLoaderType { + Any = 0, + Forge = 1, + Cauldron = 2, + LiteLoader = 3, + Fabric = 4 + }; + + inline virtual QString getModSearchURL(int, QString, QString, ModLoaderType, QString) const { return ""; }; inline virtual QString getVersionsURL(const QString& addonId) const { return ""; }; inline virtual QString getAuthorURL(const QString& name) const { return ""; }; }; |