Skip to content

Commit

Permalink
jak3: fix vagdir bit-field for msvc + clang on windows (#3643)
Browse files Browse the repository at this point in the history
  • Loading branch information
VodBox authored Sep 1, 2024
1 parent 4fd0a57 commit ebd02b2
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions decompiler/data/streamed_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<VagDirJak3>();
ASSERT(dir.id[0] == 0x41574756);
ASSERT(dir.id[1] == 0x52494444);
Expand Down

0 comments on commit ebd02b2

Please sign in to comment.