aboutsummaryrefslogtreecommitdiff
path: root/src/frontend/qt_sdl/EmuSettingsDialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/qt_sdl/EmuSettingsDialog.cpp')
-rw-r--r--src/frontend/qt_sdl/EmuSettingsDialog.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/frontend/qt_sdl/EmuSettingsDialog.cpp b/src/frontend/qt_sdl/EmuSettingsDialog.cpp
index 9413846..99c6630 100644
--- a/src/frontend/qt_sdl/EmuSettingsDialog.cpp
+++ b/src/frontend/qt_sdl/EmuSettingsDialog.cpp
@@ -33,7 +33,7 @@
EmuSettingsDialog* EmuSettingsDialog::currentDlg = nullptr;
-extern char* EmuDirectory;
+extern std::string EmuDirectory;
extern bool RunningSomething;
bool EmuSettingsDialog::needsReset = false;
@@ -294,7 +294,7 @@ void EmuSettingsDialog::on_btnBIOS9Browse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DS-mode ARM9 BIOS...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"BIOS files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -306,7 +306,7 @@ void EmuSettingsDialog::on_btnBIOS7Browse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DS-mode ARM7 BIOS...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"BIOS files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -318,7 +318,7 @@ void EmuSettingsDialog::on_btnFirmwareBrowse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DS-mode firmware...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"Firmware files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -330,7 +330,7 @@ void EmuSettingsDialog::on_btnDSiBIOS9Browse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DSi-mode ARM9 BIOS...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"BIOS files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -342,7 +342,7 @@ void EmuSettingsDialog::on_btnDSiBIOS7Browse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DSi-mode ARM7 BIOS...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"BIOS files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -368,7 +368,7 @@ void EmuSettingsDialog::on_btnDLDISDBrowse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DLDI SD image...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"Image files (*.bin *.rom *.img *.dmg);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -387,7 +387,7 @@ void EmuSettingsDialog::on_btnDLDIFolderBrowse_clicked()
{
QString dir = QFileDialog::getExistingDirectory(this,
"Select DLDI SD folder...",
- EmuDirectory);
+ QString::fromStdString(EmuDirectory));
if (dir.isEmpty()) return;
@@ -398,7 +398,7 @@ void EmuSettingsDialog::on_btnDSiFirmwareBrowse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DSi DS-mode firmware...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"Firmware files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -410,7 +410,7 @@ void EmuSettingsDialog::on_btnDSiNANDBrowse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DSi NAND...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"NAND files (*.bin *.rom);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -436,7 +436,7 @@ void EmuSettingsDialog::on_btnDSiSDBrowse_clicked()
{
QString file = QFileDialog::getOpenFileName(this,
"Select DSi SD image...",
- EmuDirectory,
+ QString::fromStdString(EmuDirectory),
"Image files (*.bin *.rom *.img *.dmg);;Any file (*.*)");
if (file.isEmpty()) return;
@@ -455,7 +455,7 @@ void EmuSettingsDialog::on_btnDSiSDFolderBrowse_clicked()
{
QString dir = QFileDialog::getExistingDirectory(this,
"Select DSi SD folder...",
- EmuDirectory);
+ QString::fromStdString(EmuDirectory));
if (dir.isEmpty()) return;