Skip to content

Commit

Permalink
Fixed track_group_list to be consistent with netmd-js
Browse files Browse the repository at this point in the history
  • Loading branch information
G2-Games committed Aug 15, 2024
1 parent 4fa7b0e commit 8b193bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/netmd/interface.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1040,11 +1040,13 @@ impl NetMDInterface {
));
}

let mut remaining_tracks = Vec::new();
for i in 0..track_count {
if !track_dict.contains_key(&i) {
result.insert(0, (None, None, Vec::from([i])))
remaining_tracks.push(i);
}
}
result.insert(0, (None, None, remaining_tracks));

Ok(result)
}
Expand Down

0 comments on commit 8b193bd

Please sign in to comment.