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

55 lines
1,010 B
C
Raw Normal View History

2022-07-27 18:06:50 +00:00
// SPDX-FileCopyrightText: 2016 Citra Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 15:15:37 +00:00
#pragma once
#include <memory>
#include <QWidget>
2021-10-09 00:29:53 +00:00
namespace Core {
class System;
}
2020-12-28 15:15:37 +00:00
namespace ConfigurationShared {
enum class CheckState;
}
namespace Ui {
class ConfigureSystem;
}
class ConfigureSystem : public QWidget {
Q_OBJECT
public:
2021-10-09 00:29:53 +00:00
explicit ConfigureSystem(Core::System& system_, QWidget* parent = nullptr);
2020-12-28 15:15:37 +00:00
~ConfigureSystem() override;
void ApplyConfiguration();
2021-10-09 00:29:53 +00:00
void SetConfiguration();
2020-12-28 15:15:37 +00:00
private:
void changeEvent(QEvent* event) override;
void RetranslateUI();
void ReadSystemSettings();
void RefreshConsoleID();
void SetupPerGameUI();
std::unique_ptr<Ui::ConfigureSystem> ui;
bool enabled = false;
int language_index = 0;
int region_index = 0;
int time_zone_index = 0;
int sound_index = 0;
ConfigurationShared::CheckState use_rng_seed;
ConfigurationShared::CheckState use_custom_rtc;
2021-10-09 00:29:53 +00:00
Core::System& system;
2020-12-28 15:15:37 +00:00
};