From 2146cc92079c9a551efa76d58aa50ff30fb9d400 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Capelle?= Date: Mon, 4 May 2020 20:17:02 +0200 Subject: [PATCH] Fix wrapper for custom installer. --- src/runner/proxypluginwrappers.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/runner/proxypluginwrappers.cpp b/src/runner/proxypluginwrappers.cpp index 320c601..5d016d1 100644 --- a/src/runner/proxypluginwrappers.cpp +++ b/src/runner/proxypluginwrappers.cpp @@ -353,10 +353,13 @@ std::set IPluginInstallerCustomWrapper::supportedExtensions() const return basicWrapperFunctionImplementation>(this, "supportedExtensions"); } -IPluginInstaller::EInstallResult IPluginInstallerCustomWrapper::install(GuessedValue &modName, QString gameName, const QString &archiveName, - const QString &version, int modID) +IPluginInstaller::EInstallResult IPluginInstallerCustomWrapper::install( + GuessedValue &modName, QString gameName, const QString &archiveName, const QString &version, int modID) { - return basicWrapperFunctionImplementation(this, "install", modName, gameName, archiveName, version, modID); + // Note: This requires far more less trouble than the "Simple" installer version since 1) there is no tree + // and 2) there version and modId cannot be modified: + return basicWrapperFunctionImplementation( + this, "install", boost::ref(modName), gameName, archiveName, version, modID); } /// end IPluginInstallerCustom Wrapper