Keep classic mixer flags persistent between modules

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 10 years ago
parent f8670fc1af
commit abd721629c
  1. 2
      src/commands.c
  2. 2
      src/main.c

@ -193,6 +193,7 @@ void read_command(xmp_context handle, struct xmp_module_info *mi, struct control
ctl->classic = !ctl->classic;
/* set player flags */
f = xmp_get_player(handle, XMP_PLAYER_FLAGS);
if (ctl->classic) {
xmp_set_player(handle, XMP_PLAYER_FLAGS,
@ -202,6 +203,7 @@ void read_command(xmp_context handle, struct xmp_module_info *mi, struct control
f &= ~XMP_FLAGS_CLASSIC);
}
/* set current module flags */
f = xmp_get_player(handle, XMP_PLAYER_CFLAGS);
if (ctl->classic) {
xmp_set_player(handle, XMP_PLAYER_CFLAGS,

@ -483,7 +483,7 @@ int main(int argc, char **argv)
set_flag(flags, opt.vblank, XMP_FLAGS_VBLANK);
set_flag(flags, opt.fx9bug, XMP_FLAGS_FX9BUG);
set_flag(flags, opt.fixloop, XMP_FLAGS_FIXLOOP);
set_flag(flags, opt.classic, XMP_FLAGS_CLASSIC);
set_flag(flags, control.classic, XMP_FLAGS_CLASSIC);
xmp_set_player(xc, XMP_PLAYER_CFLAGS, flags);
/* Show module data */

Loading…
Cancel
Save