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

This commit is contained in:
Zion Nimchuk authored and Ani committed 2017-06-14 18:45:14 +01:00
1 parent e1a78abfc9
commit 3f74bafa70
1 file changed
+7
+7
View File
@@ -35,6 +35,13 @@ core_tab::core_tab(std::shared_ptr<emu_settings> settings, QWidget *parent) : QW
{
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); });
}
}