Fixed minor issues with the Archetypes

This commit is contained in:
2026-02-22 19:38:57 +02:00
parent ba89102f71
commit 9437307e0f
4 changed files with 61 additions and 23 deletions

View File

@@ -196,7 +196,8 @@ async def build_binary(melody_id: str) -> BuiltMelodyInDB:
_ensure_storage_dir()
values = steps_string_to_values(row["steps"])
bsm_path = STORAGE_DIR / f"{melody_id}.bsm"
file_name = f"{row['pid']}.bsm" if row.get("pid") else f"{melody_id}.bsm"
bsm_path = STORAGE_DIR / file_name
with open(bsm_path, "wb") as f:
for value in values:
value = value & 0xFFFF