# HG changeset patch # User Matti Hamalainen # Date 1349148236 -10800 # Node ID 01f3af410abb1ef86daa56d78bfde1a610fc373b # Parent c9cd462947863ef5f60169375c73b46c9a3ba1ed Update to match changes in the dmlib API and JSS engine. diff -r c9cd46294786 -r 01f3af410abb krapula.c --- a/krapula.c Sun Sep 30 19:14:10 2012 +0300 +++ b/krapula.c Tue Oct 02 06:23:56 2012 +0300 @@ -437,6 +437,14 @@ // Initialize music player JSSModule *mod = NULL; engineGetResModule(mod, "krapula.xm"); + + if ((i = jssConvertModuleForPlaying(mod)) != DMERR_OK) + { + dmError("Could not convert module for playing, %d: %s\n", + i, dmErrorStr(i)); + return DMERR_INIT_FAIL; + } + jvmSetCallback(engine.dev, jmpExec, engine.plr); jmpSetModule(engine.plr, mod); jmpPlayOrder(engine.plr, 0); @@ -699,7 +707,7 @@ JSS_LOCK(engine.plr); for (hit = FALSE, ch = 0; ch < 6; ch++) - if (engine.plr->iCExtInstrumentN[ch] == 0) + if (engine.plr->channels[ch].iCExtInstrumentN == 0) { hit = TRUE; break;