mirror of
https://github.com/lcdr/utils.git
synced 2024-08-30 17:32:16 +00:00
Moved gamemessage definitions.
This commit is contained in:
parent
8eece0fee1
commit
44bae062c7
@ -1,6 +1,5 @@
|
||||
[paths]
|
||||
db_path=<path to cdclient.sqlite>
|
||||
gamemessages_path=gamemessages.xml
|
||||
[parse]
|
||||
creations=True
|
||||
serializations=True
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user