summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/equipmentwindow.cpp3
-rw-r--r--src/gui/questswindow.cpp2
-rw-r--r--src/gui/skilldialog.cpp4
3 files changed, 5 insertions, 4 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 802a08559..8511c7643 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -401,7 +401,8 @@ void EquipmentWindow::resetBeing(const Being *const being)
void EquipmentWindow::fillBoxes()
{
- XML::Document *const doc = new XML::Document("equipmentwindow.xml");
+ XML::Document *const doc = new XML::Document(
+ paths.getStringValue("equipmentWindowFile"));
const XmlNodePtr root = doc->rootNode();
if (!root)
{
diff --git a/src/gui/questswindow.cpp b/src/gui/questswindow.cpp
index 541768fa7..42042e58f 100644
--- a/src/gui/questswindow.cpp
+++ b/src/gui/questswindow.cpp
@@ -222,7 +222,7 @@ QuestsWindow::~QuestsWindow()
void QuestsWindow::loadXml()
{
- XML::Document doc("quests.xml");
+ XML::Document doc(paths.getStringValue("questsFile"));
const XmlNodePtr root = doc.rootNode();
if (!root)
return;
diff --git a/src/gui/skilldialog.cpp b/src/gui/skilldialog.cpp
index 693dc6c8b..6365efcd8 100644
--- a/src/gui/skilldialog.cpp
+++ b/src/gui/skilldialog.cpp
@@ -345,8 +345,8 @@ void SkillDialog::loadSkills()
{
clearSkills();
- XML::Document doc("ea-skills.xml");
- XML::Document doc2("skills.xml");
+ XML::Document doc(paths.getStringValue("skillsFile"));
+ XML::Document doc2(paths.getStringValue("skillsFile2"));
XmlNodePtr root = doc.rootNode();
int setCount = 0;