2024-07-30 11:42:36 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2024 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: GPL-3.0+
|
2022-04-04 00:32:21 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QtWidgets/QDialog>
|
|
|
|
|
2023-07-04 10:51:56 +00:00
|
|
|
#include "ui_MemoryCardCreateDialog.h"
|
2022-04-04 00:32:21 +00:00
|
|
|
|
|
|
|
#include "pcsx2/Config.h"
|
|
|
|
|
2023-07-04 10:51:56 +00:00
|
|
|
class MemoryCardCreateDialog final : public QDialog
|
2022-04-04 00:32:21 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2023-07-04 10:51:56 +00:00
|
|
|
explicit MemoryCardCreateDialog(QWidget* parent = nullptr);
|
|
|
|
~MemoryCardCreateDialog();
|
2022-04-04 00:32:21 +00:00
|
|
|
|
|
|
|
private Q_SLOTS:
|
|
|
|
void nameTextChanged();
|
|
|
|
void createCard();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void setType(MemoryCardType type, MemoryCardFileType fileType);
|
|
|
|
void restoreDefaults();
|
|
|
|
void updateState();
|
|
|
|
|
2023-07-04 10:51:56 +00:00
|
|
|
Ui::MemoryCardCreateDialog m_ui;
|
2022-04-04 00:32:21 +00:00
|
|
|
|
|
|
|
MemoryCardType m_type = MemoryCardType::File;
|
|
|
|
MemoryCardFileType m_fileType = MemoryCardFileType::PS2_8MB;
|
|
|
|
};
|