From 44bae062c734bab6f1292f7fd57818abf516735a Mon Sep 17 00:00:00 2001 From: lcdr Date: Thu, 9 Feb 2017 10:40:01 +0100 Subject: [PATCH] Moved gamemessage definitions. --- captureviewer.ini | 1 - captureviewer.pyw | 2 +- gamemessages.xml => packetdefinitions/gamemessages.xml | 0 3 files changed, 1 insertion(+), 2 deletions(-) rename gamemessages.xml => packetdefinitions/gamemessages.xml (100%) diff --git a/captureviewer.ini b/captureviewer.ini index fcb4a48..9e7a76f 100644 --- a/captureviewer.ini +++ b/captureviewer.ini @@ -1,6 +1,5 @@ [paths] db_path= -gamemessages_path=gamemessages.xml [parse] creations=True serializations=True diff --git a/captureviewer.pyw b/captureviewer.pyw index cb65892..c3fa1cd 100644 --- a/captureviewer.pyw +++ b/captureviewer.pyw @@ -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 diff --git a/gamemessages.xml b/packetdefinitions/gamemessages.xml similarity index 100% rename from gamemessages.xml rename to packetdefinitions/gamemessages.xml