From d161e1a0d61181185323fcb547d9e0651d546fb2 Mon Sep 17 00:00:00 2001 From: Tannin Date: Sun, 14 Apr 2013 20:49:18 +0200 Subject: - if no version is known for a mod, the file date is used - added files for the python proxy --- src/installationmanager.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/installationmanager.cpp') diff --git a/src/installationmanager.cpp b/src/installationmanager.cpp index 63945150..16761f24 100644 --- a/src/installationmanager.cpp +++ b/src/installationmanager.cpp @@ -43,6 +43,7 @@ along with Mod Organizer. If not, see . #include #include #include +#include #include #include @@ -720,6 +721,11 @@ bool InstallationManager::install(const QString &fileName, const QString &modsDi categoryID = CategoryFactory::instance().getCategoryID(categoryIndex); } + if (version.isEmpty()) { + QDateTime lastMod = fileInfo.lastModified(); + version = "d" + lastMod.toString("yyyy.M.d"); + } + { // guess the mod name and mod if from the file name if there was no meta information QString guessedModName; int guessedModID = modID; -- cgit v1.3.1