ab2677f0a1
Allows setting CPU accuracy to Accurate or Unsafe per-game, as well as the accuracy options for Unsafe. Debug is not allowed here as a per-game CPU accuracy.
44 lines
935 B
C++
44 lines
935 B
C++
// 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>
|
|
#include "common/settings.h"
|
|
|
|
namespace ConfigurationShared {
|
|
enum class CheckState;
|
|
}
|
|
|
|
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();
|
|
|
|
void AccuracyUpdated(int index);
|
|
void UpdateGroup(int index);
|
|
|
|
void SetConfiguration();
|
|
|
|
void SetupPerGameUI();
|
|
|
|
std::unique_ptr<Ui::ConfigureCpu> ui;
|
|
|
|
ConfigurationShared::CheckState cpuopt_unsafe_unfuse_fma;
|
|
ConfigurationShared::CheckState cpuopt_unsafe_reduce_fp_error;
|
|
ConfigurationShared::CheckState cpuopt_unsafe_inaccurate_nan;
|
|
};
|