mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2025-07-26 15:50:00 -06:00
heh
This commit is contained in:
@ -17,6 +17,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <QFileDialog>
|
||||||
|
|
||||||
#include "types.h"
|
#include "types.h"
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
@ -33,6 +34,8 @@
|
|||||||
FILE* TitleManagerDialog::curNAND = nullptr;
|
FILE* TitleManagerDialog::curNAND = nullptr;
|
||||||
TitleManagerDialog* TitleManagerDialog::currentDlg = nullptr;
|
TitleManagerDialog* TitleManagerDialog::currentDlg = nullptr;
|
||||||
|
|
||||||
|
extern char* EmuDirectory;
|
||||||
|
|
||||||
|
|
||||||
TitleManagerDialog::TitleManagerDialog(QWidget* parent) : QDialog(parent), ui(new Ui::TitleManagerDialog)
|
TitleManagerDialog::TitleManagerDialog(QWidget* parent) : QDialog(parent), ui(new Ui::TitleManagerDialog)
|
||||||
{
|
{
|
||||||
@ -143,10 +146,36 @@ TitleImportDialog::TitleImportDialog(QWidget* parent) : QDialog(parent), ui(new
|
|||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
setAttribute(Qt::WA_DeleteOnClose);
|
setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
|
||||||
// shit here
|
grpTmdSource = new QButtonGroup(this);
|
||||||
|
grpTmdSource->addButton(ui->rbTmdFromFile, 0);
|
||||||
|
grpTmdSource->addButton(ui->rbTmdFromNUS, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
TitleImportDialog::~TitleImportDialog()
|
TitleImportDialog::~TitleImportDialog()
|
||||||
{
|
{
|
||||||
delete ui;
|
delete ui;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TitleImportDialog::on_btnAppBrowse_clicked()
|
||||||
|
{
|
||||||
|
QString file = QFileDialog::getOpenFileName(this,
|
||||||
|
"Select title executable...",
|
||||||
|
EmuDirectory,
|
||||||
|
"DSiware executables (*.app *.nds *.dsi *.srl);;Any file (*.*)");
|
||||||
|
|
||||||
|
if (file.isEmpty()) return;
|
||||||
|
|
||||||
|
ui->txtAppFile->setText(file);
|
||||||
|
}
|
||||||
|
|
||||||
|
void TitleImportDialog::on_btnTmdBrowse_clicked()
|
||||||
|
{
|
||||||
|
QString file = QFileDialog::getOpenFileName(this,
|
||||||
|
"Select title metadata...",
|
||||||
|
EmuDirectory,
|
||||||
|
"DSiware metadata (*.tmd);;Any file (*.*)");
|
||||||
|
|
||||||
|
if (file.isEmpty()) return;
|
||||||
|
|
||||||
|
ui->txtTmdFile->setText(file);
|
||||||
|
}
|
||||||
|
@ -21,6 +21,7 @@
|
|||||||
|
|
||||||
#include <QDialog>
|
#include <QDialog>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
#include <QButtonGroup>
|
||||||
|
|
||||||
namespace Ui
|
namespace Ui
|
||||||
{
|
{
|
||||||
@ -87,10 +88,13 @@ public:
|
|||||||
~TitleImportDialog();
|
~TitleImportDialog();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//
|
void on_btnAppBrowse_clicked();
|
||||||
|
void on_btnTmdBrowse_clicked();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Ui::TitleImportDialog* ui;
|
Ui::TitleImportDialog* ui;
|
||||||
|
|
||||||
|
QButtonGroup* grpTmdSource;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // TITLEMANAGERDIALOG_H
|
#endif // TITLEMANAGERDIALOG_H
|
||||||
|
Reference in New Issue
Block a user