lutris/utils/bios_format.py
Alexander Ravenheart f5e8e007b3 - Replaced pipenv with poetry
- Updated min version check in setup.py to Python 3.6
- Updated isort config file and calls to align with v5.x
- Added init-hook for gi imports in .pylintrc to avoid invalid no-member issues
- Makefile: added lock, show-tree, bandit, black, mypy; updated test, cover, dev, isort, autopep8, check, isort-check, flake8, pylint; removed req, requirements;
- Updated .travis.yml to use poetry and make
- Added my email in AUTHORS
- Updated CONTRIBUTING.md
- Updated lint_python.yml to use poetry and make, reorganized instructions to have all install related steps first
- sorted imports: lutris, lutris-wrapper, cleanup_prefix.py and multiple files in tests dir
2021-11-17 21:17:43 -08:00

21 lines
530 B
Python

import json
bios_list = """
gb_bios.bin Game Boy BIOS - Optional 32fbbd84168d3482956eb3c5051637f5
gbc_bios.bin Game Boy Color BIOS - Optional dbfce9db9deaa2567f6a84fde55f9680
"""
bioses = []
for bios_line in bios_list.split("\n"):
if not bios_line:
continue
filename, _rest = bios_line.split(maxsplit=1)
sysname, checksum = _rest.rsplit(maxsplit=1)
bioses.append({
"filename": filename,
"description": sysname,
"md5sum": checksum,
})
print(json.dumps(bioses, indent=4))