From 238638aa184ada418c09d032f9a32eee64e5a69a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 30 Jul 2015 21:06:40 +0300 Subject: Dehardcode file name weapons.xml. --- src/resources/db/weaponsdb.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/resources') diff --git a/src/resources/db/weaponsdb.cpp b/src/resources/db/weaponsdb.cpp index 75c951053..17ca96c9f 100644 --- a/src/resources/db/weaponsdb.cpp +++ b/src/resources/db/weaponsdb.cpp @@ -20,6 +20,8 @@ #include "resources/db/weaponsdb.h" +#include "configuration.h" + #include "utils/xmlutils.h" #include "debug.h" @@ -34,7 +36,7 @@ namespace static void loadDB(const std::string &name, WeaponsInfos &arr) { - readXmlIntVector("weapons.xml", + readXmlIntVector(paths.getStringValue("weaponsFile"), "weapons", name, "item", -- cgit v1.2.3-70-g09d2