Add version checking logic

This commit is contained in:
kramo
2023-05-23 15:13:54 +02:00
parent 9cac59e912
commit 5c07bbb88a
4 changed files with 22 additions and 14 deletions

View File

@@ -100,6 +100,9 @@ class CartridgesWindow(Adw.ApplicationWindow):
games[data["game_id"]] = data
for game_id, game in games.items():
if (version := game.get("version")) and version > shared.spec_version:
continue
if game.get("removed"):
for path in (
shared.games_dir / f"{game_id}.json",