Skip to content

Commit

Permalink
Update some field names and add version constant
Browse files Browse the repository at this point in the history
  • Loading branch information
dyceron committed Nov 6, 2023
1 parent 12d2893 commit 94635c6
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/mercury_engine_data_structures/formats/bmses.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
from mercury_engine_data_structures.game_check import Game

BMSES = Struct(
"magic" / Const(b"MSES"),
"version" / Hex(Int32ul),
"_magic" / Const(b"MSES"),
"version" / Const(0x00050001, Hex(Int32ul)),
"sounds" / make_vector(Struct(
"name" / StrId,
"sound_file" / StrId,
Expand All @@ -27,12 +27,14 @@
"start_delay" / Float32l,
"volume" / Float32l,
"unk1" / Int32sl,
"sub_sound" / make_vector(Struct(
"sub_sounds" / make_vector(Struct(
"name" / StrId,
"properties" / Struct(
"unk2" / Float32l,
"unk3" / CVector3D,
"unk4" / Int32sl,
"fade_in" / Float32l,
"fade_out" / Float32l,
"start_delay" / Float32l,
"volume" / Float32l,
"unk1" / Int32sl,
))),
))),
construct.Terminated,
Expand Down

0 comments on commit 94635c6

Please sign in to comment.