diff options
| author | Tannin <devnull@localhost> | 2014-07-15 20:37:10 +0200 |
|---|---|---|
| committer | Tannin <devnull@localhost> | 2014-07-15 20:37:10 +0200 |
| commit | 5718af351034c1936a91a3782651733dfecdc4e5 (patch) | |
| tree | fe3ad48dc7b3b3a413a2f726df7a88742036007e /src/savegame.cpp | |
| parent | 434b6be69dd425504c293866fd4f9d7556ec7342 (diff) | |
- 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
Diffstat (limited to 'src/savegame.cpp')
| -rw-r--r-- | src/savegame.cpp | 14 |
1 files changed, 9 insertions, 5 deletions
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 <http://www.gnu.org/licenses/>. #include <QFile> #include <QBuffer> #include <set> -#include "gameinfo.h" #include <QFileInfo> #include <QDateTime> +#include <utility.h> #include <limits> +#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; } |
