GameDB: Remove split json files

The original intention was to make it easier to edit via github,
but it's more of a pain than helpful.
This commit is contained in:
Connor McLaughlin
2021-11-25 22:17:28 +10:00
parent 43d68dcc01
commit 0c4c37412b
28 changed files with 0 additions and 490883 deletions

View File

@ -1,20 +0,0 @@
import json
import sys
import os
if __name__ == "__main__":
if (len(sys.argv) < 3):
print("usage: %s <gamedb dir> <output path>" % sys.argv[0])
sys.exit(1)
games = []
for file in os.listdir(sys.argv[1]):
with open(os.path.join(sys.argv[1], file), "r") as f:
fgames = json.load(f)
games.extend(list(fgames))
with open(sys.argv[2], "w") as f:
json.dump(games, f, indent=1)
print("Wrote %s" % sys.argv[2])