mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 00:01:34 +11:00
Correctly interpret F00
This commit is contained in:
parent
db75d8b048
commit
3976fd93ea
|
@ -343,13 +343,13 @@ pub fn parse_module(module: &Module) -> TokenStream {
|
|||
0xC => PatternEffect::NoteCut((slot.effect_parameter & 0xf).into()),
|
||||
_ => PatternEffect::None,
|
||||
},
|
||||
0xF => {
|
||||
if slot.effect_parameter < 0x20 {
|
||||
PatternEffect::SetTicksPerStep(slot.effect_parameter as u32)
|
||||
} else {
|
||||
PatternEffect::None
|
||||
}
|
||||
}
|
||||
0xF => match slot.effect_parameter {
|
||||
0 => PatternEffect::SetTicksPerStep(u32::MAX),
|
||||
1..=0x20 => PatternEffect::SetTicksPerStep(slot.effect_parameter as u32),
|
||||
0x21.. => PatternEffect::SetFramesPerTick(bpm_to_frames_per_tick(
|
||||
slot.effect_parameter as u32,
|
||||
)),
|
||||
},
|
||||
_ => PatternEffect::None,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue