summaryrefslogtreecommitdiff
path: root/src/savestab.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2025-05-23 14:08:01 -0500
committerGitHub <noreply@github.com>2025-05-23 14:08:01 -0500
commit3a8ea3cccee06397e90305e1e39a305f8b7c3cb3 (patch)
tree6c16bf9825bf3f1613a8536d4702f24667fc4c80 /src/savestab.cpp
parent5d766e94a7a3b3fa861d57d3ad6ae619d98dd5d8 (diff)
Oblivion Remastered Meta PR (#2241)
* Allow for mod directory maps - Set main data files based on game - Mapped mod directories to VFS - Update overwrite setup * Skip if mod contains no 'data' dir * More mod directory compatibility fixes * Workaround for Obl:Rem save location - SLocalSavePath does nothing yet MO2 wants to use it to override the default save location - This only applies to BGS games anyway, we should move this logic * First pass for overwrite mod directory support * More overwrite move / delete restrictions * Fix issue with moving directories that are not required * Formatting pass * More modDataDirectory updates * Formatting --------- Co-authored-by: Mikaƫl Capelle <capelle.mikael@gmail.com>
Diffstat (limited to 'src/savestab.cpp')
-rw-r--r--src/savestab.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/savestab.cpp b/src/savestab.cpp
index 2cbd17de..f59245cb 100644
--- a/src/savestab.cpp
+++ b/src/savestab.cpp
@@ -4,6 +4,7 @@
#include "ui_mainwindow.h"
#include <iplugingame.h>
#include <isavegameinfowidget.h>
+#include <localsavegames.h>
using namespace MOBase;
@@ -128,13 +129,15 @@ void SavesTab::refreshSavesIfOpen()
QDir SavesTab::currentSavesDir() const
{
+ // TODO: This code should probably be handled by the game plugins
QDir savesDir;
if (m_core.currentProfile()->localSavesEnabled()) {
savesDir.setPath(m_core.currentProfile()->savePath());
} else {
auto iniFiles = m_core.managedGame()->iniFiles();
- if (iniFiles.isEmpty()) {
+ if (iniFiles.isEmpty() ||
+ m_core.gameFeatures().gameFeature<LocalSavegames>() == nullptr) {
return m_core.managedGame()->savesDirectory();
}