Fixed minor issues with the Archetypes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user