From 5718af351034c1936a91a3782651733dfecdc4e5 Mon Sep 17 00:00:00 2001 From: Tannin Date: Tue, 15 Jul 2014 20:37:10 +0200 Subject: - Disabled compilation of loot_cli as the current loot version can't be compiled or linked against with vs 2010 - bugfix: some incompatibilities with non-skyrim games - bugfix: incorrect handling of plurals in translateable strings --- src/savegame.cpp | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/savegame.cpp') diff --git a/src/savegame.cpp b/src/savegame.cpp index d09f291c..06e028e2 100644 --- a/src/savegame.cpp +++ b/src/savegame.cpp @@ -21,10 +21,11 @@ along with Mod Organizer. If not, see . #include #include #include -#include "gameinfo.h" #include #include +#include #include +#include "gameinfo.h" SaveGame::SaveGame(QObject *parent) @@ -68,11 +69,14 @@ SaveGame::~SaveGame() QStringList SaveGame::attachedFiles() const { QStringList result; - QString seFileFile = fileName().mid(0).replace(".ess", ".skse"); - QFileInfo seFile(seFileFile); - if (seFile.exists()) { - result.append(seFile.absoluteFilePath()); + foreach (const std::wstring &ext, MOShared::GameInfo::instance().getSavegameAttachmentExtensions()) { + QFileInfo fi(fileName()); + fi.setFile(fi.canonicalPath() + "/" + fi.completeBaseName() + "." + MOBase::ToQString(ext)); + if (fi.exists()) { + result.append(fi.filePath()); + } } + return result; } -- cgit v1.3.1