Updated Settings to cleanup logic plus add a note for hard coded paths.
This commit is contained in:
parent
33fafb29a8
commit
c6d82f5f55
|
@ -6,8 +6,8 @@
|
||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>400</width>
|
<width>481</width>
|
||||||
<height>600</height>
|
<height>645</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="windowTitle">
|
<property name="windowTitle">
|
||||||
|
@ -539,23 +539,31 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="1">
|
<item row="5" column="1">
|
||||||
<widget class="QPushButton" name="addItem">
|
<widget class="QPushButton" name="addItem">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>+</string>
|
<string>+</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="4" column="2">
|
<item row="5" column="2">
|
||||||
<widget class="QPushButton" name="removeItem">
|
<widget class="QPushButton" name="removeItem">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>--</string>
|
<string>--</string>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="3" column="1" colspan="3">
|
<item row="4" column="1" colspan="3">
|
||||||
<widget class="QListWidget" name="dirListWidget"/>
|
<widget class="QListWidget" name="dirListWidget"/>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="3" column="1">
|
||||||
|
<widget class="QLabel" name="label_9">
|
||||||
|
<property name="text">
|
||||||
|
<string>*** "BF1_ModTools" Goes To "C:/BF1_ModTools/Assets/Shipped Worlds/"
|
||||||
|
"BF2_ModTools" Goes To "C:/BF2_ModTools/assets/Sides/"</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
|
@ -37,11 +37,7 @@ void SettingsManager::readFromFile()
|
||||||
|
|
||||||
for (auto& it : lines)
|
for (auto& it : lines)
|
||||||
{
|
{
|
||||||
if (it.startsWith("<qkList>"))
|
if (it.startsWith("<bgOn>"))
|
||||||
{
|
|
||||||
m_listOfDirs = QString(it.right(it.size() - it.indexOf('>') - 1)).split(";");
|
|
||||||
}
|
|
||||||
else if (it.startsWith("<bgOn>"))
|
|
||||||
{
|
{
|
||||||
QList<QByteArray> values = it.right(it.size() - it.indexOf('>') - 1).split(';');
|
QList<QByteArray> values = it.right(it.size() - it.indexOf('>') - 1).split(';');
|
||||||
|
|
||||||
|
@ -90,6 +86,10 @@ void SettingsManager::readFromFile()
|
||||||
{
|
{
|
||||||
m_ambient = it.right(it.size() - it.indexOf('>') - 1).toFloat();
|
m_ambient = it.right(it.size() - it.indexOf('>') - 1).toFloat();
|
||||||
}
|
}
|
||||||
|
else if (it.startsWith("<qkList>"))
|
||||||
|
{
|
||||||
|
m_listOfDirs = QString(it.right(it.size() - it.indexOf('>') - 1)).split(";");
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
m_file.close();
|
m_file.close();
|
||||||
|
|
Loading…
Reference in New Issue