remove JIT setting, doesnt work or do anything
This commit is contained in:
@@ -5,8 +5,9 @@
|
|||||||
#include <log.hpp>
|
#include <log.hpp>
|
||||||
|
|
||||||
CPUSettings::CPUSettings(nlohmann::json &settings) : settings(settings), QWidget(nullptr) {
|
CPUSettings::CPUSettings(nlohmann::json &settings) : settings(settings), QWidget(nullptr) {
|
||||||
cpuTypes->addItems({"Interpreter", "Dynamic Recompiler"});
|
cpuTypes->addItems({
|
||||||
|
"Interpreter" //, "Dynamic Recompiler"
|
||||||
|
});
|
||||||
if (JSONGetField<std::string>(settings, "cpu", "type") == "jit") {
|
if (JSONGetField<std::string>(settings, "cpu", "type") == "jit") {
|
||||||
cpuTypes->setCurrentIndex(1);
|
cpuTypes->setCurrentIndex(1);
|
||||||
} else {
|
} else {
|
||||||
@@ -16,8 +17,8 @@ CPUSettings::CPUSettings(nlohmann::json &settings) : settings(settings), QWidget
|
|||||||
connect(cpuTypes, &QComboBox::currentIndexChanged, this, [&]() {
|
connect(cpuTypes, &QComboBox::currentIndexChanged, this, [&]() {
|
||||||
if (cpuTypes->currentIndex() == 0) {
|
if (cpuTypes->currentIndex() == 0) {
|
||||||
JSONSetField(settings, "cpu", "type", "interpreter");
|
JSONSetField(settings, "cpu", "type", "interpreter");
|
||||||
} else if (cpuTypes->currentIndex() == 1) {
|
//} else if (cpuTypes->currentIndex() == 1) {
|
||||||
JSONSetField(settings, "cpu", "type", "jit");
|
// JSONSetField(settings, "cpu", "type", "jit");
|
||||||
} else {
|
} else {
|
||||||
Util::panic("Impossible CPU type!");
|
Util::panic("Impossible CPU type!");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user