add specified cue flags to existing data flag, don't overwrite it

This commit is contained in:
zeromus 2015-07-02 16:40:05 -05:00
parent 377f8e8b1c
commit b7c5fa84e1
1 changed files with 3 additions and 2 deletions

View File

@ -435,8 +435,9 @@ namespace BizHawk.Emulation.DiscSystem
{
if (curr_track == null)
Warn("Ignoring invalid flag commands outside of a track command");
else
curr_track.Flags = (cmd as CueFile.Command.FLAGS).Flags;
else
//take care to |= it here, so the data flag doesn't get cleared
curr_track.Flags |= (cmd as CueFile.Command.FLAGS).Flags;
}
if (cmd is CueFile.Command.TRACK)