From acf35da699f2bb01900552323cc1983b7f065422 Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 9 Dec 2014 18:09:11 +0100 Subject: now stored installed files with each mod --- src/installationmanager.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index d6435e57..25866cb9 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -568,6 +568,14 @@ bool InstallationManager::doInstall(GuessedValue &modName, int modID, } settingsFile.setValue("installationFile", m_CurrentFile); + if (!merge) { + // this does not clear the list we have in memory but the mod is going to have to be re-read anyway + // btw.: installedFiles were written with beginWriteArray but we can still clear it with beginGroup. nice + settingsFile.beginGroup("installedFiles"); + settingsFile.remove(""); + settingsFile.endGroup(); + } + return true; } -- cgit v1.3.1