changeset 779:8fb51f9ef44e

Fix some HardSID builder related things.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 06 Nov 2012 13:01:39 +0200
parents 54a7afbf251e
children 80139f0ac82a
files src/xs_sidplay2.cc
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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<HardSIDBuilder> hs(state->config.sidEmulation);
+        IfPtr<HardSIDBuilder> hs(engine->config.sidEmulation);
         if (hs)
             hs->flush();
 #else
-        ((HardSIDBuilder *) state->config.sidEmulation)->flush();
+        ((HardSIDBuilder *) engine->config.sidEmulation)->flush();
 #endif
     }
 #endif