Moved gamemessage definitions.

This commit is contained in:
lcdr 2017-02-09 10:40:01 +01:00
parent 8eece0fee1
commit 44bae062c7
3 changed files with 1 additions and 2 deletions

View File

@ -1,6 +1,5 @@
[paths]
db_path=<path to cdclient.sqlite>
gamemessages_path=gamemessages.xml
[parse]
creations=True
serializations=True

View File

@ -148,7 +148,7 @@ class CaptureViewer(viewer.Viewer):
messagebox.showerror("Can not open database", "Make sure db_path in the INI is set correctly.")
sys.exit()
gamemsg_xml = ET.parse(config["paths"]["gamemessages_path"])
gamemsg_xml = ET.parse("packetdefinitions/gamemessages.xml")
self.gamemsgs = {}
for msg in gamemsg_xml.findall("message"):
self.gamemsgs[int(msg.get("id"))] = msg