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

44 lines
825 B
C
Raw Normal View History

2022-04-23 14:49:07 -04:00
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later
2020-12-28 10:15:37 -05:00
#pragma once
#include <memory>
#include <QWidget>
class QLineEdit;
namespace Ui {
class ConfigureFilesystem;
}
class ConfigureFilesystem : public QWidget {
Q_OBJECT
public:
explicit ConfigureFilesystem(QWidget* parent = nullptr);
~ConfigureFilesystem() override;
2022-02-01 23:57:17 -05:00
void ApplyConfiguration();
2020-12-28 10:15:37 -05:00
private:
2022-02-01 23:57:17 -05:00
void changeEvent(QEvent* event) override;
void RetranslateUI();
void SetConfiguration();
2020-12-28 10:15:37 -05:00
enum class DirectoryTarget {
NAND,
SD,
Gamecard,
Dump,
Load,
};
void SetDirectory(DirectoryTarget target, QLineEdit* edit);
void ResetMetadata();
void UpdateEnabledControls();
std::unique_ptr<Ui::ConfigureFilesystem> ui;
};