--- a/QTfrontend/model/ammoSchemeModel.cpp Thu Feb 08 08:50:45 2018 +0100
+++ b/QTfrontend/model/ammoSchemeModel.cpp Thu Feb 08 09:14:20 2018 +0100
@@ -680,7 +680,7 @@
schemes.append(construction);
schemes.append(hedgeeditor);
-
+ if (!QDir(cfgdir->absolutePath() + "/Schemes").exists()) QDir().mkdir(cfgdir->absolutePath() + "/Schemes");
if (!QDir(directory).exists()) {
QDir().mkdir(directory);
@@ -692,7 +692,7 @@
if (!predefSchemesNames.contains(fileConfig.value(spNames[0]).toString()))
{
QList<QVariant> scheme;
- QSettings file(directory + "/" + fileConfig.value(spNames[0]).toString() + ".ini", QSettings::IniFormat);
+ QSettings file(directory + "/" + fileConfig.value(spNames[0]).toString() + ".hwg", QSettings::IniFormat);
for (int k = 0; k < spNames.size(); ++k) {
scheme << fileConfig.value(spNames[k], defaultScheme[k]);
@@ -833,7 +833,7 @@
QList<QVariant> scheme = schemes[row];
int j = spNames.indexOf("name");
- QFile(cfgdir->absolutePath() + "/Game Settings/" + scheme[j].toString() + ".ini").remove();
+ QFile(cfgdir->absolutePath() + "/Schemes/Game/" + scheme[j].toString() + ".hwg").remove();
schemes.removeAt(row);
endRemoveRows();
@@ -859,7 +859,7 @@
{
QList<QVariant> scheme = schemes[i + numberOfDefaultSchemes];
int j = spNames.indexOf("name");
- QSettings file(cfgdir->absolutePath() + "/Game Settings/" + scheme[j].toString() + ".ini", QSettings::IniFormat);
+ QSettings file(cfgdir->absolutePath() + "/Schemes/Game/" + scheme[j].toString() + ".hwg", QSettings::IniFormat);
for (int k = 0; k < scheme.size(); ++k)
file.setValue(spNames[k], scheme[k]);