From 929a38fc8a8432c7b3a5f7eb1d902609121b6625 Mon Sep 17 00:00:00 2001 From: Sheila Aman Date: Wed, 9 Jun 2021 21:09:21 -0500 Subject: [PATCH] Use the application's working directory by default on Windows. --- src/exdeath.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/exdeath.cc b/src/exdeath.cc index 0155276..e714f44 100644 --- a/src/exdeath.cc +++ b/src/exdeath.cc @@ -284,7 +284,11 @@ void Exdeath::btnROM_clicked(bool trigger) { filename = QFileDialog::getOpenFileName( this, "Select ROM image", + #ifdef __WIN32__ + QApplication::applicationDirPath(), + #else QStandardPaths::standardLocations(QStandardPaths::DocumentsLocation)[0], + #endif "GBA ROM images (*.gba)" ); _cfg->setValue("rom/filename", filename);