mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-02 03:16:58 +03:00
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:
parent
5bc67d3f6b
commit
6f052baa94
4 changed files with 10 additions and 9 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue