mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-18 21:17:58 -05:00
yuzu: Add UI to manage filesystem paths and sizes
This commit is contained in:
43
src/yuzu/configuration/configure_filesystem.h
Normal file
43
src/yuzu/configuration/configure_filesystem.h
Normal file
@ -0,0 +1,43 @@
|
||||
// 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;
|
||||
|
||||
void applyConfiguration();
|
||||
void retranslateUi();
|
||||
|
||||
private:
|
||||
void setConfiguration();
|
||||
|
||||
enum class DirectoryTarget {
|
||||
NAND,
|
||||
SD,
|
||||
Gamecard,
|
||||
Dump,
|
||||
Load,
|
||||
Cache,
|
||||
};
|
||||
|
||||
void SetDirectory(DirectoryTarget target, QLineEdit* edit);
|
||||
void ResetMetadata();
|
||||
void UpdateEnabledControls();
|
||||
|
||||
std::unique_ptr<Ui::ConfigureFilesystem> ui;
|
||||
};
|
Reference in New Issue
Block a user