fix: HUD-Klicks (Dialogebene schluckte sie); Musik durch CC0-Titel ersetzt
This commit is contained in:
parent
a622c7c238
commit
e213a7477a
109 changed files with 274 additions and 441 deletions
|
|
@ -114,7 +114,7 @@ def lauf(schreiben: bool) -> list[str]:
|
|||
if not quelle.is_dir():
|
||||
continue
|
||||
for p in sorted(quelle.rglob("*")):
|
||||
if not p.is_file() or p.suffix not in (".fnt", ".png", ".wav"):
|
||||
if not p.is_file() or p.suffix not in (".fnt", ".png", ".wav", ".ogg"):
|
||||
continue
|
||||
if p.suffix == ".png" and "_2x" in p.name:
|
||||
continue
|
||||
|
|
@ -126,6 +126,22 @@ def lauf(schreiben: bool) -> list[str]:
|
|||
elif not ziel.exists():
|
||||
fehler.append(f"{ziel}: fehlt (--write ausfuehren)")
|
||||
|
||||
# Audio: Leichen entfernen. Nur hier, nicht bei der Schrift — deren
|
||||
# Engine-Fassung enthält eigene Dateien, die es in art/final nicht gibt.
|
||||
audio_quelle = FINAL / "Audio"
|
||||
audio_ziel = PROJEKT / "audio"
|
||||
if schreiben and audio_quelle.is_dir() and audio_ziel.is_dir():
|
||||
for alt in sorted(audio_ziel.rglob("*")):
|
||||
if not alt.is_file() or alt.suffix not in (".wav", ".ogg"):
|
||||
continue
|
||||
if not (audio_quelle / alt.relative_to(audio_ziel)).exists():
|
||||
alt.unlink()
|
||||
print(f" entfernt: {alt.relative_to(PROJEKT)}")
|
||||
for alt in sorted(audio_ziel.rglob("*.import")):
|
||||
stamm = Path(str(alt)[:-7])
|
||||
if not stamm.exists():
|
||||
alt.unlink()
|
||||
|
||||
stand = "geschrieben" if schreiben else "geprueft"
|
||||
print(f"{anzahl} Dateien {stand} -> {PROJEKT.relative_to(ART.parent)}/")
|
||||
for f in fehler:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue