Add script to merge compatibility lists

This commit is contained in:
Connor McLaughlin 2020-05-19 14:54:38 +10:00
parent 1eecd50f3d
commit 7be360475b
2 changed files with 141 additions and 82 deletions

View file

@ -1,265 +1,265 @@
<?xml version="1.0" ?>
<compatibility-list>
<entry code="SLPS-00208" title="Advanced V.G." region="NTSC-J" compatibility="5">
<entry code="SLPS-00208" compatibility="5" region="NTSC-J" title="Advanced V.G.">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01318" title="Advanced V.G. 2" region="NTSC-J" compatibility="5">
<entry code="SLPS-01318" compatibility="5" region="NTSC-J" title="Advanced V.G. 2">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00559" title="Airgrave" region="NTSC-J" compatibility="5">
<entry code="SLPS-00559" compatibility="5" region="NTSC-J" title="Airgrave">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-87228" title="Arcade Hits - Shienryuu" region="NTSC-J" compatibility="5">
<entry code="SLPM-87228" compatibility="5" region="NTSC-J" title="Arcade Hits - Shienryuu">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00849" title="Asuka 120% Excellent - Burning Fest. Excellent" region="NTSC-J" compatibility="5">
<entry code="SLPS-00849" compatibility="5" region="NTSC-J" title="Asuka 120% Excellent - Burning Fest. Excellent">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-02074" title="Asuka 120% Final: Burning Fest. Final" region="NTSC-J" compatibility="5">
<entry code="SLPS-02074" compatibility="5" region="NTSC-J" title="Asuka 120% Final: Burning Fest. Final">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00231" title="Asuka 120% Special: Burning Fest. Special" region="NTSC-J" compatibility="5">
<entry code="SLPS-00231" compatibility="5" region="NTSC-J" title="Asuka 120% Special: Burning Fest. Special">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCUS-94199" title="Bloody Roar" region="NTSC-U" compatibility="5">
<entry code="SCUS-94199" compatibility="5" region="NTSC-U" title="Bloody Roar">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCPS-45374" title="Bloody Roar 2 - Bringer of the New Age" region="NTSC-J" compatibility="5">
<entry code="SCPS-45374" compatibility="5" region="NTSC-J" title="Bloody Roar 2 - Bringer of the New Age">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01842" title="Bloody Roar 2 - Bringer of the New Age" region="NTSC-J" compatibility="5">
<entry code="SLPS-01842" compatibility="5" region="NTSC-J" title="Bloody Roar 2 - Bringer of the New Age">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLED-01928" title="Bloody Roar 2 - Bringer of the New Age" region="PAL" compatibility="5">
<entry code="SLED-01928" compatibility="5" region="PAL" title="Bloody Roar 2 - Bringer of the New Age">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLES-01722" title="Bloody Roar 2 - Bringer of the New Age" region="PAL" compatibility="5">
<entry code="SLES-01722" compatibility="5" region="PAL" title="Bloody Roar 2 - Bringer of the New Age">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-03002" title="Bomberman Land" region="NTSC-J" compatibility="5">
<entry code="SLPS-03002" compatibility="5" region="NTSC-J" title="Bomberman Land">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01347" title="Bomberman Wars" region="NTSC-J" compatibility="5">
<entry code="SLPS-01347" compatibility="5" region="NTSC-J" title="Bomberman Wars">
<compatibility>No Issues</compatibility>
<comments>Unofficial translation works too</comments>
</entry>
<entry code="SLPM-87053" title="Capcom VS SNK - Millenium Fight 2000 Pro" region="NTSC-J" compatibility="5">
<entry code="SLPM-87053" compatibility="5" region="NTSC-J" title="Capcom VS SNK - Millenium Fight 2000 Pro">
<compatibility>No Issues</compatibility>
<version-tested>0.1-774-g5a1b008</version-tested>
</entry>
<entry code="SCES-00344" title="Crash Bandicoot" region="PAL" compatibility="5">
<entry code="SCES-00344" compatibility="5" region="PAL" title="Crash Bandicoot">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCPS-10031" title="Crash Bandicoot" region="NTSC-J" compatibility="5">
<entry code="SCPS-10031" compatibility="5" region="NTSC-J" title="Crash Bandicoot">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCUS-94900" title="Crash Bandicoot" region="NTSC-U" compatibility="5">
<entry code="SCUS-94900" compatibility="5" region="NTSC-U" title="Crash Bandicoot">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCPS-10047" title="Crash Bandicoot 2: Corted no Gyakushuu!" region="NTSC-J" compatibility="5">
<entry code="SCPS-10047" compatibility="5" region="NTSC-J" title="Crash Bandicoot 2: Corted no Gyakushuu!">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCES-00967" title="Crash Bandicoot 2: Cortex Strikes Back" region="PAL" compatibility="5">
<entry code="SCES-00967" compatibility="5" region="PAL" title="Crash Bandicoot 2: Cortex Strikes Back">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCUS-94154" title="Crash Bandicoot 2: Cortex Strikes Back" region="NTSC-U" compatibility="5">
<entry code="SCUS-94154" compatibility="5" region="NTSC-U" title="Crash Bandicoot 2: Cortex Strikes Back">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCPS-10073" title="Crash Bandicoot 3: Buttobi! Sekai Isshuu" region="NTSC-J" compatibility="5">
<entry code="SCPS-10073" compatibility="5" region="NTSC-J" title="Crash Bandicoot 3: Buttobi! Sekai Isshuu">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCES-01420" title="Crash Bandicoot 3: Warped" region="PAL" compatibility="5">
<entry code="SCES-01420" compatibility="5" region="PAL" title="Crash Bandicoot 3: Warped">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCUS-94244" title="Crash Bandicoot 3: Warped" region="NTSC-U" compatibility="5">
<entry code="SCUS-94244" compatibility="5" region="NTSC-U" title="Crash Bandicoot 3: Warped">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00335" title="Dezaemon Plus" region="NTSC-J" compatibility="5">
<entry code="SLPS-00335" compatibility="5" region="NTSC-J" title="Dezaemon Plus">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86500" title="Dragon Quest VII - Eden no Senshitachi" region="NTSC-J" compatibility="5">
<entry code="SLPM-86500" compatibility="5" region="NTSC-J" title="Dragon Quest VII - Eden no Senshitachi">
<compatibility>No Issues</compatibility>
<upscaling-issues>Background gradient is rendered incorrectly with scaled dithering or true color.</upscaling-issues>
<version-tested>0.1-814-g8139230</version-tested>
</entry>
<entry code="SCUS-94163" title="Final Fantasy VII" region="NTSC-U" compatibility="5">
<entry code="SCUS-94163" compatibility="5" region="NTSC-U" title="Final Fantasy VII">
<compatibility>No Issues</compatibility>
<version-tested>0.1-841-g777809b</version-tested>
</entry>
<entry code="SLPS-00700" title="Final Fantasy VII" region="NTSC-J" compatibility="5">
<entry code="SLPS-00700" compatibility="5" region="NTSC-J" title="Final Fantasy VII">
<compatibility>No Issues</compatibility>
<version-tested>0.1-841-g777809b</version-tested>
</entry>
<entry code="SLPM-80205" title="G Darius" region="NTSC-J" compatibility="5">
<entry code="SLPM-80205" compatibility="5" region="NTSC-J" title="G Darius">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86155" title="Ganbare Goemon - Kuru nara Koi! Ayashige Ikka no Kuroi Kage" region="NTSC-J" compatibility="5">
<entry code="SLPS-00624" compatibility="5" region="NTSC-J" title="GaiaSeed: Project Seed Trap">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86774" title="Ganbare Goemon - Ooedo Daikaiten" region="NTSC-J" compatibility="5">
<entry code="SLPM-86155" compatibility="5" region="NTSC-J" title="Ganbare Goemon - Kuru nara Koi! Ayashige Ikka no Kuroi Kage">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86030" title="Ganbare Goemon - Uchuu Kaizoku Akogingu" region="NTSC-J" compatibility="5">
<entry code="SLPM-86774" compatibility="5" region="NTSC-J" title="Ganbare Goemon - Ooedo Daikaiten">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00624" title="GaiaSeed: Project Seed Trap" region="NTSC-J" compatibility="5">
<entry code="SLPM-86030" compatibility="5" region="NTSC-J" title="Ganbare Goemon - Uchuu Kaizoku Akogingu">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00644" title="Gegege no Kitarou" region="NTSC-J" compatibility="5">
<entry code="SLPS-00644" compatibility="5" region="NTSC-J" title="Gegege no Kitarou">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-87286" title="Gegege no Kitarou - Gyakushuu! Youma Daikessen" region="NTSC-J" compatibility="5">
<entry code="SLPM-87286" compatibility="5" region="NTSC-J" title="Gegege no Kitarou - Gyakushuu! Youma Daikessen">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86042" title="Gradius Gaiden" region="NTSC-J" compatibility="5">
<entry code="SLPM-86042" compatibility="5" region="NTSC-J" title="Gradius Gaiden">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01357" title="Guilty Gear" region="NTSC-J" compatibility="5">
<entry code="SLPS-01357" compatibility="5" region="NTSC-J" title="Guilty Gear">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01010" title="Kaze no Klonoa - Door to Phantomile" region="NTSC-J" compatibility="5">
<entry code="SLPM-86008" compatibility="5" region="NTSC-J" title="Jikkyou Oshaberi Parodius - Forever with Me">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01010" compatibility="5" region="NTSC-J" title="Kaze no Klonoa - Door to Phantomile">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of FMV is a little odd but work fine.</comments>
</entry>
<entry code="SCES-00942" title="Klonoa - Door to Phantomile" region="PAL" compatibility="5">
<entry code="SCES-00942" compatibility="5" region="PAL" title="Klonoa - Door to Phantomile">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of FMV is a little odd but work fine.</comments>
</entry>
<entry code="SLUS-00585" title="Klonoa - Door to Phantomile" region="NTSC-U" compatibility="5">
<entry code="SLUS-00585" compatibility="5" region="NTSC-U" title="Klonoa - Door to Phantomile">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of FMV is a little odd but work fine.</comments>
</entry>
<entry code="SLPS-00214" title="Kyuiin" region="NTSC-J" compatibility="5">
<entry code="SLPS-00214" compatibility="5" region="NTSC-J" title="Kyuiin">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86008" title="Jikkyou Oshaberi Parodius - Forever with Me" region="NTSC-J" compatibility="5">
<entry code="SLUS-01013" compatibility="5" region="NTSC-U" title="Legend of Mana">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLUS-01013" title="Legend of Mana" region="NTSC-U" compatibility="5">
<entry code="SLUS-00793" compatibility="5" region="NTSC-U" title="Marvel Super Heroes VS Street Fighter">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLUS-00793" title="Marvel Super Heroes VS Street Fighter" region="NTSC-U" compatibility="5">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLES-00766" title="Mega Man - Battle &amp; Chase" region="PAL" compatibility="5">
<entry code="SLES-00766" compatibility="5" region="PAL" title="Mega Man - Battle &amp; Chase">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of game is a little odd but work fine.</comments>
</entry>
<entry code="SLES-01064" title="Mega Man 8" region="PAL" compatibility="5">
<entry code="SLES-01064" compatibility="5" region="PAL" title="Mega Man 8">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of FMV is a little odd but work fine.</comments>
</entry>
<entry code="SLUS-00603" title="Mega Man Legends" region="NTSC-U" compatibility="5">
<entry code="SLUS-00603" compatibility="5" region="NTSC-U" title="Mega Man Legends">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLES-01485" title="Mega Man Legends" region="PAL" compatibility="5">
<entry code="SLES-01485" compatibility="5" region="PAL" title="Mega Man Legends">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLES-00503" title="Mega Man X3" region="PAL" compatibility="5">
<entry code="SLES-00503" compatibility="5" region="PAL" title="Mega Man X3">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of FMV is a little odd but work fine.</comments>
</entry>
<entry code="SLUS-80765" title="Monkey Hero" region="NTSC-U" compatibility="4">
<entry code="SLUS-80765" compatibility="4" region="NTSC-U" title="Monkey Hero">
<compatibility>Graphical/Audio Issues</compatibility>
<comments>Works, except dynamic lighting on character is broken.</comments>
</entry>
<entry code="SLUS-00329" title="NBA Hangtime" region="NTSC-U" compatibility="5">
<entry code="SLUS-00329" compatibility="5" region="NTSC-U" title="NBA Hangtime">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLUS-00060" title="NBA Live 96" region="NTSC-U" compatibility="1">
<entry code="SLUS-00060" compatibility="1" region="NTSC-U" title="NBA Live 96">
<compatibility>Doesn't Boot</compatibility>
<comments>Issue 419</comments>
</entry>
<entry code="SLPM-00899" title="Panzer Bandit" region="NTSC-J" compatibility="5">
<entry code="SLPM-00899" compatibility="5" region="NTSC-J" title="Panzer Bandit">
<compatibility>No Issues</compatibility>
<version-tested>0.1-774-g5a1b008</version-tested>
</entry>
<entry code="SLPM-86146" title="Pop'n Tanks!" region="NTSC-J" compatibility="5">
<entry code="SLPM-86146" compatibility="5" region="NTSC-J" title="Pop'n Tanks!">
<compatibility>No Issues</compatibility>
<version-tested>0.1-774-g5a1b008</version-tested>
</entry>
<entry code="SLUS-00102" title="Powerslave" region="NTSC-U" compatibility="5">
<entry code="SLUS-00102" compatibility="5" region="NTSC-U" title="Powerslave">
<compatibility>No Issues</compatibility>
<upscaling-issues>2D elements on title screen</upscaling-issues>
</entry>
<entry code="SLUS-00797" title="R4: Ridge Racer Type 4" region="NTSC-U" compatibility="5">
<entry code="SLPS-01688" compatibility="5" region="NTSC-U" title="R-Type Delta">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-01688" title="R-Type Delta" region="NTSC-U" compatibility="5">
<entry code="SLUS-00797" compatibility="5" region="NTSC-U" title="R4: Ridge Racer Type 4">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCUS-94402" title="Raiden Project" region="NTSC-U" compatibility="5">
<entry code="SCUS-94402" compatibility="5" region="NTSC-U" title="Raiden Project">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00764" title="Rockman - Battle &amp; Chase" region="NTSC-J" compatibility="5">
<entry code="SLPS-00764" compatibility="5" region="NTSC-J" title="Rockman - Battle &amp; Chase">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Notice bottom the line of game is a little odd but work fine.</comments>
</entry>
<entry code="SLPS-00630" title="Rockman 8 - Metal Heroes" region="NTSC-J" compatibility="5">
<entry code="SLPS-00630" compatibility="5" region="NTSC-J" title="Rockman 8 - Metal Heroes">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Noticed bottom the line of FMV is a little odd but works fine.</comments>
</entry>
<entry code="SLPS-01141" title="Rockman Dash - Hagane no Boukenshin" region="NTSC-J" compatibility="5">
<entry code="SLPS-01141" compatibility="5" region="NTSC-J" title="Rockman Dash - Hagane no Boukenshin">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00283" title="Rockman X3" region="NTSC-J" compatibility="5">
<entry code="SLPS-00283" compatibility="5" region="NTSC-J" title="Rockman X3">
<compatibility>No Issues</compatibility>
<version-tested>0.1-826-g712168c</version-tested>
<comments>Noticed bottom the line of FMV is a little odd but works fine.</comments>
</entry>
<entry code="SLPS-00154" title="Snatcher" region="NTSC-J" compatibility="1">
<entry code="SLPS-00154" compatibility="1" region="NTSC-J" title="Snatcher">
<compatibility>Doesn't Boot</compatibility>
<comments>Crashes in Cached/Recompiler; seems to work in Intrepeter</comments>
</entry>
<entry code="SLUS-00889" title="Team Buddies" region="NTSC-U" compatibility="5">
<entry code="SLUS-00889" compatibility="5" region="NTSC-U" title="Team Buddies">
<compatibility>No Issues</compatibility>
<version-tested>0.1-841-g777809b</version-tested>
</entry>
<entry code="SLPS-00300" title="Tekken 2" region="NTSC-J" compatibility="5">
<entry code="SLPS-00300" compatibility="5" region="NTSC-J" title="Tekken 2">
<compatibility>No Issues</compatibility>
<version-tested>9d1eb32</version-tested>
</entry>
<entry code="SLUS-00402" title="Tekken 3" region="NTSC-U" compatibility="5">
<entry code="SLUS-00402" compatibility="5" region="NTSC-U" title="Tekken 3">
<compatibility>No Issues</compatibility>
<version-tested>0.1-774-g5a1b008</version-tested>
</entry>
<entry code="SLUS-00939" title="Tenchu 2 - Birth of the Stealth Assassins" region="NTSC-U" compatibility="5">
<entry code="SLUS-00939" compatibility="5" region="NTSC-U" title="Tenchu 2 - Birth of the Stealth Assassins">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86084" title="The King of Fighters '97" region="NTSC-J" compatibility="5">
<entry code="SLPM-86084" compatibility="5" region="NTSC-J" title="The King of Fighters '97">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86201" title="The King of Fighters '98 - Dream Match Never Ends" region="NTSC-J" compatibility="5">
<entry code="SLPM-86201" compatibility="5" region="NTSC-J" title="The King of Fighters '98 - Dream Match Never Ends">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86462" title="The King of Fighters '99" region="NTSC-J" compatibility="5">
<entry code="SLPM-86462" compatibility="5" region="NTSC-J" title="The King of Fighters '99">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPM-86033" title="Tobal 2" region="NTSC-J" compatibility="5">
<entry code="SLPM-86033" compatibility="5" region="NTSC-J" title="Tobal 2">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-00643" title="Umihara Kawase Shun" region="NTSC-J" compatibility="5">
<entry code="SLPS-00643" compatibility="5" region="NTSC-J" title="Umihara Kawase Shun">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SLPS-02549" title="Umihara Kawase Shun Second Edition" region="NTSC-J" compatibility="5">
<entry code="SLPS-02549" compatibility="5" region="NTSC-J" title="Umihara Kawase Shun Second Edition">
<compatibility>No Issues</compatibility>
</entry>
<entry code="SCES-02845" title="Wip3out Special Edition" region="PAL" compatibility="4">
<entry code="SCES-02845" compatibility="4" region="PAL" title="Wip3out Special Edition">
<compatibility>Graphical/Audio Issues</compatibility>
</entry>
<entry code="SLPS-01915" title="X-Men VS Street Fighter - EX Edition" region="NTSC-J" compatibility="5">
<entry code="SLUS-00141" compatibility="1" region="NTSC-U" title="X-COM - UFO Defense">
<compatibility>Doesn't Boot</compatibility>
</entry>
<entry code="SLPS-01915" compatibility="5" region="NTSC-J" title="X-Men VS Street Fighter - EX Edition">
<compatibility>No Issues</compatibility>
<upscaling-issues>Sprite glitches</upscaling-issues>
</entry>
<entry code="SLUS-00141" title="X-COM - UFO Defense" region="NTSC-U" compatibility="1">
<compatibility>Doesn't Boot</compatibility>
</entry>
</compatibility-list>

