From 94635c6de832b571ae81275044294b08680d0c22 Mon Sep 17 00:00:00 2001 From: dyceron <38679103+dyceron@users.noreply.github.com> Date: Sun, 5 Nov 2023 19:38:54 -0500 Subject: [PATCH] Update some field names and add version constant --- .../formats/bmses.py | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/mercury_engine_data_structures/formats/bmses.py b/src/mercury_engine_data_structures/formats/bmses.py index 1db26b23..5fda4a71 100644 --- a/src/mercury_engine_data_structures/formats/bmses.py +++ b/src/mercury_engine_data_structures/formats/bmses.py @@ -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, @@ -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,