Add version to game_id.json
This commit is contained in:
@@ -74,6 +74,9 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
||||
details_view_game_cover = None
|
||||
sort_state = "a-z"
|
||||
|
||||
# The version of the game_id.json spec
|
||||
spec_version = 2.0
|
||||
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(**kwargs)
|
||||
|
||||
@@ -111,6 +114,9 @@ class CartridgesWindow(Adw.ApplicationWindow):
|
||||
):
|
||||
path.unlink(missing_ok=True)
|
||||
|
||||
elif game.get("version") > self.spec_version:
|
||||
continue
|
||||
|
||||
else:
|
||||
Game(game).update()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user