diff --git a/app.py b/app.py index 5905b35..a620467 100644 --- a/app.py +++ b/app.py @@ -100,12 +100,11 @@ class UpdaterWorker(QObject): for i in range(n_games): current = currentMaps["maps"][i] latest = latestMaps["maps"][i] + name = f"maps/{latest['name']}" - if ver(current["version"]) < ver(latest["version"]): + if (ver(current["version"]) < ver(latest["version"])) or not os.path.isfile(name): self.progress.emit([5 + game_size * i, f'Updating {latest["game"]} to {latest["version"]}']) - name = f"maps/{latest['name']}" - url = f"https://raw.githubusercontent.com/Escartem/AnimeWwise/master/{name}" urllib.request.urlretrieve(url, "maps/temp.map") diff --git a/maps/hk4e.map b/maps/hk4e.map index d30e674..1876d0e 100644 Binary files a/maps/hk4e.map and b/maps/hk4e.map differ diff --git a/maps/hkrpg.map b/maps/hkrpg.map index 2ea8135..caa6bc7 100644 Binary files a/maps/hkrpg.map and b/maps/hkrpg.map differ diff --git a/maps/index.json b/maps/index.json index b6719ec..1b1c8fe 100644 --- a/maps/index.json +++ b/maps/index.json @@ -3,17 +3,17 @@ { "name": "hk4e.map", "game": "Genshin Impact", - "version": "5.3" + "version": "5.2" }, { "name": "hkrpg.map", "game": "Honkai: Star Rail", - "version": "3.0" + "version": "2.6" }, { "name": "nap.map", "game": "Zenless Zone Zero", - "version": "1.4" + "version": "1.2" } ] } \ No newline at end of file diff --git a/maps/nap.map b/maps/nap.map index e12c688..579db2f 100644 Binary files a/maps/nap.map and b/maps/nap.map differ