diff --git a/runahead/run_ahead.c b/runahead/run_ahead.c index a3a1cf5a87..e03eb23571 100644 --- a/runahead/run_ahead.c +++ b/runahead/run_ahead.c @@ -203,6 +203,11 @@ void run_ahead(int runAheadCount, bool useSecondary) bool okay; bool lastFrame; bool suspendedFrame; +#if defined(HAVE_DYNAMIC) || defined(HAVE_DYLIB) + const bool haveDynamic = true; +#else + const bool haveDynamic = false; +#endif if (runAheadCount <= 0 || !runahead_available) { @@ -224,7 +229,7 @@ void run_ahead(int runAheadCount, bool useSecondary) runahead_check_for_gui(); - if (!useSecondary || !HAVE_DYNAMIC || !runahead_secondary_core_available) + if (!useSecondary || !haveDynamic || !runahead_secondary_core_available) { /* TODO: multiple savestates for higher performance when not using secondary core */ for (frameNumber = 0; frameNumber <= runAheadCount; frameNumber++) diff --git a/runahead/secondary_core.c b/runahead/secondary_core.c index 65e04b2bf9..efdd338463 100644 --- a/runahead/secondary_core.c +++ b/runahead/secondary_core.c @@ -379,6 +379,9 @@ void secondary_core_set_variable_update(void) { /* do nothing */ } - +void clear_controller_port_map(void) +{ + /* do nothing */ +} #endif