2022-04-23 09:59:50 +01:00
|
|
|
// SPDX-FileCopyrightText: Copyright 2019 yuzu Emulator Project
|
|
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
2019-04-23 13:36:35 +01: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-02 02:59:29 +00:00
|
|
|
void ApplyConfiguration();
|
2019-04-23 13:36:35 +01:00
|
|
|
|
|
|
|
private:
|
2022-02-02 03:03:10 +00:00
|
|
|
void changeEvent(QEvent* event) override;
|
|
|
|
|
2022-02-02 02:59:29 +00:00
|
|
|
void RetranslateUI();
|
|
|
|
void SetConfiguration();
|
2019-04-23 13:36:35 +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;
|
|
|
|
};
|