refactor: use function cb instead of class cb in getVersions

I've discovered even more functional programming! :^)

Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
flow
2022-07-18 19:22:31 -03:00
parent 5bc67d3f6b
commit 6f052baa94
4 changed files with 10 additions and 9 deletions

View File

@ -85,7 +85,7 @@ class ModAPI {
ModLoaderTypes loaders;
};
virtual void getVersions(CallerType* caller, VersionSearchArgs&& args) const = 0;
virtual void getVersions(VersionSearchArgs&& args, std::function<void(QJsonDocument&, QString)> callback) const = 0;
static auto getModLoaderString(ModLoaderType type) -> const QString {
switch (type) {