fix: download-icons could also download dds files (#18)

We are only interested in PNGs, so filter out all other files.
This commit is contained in:
Patric Stout
2023-11-26 12:52:20 +01:00
committed by GitHub
parent 2735c10ce7
commit db023c1c33

View File

@@ -21,7 +21,7 @@ for line in resfile.split("\n"):
res, path, _, _, _ = line.split(",")
if res.startswith("res:/ui/texture/classes/fitting/"):
if res.endswith(".png") and res.startswith("res:/ui/texture/classes/fitting/"):
filename = res.split(":")[1][1:]
print(f"Downloading {filename} ...")
local_path = "dist/" + filename