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