2023-12-22 11:57:49 +00:00
|
|
|
// SPDX-FileCopyrightText: 2002-2023 PCSX2 Dev Team
|
|
|
|
// SPDX-License-Identifier: LGPL-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;
|
|
|
|
};
|