|
|
@ -165,7 +165,7 @@ void Wizard::MainWizard::setupGameSettings()
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QTextStream stream(&file);
|
|
|
|
QTextStream stream(&file);
|
|
|
|
ensureUtf8Encoding(stream);
|
|
|
|
Misc::ensureUtf8Encoding(stream);
|
|
|
|
|
|
|
|
|
|
|
|
mGameSettings.readUserFile(stream);
|
|
|
|
mGameSettings.readUserFile(stream);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -197,7 +197,7 @@ void Wizard::MainWizard::setupGameSettings()
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QTextStream stream(&file);
|
|
|
|
QTextStream stream(&file);
|
|
|
|
ensureUtf8Encoding(stream);
|
|
|
|
Misc::ensureUtf8Encoding(stream);
|
|
|
|
|
|
|
|
|
|
|
|
mGameSettings.readFile(stream);
|
|
|
|
mGameSettings.readFile(stream);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -233,7 +233,7 @@ void Wizard::MainWizard::setupLauncherSettings()
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
QTextStream stream(&file);
|
|
|
|
QTextStream stream(&file);
|
|
|
|
ensureUtf8Encoding(stream);
|
|
|
|
Misc::ensureUtf8Encoding(stream);
|
|
|
|
|
|
|
|
|
|
|
|
mLauncherSettings.readFile(stream);
|
|
|
|
mLauncherSettings.readFile(stream);
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -460,7 +460,7 @@ void Wizard::MainWizard::writeSettings()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
QTextStream stream(&file);
|
|
|
|
QTextStream stream(&file);
|
|
|
|
ensureUtf8Encoding(stream);
|
|
|
|
Misc::ensureUtf8Encoding(stream);
|
|
|
|
|
|
|
|
|
|
|
|
mGameSettings.writeFile(stream);
|
|
|
|
mGameSettings.writeFile(stream);
|
|
|
|
file.close();
|
|
|
|
file.close();
|
|
|
@ -486,7 +486,7 @@ void Wizard::MainWizard::writeSettings()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
stream.setDevice(&file);
|
|
|
|
stream.setDevice(&file);
|
|
|
|
ensureUtf8Encoding(stream);
|
|
|
|
Misc::ensureUtf8Encoding(stream);
|
|
|
|
|
|
|
|
|
|
|
|
mLauncherSettings.writeFile(stream);
|
|
|
|
mLauncherSettings.writeFile(stream);
|
|
|
|
file.close();
|
|
|
|
file.close();
|
|
|
|