[Scummvm-git-logs] scummvm-icons master -> 689e6852b4ca0d7c5a13215ff651cec2bb22c071
Thunderforge
noreply at scummvm.org
Fri Nov 11 00:23:39 UTC 2022
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-icons' repo located at https://github.com/scummvm/scummvm-icons .
Summary:
689e6852b4 ICONS: Updating script to handle new spreadsheet id format (#309)
Commit: 689e6852b4ca0d7c5a13215ff651cec2bb22c071
https://github.com/scummvm/scummvm-icons/commit/689e6852b4ca0d7c5a13215ff651cec2bb22c071
Author: Thunderforge (wjherrmann at gmail.com)
Date: 2022-11-10T18:23:36-06:00
Commit Message:
ICONS: Updating script to handle new spreadsheet id format (#309)
The spreadsheet will have `engine_id:game_id`. Only save
the `game_id`, producing the same output as before.
Changed paths:
gen-set.py
diff --git a/gen-set.py b/gen-set.py
index b0deac8..998b722 100755
--- a/gen-set.py
+++ b/gen-set.py
@@ -52,7 +52,7 @@ class GUID:
element_name: str
-GUIDS: final(Set[GUID]) = {GUID(filename_root='games', gid='1946612063', element_name='game'),
+GUIDS: final(Set[GUID]) = {GUID(filename_root='games', gid='1775285192', element_name='game'),
GUID(filename_root='engines', gid='0', element_name='engine'),
GUID(filename_root='companies', gid='226191984', element_name='company'),
GUID(filename_root='series', gid='1095671818', element_name='serie')
@@ -137,6 +137,9 @@ def generate_xmls() -> List[str]:
for product in output:
product_xml = ElemTree.SubElement(root, guid.element_name)
for key, value in product.items():
+ # For the games sheet and its ids, only use the suffix after the colon
+ if key == 'id' and guid.filename_root == 'games':
+ value = value.partition(':')[2]
product_xml.set(key, value)
dom = xml.dom.minidom.parseString(ElemTree.tostring(root).decode(ENCODING))
More information about the Scummvm-git-logs
mailing list