Disable LLVM option in PPU when RPCS3 is not built with it

This commit is contained in:
Zion Nimchuk 2017-06-13 13:42:25 -07:00 committed by Ani
parent e1a78abfc9
commit 3f74bafa70
1 changed files with 7 additions and 0 deletions

View File

@ -35,6 +35,13 @@ core_tab::core_tab(std::shared_ptr<emu_settings> settings, QWidget *parent) : QW
{ {
butt->setChecked(true); butt->setChecked(true);
} }
#ifndef LLVM_AVAILABLE
if (curr == "Recompiler (LLVM)")
{
butt->setEnabled(false);
butt->setToolTip(tr("This version of RPCS3 wasn't compiled with LLVM support."));
}
#endif
connect(butt, &QAbstractButton::pressed, [=]() {settings->SetSetting(emu_settings::PPUDecoder, curr); }); connect(butt, &QAbstractButton::pressed, [=]() {settings->SetSetting(emu_settings::PPUDecoder, curr); });
} }
} }