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:
@ -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) {
|
||||
|
Reference in New Issue
Block a user