Skip to content

Commit

Permalink
force old effects behaviour on import
Browse files Browse the repository at this point in the history
  • Loading branch information
LTVA1 committed Sep 16, 2023
1 parent 3e462e4 commit ba37843
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/import/ahx.c
Original file line number Diff line number Diff line change
Expand Up @@ -579,5 +579,7 @@ int import_ahx(FILE *f)
mused.song.default_panning[2] = 96;
mused.song.default_panning[3] = -96;

mused.song.flags |= MUS_USE_OLD_EFFECTS_BEHAVIOUR;

return 1;
}
2 changes: 1 addition & 1 deletion src/import/mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ int import_mod(FILE *f)
mused.sequenceview_steps = 64;
mused.song.num_patterns = patterns * channels;

mused.song.flags |= MUS_USE_OLD_SAMPLE_LOOP_BEHAVIOUR;
mused.song.flags |= MUS_USE_OLD_SAMPLE_LOOP_BEHAVIOUR | MUS_USE_OLD_EFFECTS_BEHAVIOUR;

if (channels == 4)
{
Expand Down
2 changes: 2 additions & 0 deletions src/import/org.c
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ int import_org(FILE *f)

if (orgsamp_loaded)
unload_orgsamp(&orgsamp);

mused.song.flags |= MUS_USE_OLD_EFFECTS_BEHAVIOUR;

return 1;
}
2 changes: 1 addition & 1 deletion src/import/xm.c
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ int import_xm(FILE *f)
mused.sequenceview_steps = 64;
mused.song.num_patterns = header.num_patterns * header.num_channels;

mused.song.flags |= MUS_USE_OLD_SAMPLE_LOOP_BEHAVIOUR;
mused.song.flags |= MUS_USE_OLD_SAMPLE_LOOP_BEHAVIOUR | MUS_USE_OLD_EFFECTS_BEHAVIOUR;

int wt_e = 0;

Expand Down

0 comments on commit ba37843

Please sign in to comment.