mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-10 03:39:55 +00:00
Modified write function to always use user location for openmw.cfg
This commit is contained in:
parent
ceb8190121
commit
ccfd011df6
@ -313,8 +313,9 @@ void MainDialog::writeConfig()
|
||||
QStringList dataFiles = mDataFilesPage->selectedMasters();
|
||||
dataFiles.append(mDataFilesPage->checkedPlugins());
|
||||
|
||||
// Open the config as a QFile
|
||||
QFile file(mGameConfig->fileName());
|
||||
// Open the config as a QFile
|
||||
QFile file(QString::fromStdString(Files::getPath(Files::Path_ConfigUser,
|
||||
"openmw", "openmw.cfg")));
|
||||
|
||||
if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) {
|
||||
// File cannot be opened or created
|
||||
|
Loading…
x
Reference in New Issue
Block a user