pineapple-src/src/yuzu/configuration/configure_cpu.h

51 lines
1.1 KiB
C
Raw Normal View History

2020-12-28 10:15:37 -05: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-14 22:05:28 -04:00
#include "common/settings.h"
2020-12-28 10:15:37 -05:00
2021-10-08 20:29:53 -04:00
namespace Core {
class System;
}
2021-05-16 20:21:13 -04:00
namespace ConfigurationShared {
enum class CheckState;
}
2020-12-28 10:15:37 -05:00
namespace Ui {
class ConfigureCpu;
}
class ConfigureCpu : public QWidget {
Q_OBJECT
public:
2021-10-08 20:29:53 -04:00
explicit ConfigureCpu(const Core::System& system_, QWidget* parent = nullptr);
2020-12-28 10:15:37 -05:00
~ConfigureCpu() override;
void ApplyConfiguration();
2021-10-08 20:29:53 -04:00
void SetConfiguration();
2020-12-28 10:15:37 -05:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void UpdateGroup(int index);
2021-05-16 20:21:13 -04:00
void SetupPerGameUI();
2020-12-28 10:15:37 -05:00
std::unique_ptr<Ui::ConfigureCpu> ui;
2021-05-16 20:21:13 -04:00
ConfigurationShared::CheckState cpuopt_unsafe_unfuse_fma;
ConfigurationShared::CheckState cpuopt_unsafe_reduce_fp_error;
2021-06-21 19:03:38 -04:00
ConfigurationShared::CheckState cpuopt_unsafe_ignore_standard_fpcr;
2021-05-16 20:21:13 -04:00
ConfigurationShared::CheckState cpuopt_unsafe_inaccurate_nan;
2021-06-06 21:57:28 -04:00
ConfigurationShared::CheckState cpuopt_unsafe_fastmem_check;
2021-10-08 20:29:53 -04:00
const Core::System& system;
2020-12-28 10:15:37 -05:00
};