2020-07-11 14:26:36 +01:00
|
|
|
// Copyright 2020 yuzu Emulator Project
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <QWidget>
|
2021-04-15 00:07:40 +01:00
|
|
|
#include "common/settings.h"
|
2020-07-11 14:26:36 +01:00
|
|
|
|
2021-05-16 04:53:36 +01:00
|
|
|
namespace ConfigurationShared {
|
|
|
|
enum class CheckState;
|
|
|
|
}
|
|
|
|
|
2020-07-11 14:26:36 +01:00
|
|
|
namespace Ui {
|
|
|
|
class ConfigureCpu;
|
|
|
|
}
|
|
|
|
|
|
|
|
class ConfigureCpu : public QWidget {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
explicit ConfigureCpu(QWidget* parent = nullptr);
|
|
|
|
~ConfigureCpu() override;
|
|
|
|
|
|
|
|
void ApplyConfiguration();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
void RetranslateUI();
|
|
|
|
|
2020-08-16 13:19:55 +01:00
|
|
|
void UpdateGroup(int index);
|
2020-07-11 16:25:49 +01:00
|
|
|
|
2020-07-11 14:26:36 +01:00
|
|
|
void SetConfiguration();
|
|
|
|
|
2021-05-16 04:53:36 +01:00
|
|
|
void SetupPerGameUI();
|
|
|
|
|
2020-07-11 14:26:36 +01:00
|
|
|
std::unique_ptr<Ui::ConfigureCpu> ui;
|
2021-05-16 04:53:36 +01:00
|
|
|
|
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_unfuse_fma;
|
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_reduce_fp_error;
|
2021-06-20 19:40:02 +01:00
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_ignore_standard_fpcr;
|
2021-05-16 04:53:36 +01:00
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_inaccurate_nan;
|
2021-06-06 08:57:24 +01:00
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_fastmem_check;
|
2020-07-11 14:26:36 +01:00
|
|
|
};
|