View file

@ -0,0 +1,59 @@
from copy import deepcopy
import sys
import argparse
import xml.etree.ElementTree as ET
from xml.dom import minidom
# https://pymotw.com/2/xml/etree/ElementTree/create.html
def prettify(elem):
"""Return a pretty-printed XML string for the Element.
"""
rough_string = ET.tostring(elem, 'utf-8')
reparsed = minidom.parseString(rough_string)
dom_string = reparsed.toprettyxml(indent=" ")
return '\n'.join([s for s in dom_string.splitlines() if s.strip()])
# https://stackoverflow.com/questions/25338817/sorting-xml-in-python-etree/25339725#25339725
def sortchildrenby(parent, attr):
parent[:] = sorted(parent, key=lambda child: child.get(attr))
def add_entries_from_file(filename, new_tree, overwrite_existing = False):
tree = ET.parse(filename)
for child in tree.getroot():
if (child.tag != "entry"):
print("!!! Skipping invalid tag '%s'" % child.tag)
continue
game_code = child.get("code")
existing_node = new_tree.getroot().find(".//*[@code='%s']" % game_code)
if existing_node is not None:
if overwrite_existing:
print("*** Replacing %s from new list" % game_code)
new_tree.getroot().remove(existing_node)
else:
print("*** Skipping %s from new list" % game_code)
continue
new_tree.getroot().append(deepcopy(child))
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("--overwrite", action="store_true")
parser.add_argument("existing_list", action="store")
parser.add_argument("list_to_merge", action="store")
parser.add_argument("output_list", action="store")
args = parser.parse_args()
new_tree = ET.ElementTree(ET.Element("compatibility-list"))
add_entries_from_file(args.existing_list, new_tree, False)
add_entries_from_file(args.list_to_merge, new_tree, args.overwrite)
sortchildrenby(new_tree.getroot(), "title")
output_file = open(args.output_list, "w")
output_file.write(prettify(new_tree.getroot()))
output_file.close()