From ebd02b28a4e3e0ba624662d704f81a2d8784ed8f Mon Sep 17 00:00:00 2001 From: Dillon Pentz Date: Sun, 1 Sep 2024 23:30:03 +1000 Subject: [PATCH] jak3: fix vagdir bit-field for msvc + clang on windows (#3643) --- decompiler/data/streamed_audio.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/decompiler/data/streamed_audio.cpp b/decompiler/data/streamed_audio.cpp index 81294cb560..f285164a2b 100644 --- a/decompiler/data/streamed_audio.cpp +++ b/decompiler/data/streamed_audio.cpp @@ -164,13 +164,16 @@ AudioDir read_audio_dir(const decompiler::Config& config, const fs::path& path) u64 data; struct { u64 name : 42; - bool stereo : 1; - bool international : 1; - u8 param : 4; + u64 stereo : 1; + u64 international : 1; + u64 param : 4; u64 offset : 16; }; }; }; + + static_assert(sizeof(DirEntryJak3) == sizeof(u64)); + dir = reader.read(); ASSERT(dir.id[0] == 0x41574756); ASSERT(dir.id[1] == 0x52494444);