summaryrefslogtreecommitdiff
path: root/src/installationmanager.h
diff options
context:
space:
mode:
authorJonathan Feenstra <26406078+JonathanFeenstra@users.noreply.github.com>2026-05-14 08:43:46 +0200
committerGitHub <noreply@github.com>2026-05-14 01:43:46 -0500
commit22b169570140a0ec8f827471d9218f6461c7ac44 (patch)
tree6405195013ccf8ece22dcf45892df38aefc9c127 /src/installationmanager.h
parent3efaf7c9463261fb2d182a7ae00d9045a2b273b8 (diff)
Install manager metadata updates
* Fix missing author and uploader when installing mods * Refactor doInstall parameters into a struct
Diffstat (limited to 'src/installationmanager.h')
-rw-r--r--src/installationmanager.h20
1 files changed, 16 insertions, 4 deletions
diff --git a/src/installationmanager.h b/src/installationmanager.h
index e125bbe9..367a3c24 100644
--- a/src/installationmanager.h
+++ b/src/installationmanager.h
@@ -263,13 +263,25 @@ public:
QString generateBackupName(const QString& directoryName) const;
private:
+ struct ModInstallationInfo
+ {
+ MOBase::GuessedValue<QString> modName;
+ const QString gameName;
+ const int modID;
+ const QString version;
+ const QString newestVersion;
+ const int categoryID;
+ const int fileCategoryID;
+ const QString repository;
+ const QString author;
+ const QString uploader;
+ const QString uploaderUrl;
+ };
+
// actually perform the installation (write files to the disk, etc.), returns the
// installation result
//
- InstallationResult doInstall(MOBase::GuessedValue<QString>& modName, QString gameName,
- int modID, const QString& version,
- const QString& newestVersion, int categoryID,
- int fileCategoryID, const QString& repository);
+ InstallationResult doInstall(ModInstallationInfo& info);
/**
* @brief Clean the list of created files by removing all entries that are not