#include #include #include CPUSettings::CPUSettings(nlohmann::json &settings) : settings(settings) { if (JSONGetField(settings, "cpu", "type") == "jit") { cpuTypes.setCurrentIndex(1); } else { cpuTypes.setCurrentIndex(0); } } bool CPUSettings::render() { if(cpuTypes.render()) { if(cpuTypes.getCurrentIndex() == 0) { JSONSetField(settings, "cpu", "type", "interpreter"); } else { Util::panic("JIT should not be selectable??"); } modified = true; } }