Skip to content

Commit 99ff5d6

Browse files
committed
Check only for available emus
1 parent 6f95fd3 commit 99ff5d6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

src/player.cpp

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -406,18 +406,28 @@ ConsolePlayer::ConsolePlayer (const char * const name) :
406406

407407
if (!emulation.engine.empty())
408408
{
409-
if (emulation.engine.compare("RESIDFP") == 0)
409+
if (emulation.engine.compare("NONE") == 0)
410+
{
411+
m_driver.sid = EMU_NONE;
412+
}
413+
#ifdef HAVE_SIDPLAYFP_BUILDERS_RESIDFP_H
414+
else if (emulation.engine.compare("RESIDFP") == 0)
410415
{
411416
m_driver.sid = EMU_RESIDFP;
412417
}
418+
#endif
419+
#ifdef HAVE_SIDPLAYFP_BUILDERS_SIDLITE_H
413420
else if (emulation.engine.compare("SIDLITE") == 0)
414421
{
415422
m_driver.sid = EMU_SIDLITE;
416423
}
424+
#endif
425+
#ifdef HAVE_SIDPLAYFP_BUILDERS_RESID_H
417426
else if (emulation.engine.compare("RESID") == 0)
418427
{
419428
m_driver.sid = EMU_RESID;
420429
}
430+
#endif
421431
#ifdef HAVE_SIDPLAYFP_BUILDERS_HARDSID_H
422432
else if (emulation.engine.compare("HARDSID") == 0)
423433
{
@@ -439,10 +449,6 @@ ConsolePlayer::ConsolePlayer (const char * const name) :
439449
m_driver.output = output_t::NONE;
440450
}
441451
#endif
442-
else if (emulation.engine.compare("NONE") == 0)
443-
{
444-
m_driver.sid = EMU_NONE;
445-
}
446452
}
447453
}
448454

0 commit comments

Comments
 (0)