mirror of
https://git.suyu.dev/suyu/suyu
synced 2024-12-28 20:32:40 -06:00
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
49 lines
1.1 KiB
C++
49 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: Copyright 2020 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include <memory>
|
|
#include <QWidget>
|
|
|
|
namespace Core {
|
|
class System;
|
|
}
|
|
|
|
namespace ConfigurationShared {
|
|
enum class CheckState;
|
|
}
|
|
|
|
namespace Ui {
|
|
class ConfigureCpu;
|
|
}
|
|
|
|
class ConfigureCpu : public QWidget {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ConfigureCpu(const Core::System& system_, QWidget* parent = nullptr);
|
|
~ConfigureCpu() override;
|
|
|
|
void ApplyConfiguration();
|
|
void SetConfiguration();
|
|
|
|
private:
|
|
void changeEvent(QEvent* event) override;
|
|
void RetranslateUI();
|
|
|
|
void UpdateGroup(int index);
|
|
|
|
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_ignore_standard_fpcr;
|
|
ConfigurationShared::CheckState cpuopt_unsafe_inaccurate_nan;
|
|
ConfigurationShared::CheckState cpuopt_unsafe_fastmem_check;
|
|
ConfigurationShared::CheckState cpuopt_unsafe_ignore_global_monitor;
|
|
|
|
const Core::System& system;
|
|
};
|