# HG changeset patch # User Matti Hamalainen # Date 1352199699 -7200 # Node ID 8fb51f9ef44ef42cffb1ce4359a173298b0e730b # Parent 54a7afbf251ea9b918be8a2849c88b947b3599aa Fix some HardSID builder related things. diff -r 54a7afbf251e -r 8fb51f9ef44e src/xs_sidplay2.cc --- a/src/xs_sidplay2.cc Tue Nov 06 12:11:49 2012 +0200 +++ b/src/xs_sidplay2.cc Tue Nov 06 13:01:39 2012 +0200 @@ -525,17 +525,17 @@ */ void xs_sidplay2_flush(XSEngineState * state) { - (void) state; + XSSIDPlay2 *engine = (XSSIDPlay2 *) state->internal; #ifdef HAVE_HARDSID_BUILDER if (xs_cfg.sid2Builder == XS_BLD_HARDSID) { #ifdef HSID_SID2_COM - IfPtr hs(state->config.sidEmulation); + IfPtr hs(engine->config.sidEmulation); if (hs) hs->flush(); #else - ((HardSIDBuilder *) state->config.sidEmulation)->flush(); + ((HardSIDBuilder *) engine->config.sidEmulation)->flush(); #endif } #endif