pineapple/src/yuzu/configuration/configure_filesystem.h

45 lines
844 B
C
Raw Normal View History

2020-12-28 16:15:37 +01:00
// Copyright 2019 yuzu Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#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-02 05:57:17 +01:00
void ApplyConfiguration();
2020-12-28 16:15:37 +01:00
private:
2022-02-02 05:57:17 +01:00
void changeEvent(QEvent* event) override;
void RetranslateUI();
void SetConfiguration();
2020-12-28 16:15:37 +01: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;
};