Skip to content

Commit c723c11

Browse files
committed
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
1 parent 97d6254 commit c723c11

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/savestab.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,13 +129,14 @@ void SavesTab::refreshSavesIfOpen()
129129

130130
QDir SavesTab::currentSavesDir() const
131131
{
132+
// TODO: This code should probably be handled by the game plugins
132133
QDir savesDir;
133134
if (m_core.currentProfile()->localSavesEnabled()) {
134135
savesDir.setPath(m_core.currentProfile()->savePath());
135136
} else {
136137
auto iniFiles = m_core.managedGame()->iniFiles();
137138

138-
if (iniFiles.isEmpty()) {
139+
if (iniFiles.isEmpty() || m_core.gameFeatures().gameFeature<LocalSavegames>() == nullptr) {
139140
return m_core.managedGame()->savesDirectory();
140141
}
141142

0 commit comments

Comments
 (0)