fix backend
All checks were successful
eden-license / license-header (pull_request) Successful in 35s
All checks were successful
eden-license / license-header (pull_request) Successful in 35s
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
052ed260bd
commit
1bf7b7aa93
2 changed files with 7 additions and 4 deletions
|
@ -90,12 +90,15 @@ void ConfigureCpu::Setup(const ConfigurationShared::Builder& builder) {
|
||||||
unsafe_layout->addWidget(widget);
|
unsafe_layout->addWidget(widget);
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateGroup(accuracy_combobox->currentIndex());
|
UpdateGroup();
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureCpu::UpdateGroup(int index) {
|
void ConfigureCpu::UpdateGroup()
|
||||||
|
{
|
||||||
|
const u32 accuracy = accuracy_combobox->currentIndex();
|
||||||
|
const u32 backend = backend_combobox->currentIndex();
|
||||||
// TODO(crueter): see if this works on NCE
|
// TODO(crueter): see if this works on NCE
|
||||||
ui->unsafe_group->setVisible(index == (int) Settings::CpuAccuracy::Unsafe);
|
ui->unsafe_group->setVisible(accuracy == (u32) Settings::CpuAccuracy::Unsafe && backend == (u32) Settings::CpuBackend::Dynarmic);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ConfigureCpu::ApplyConfiguration() {
|
void ConfigureCpu::ApplyConfiguration() {
|
||||||
|
|
|
@ -39,7 +39,7 @@ private:
|
||||||
void changeEvent(QEvent* event) override;
|
void changeEvent(QEvent* event) override;
|
||||||
void RetranslateUI();
|
void RetranslateUI();
|
||||||
|
|
||||||
void UpdateGroup(int index);
|
void UpdateGroup();
|
||||||
|
|
||||||
void Setup(const ConfigurationShared::Builder& builder);
|
void Setup(const ConfigurationShared::Builder& builder);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue