duckstation/src/duckstation-qt/biossettingswidget.h
Stenzek 13d58d8ed0
Qt: Move fast boot/fast forward to console settings
Makes more sense there, and matches Android.
2025-02-15 12:32:22 +10:00

40 lines
1005 B
C++

// SPDX-FileCopyrightText: 2019-2024 Connor McLaughlin <stenzek@gmail.com>
// SPDX-License-Identifier: CC-BY-NC-ND-4.0
#pragma once
#include "core/types.h"
#include <QtWidgets/QWidget>
#include "ui_biossettingswidget.h"
class SettingsWindow;
enum class ConsoleRegion : u8;
namespace BIOS {
struct ImageInfo;
}
class BIOSSettingsWidget : public QWidget
{
Q_OBJECT
public:
explicit BIOSSettingsWidget(SettingsWindow* dialog, QWidget* parent);
~BIOSSettingsWidget();
static void populateDropDownForRegion(ConsoleRegion region, QComboBox* cb,
std::vector<std::pair<std::string, const BIOS::ImageInfo*>>& images,
bool per_game);
static void setDropDownValue(QComboBox* cb, const std::optional<std::string>& name, bool per_game);
private Q_SLOTS:
void refreshList();
void onPIODeviceTypeChanged();
void onPIOImagePathBrowseClicked();
private:
Ui::BIOSSettingsWidget m_ui;
SettingsWindow* m_dialog;
};