summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-18 10:21:33 -0500
committerGitHub <noreply@github.com>2022-12-18 10:21:33 -0500
commitee71404d7166fc652573e8bfb9c9b87b7ad36ebc (patch)
treec5b8c56d32d0dd9365ab8ed6ba2233372551c2c1 /src
parentdcc8abf2540ea5f19093c15566e03176bed305af (diff)
parentc218c7d4da427a924bf935d8e5e6be04f7e43da5 (diff)
Merge pull request #9467 from german77/folder
yuzu: Remember last selected directory
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 2e6c2311a..fe140dce0 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -2661,6 +2661,9 @@ void GMainWindow::OnMenuInstallToNAND() {
return;
}
+ // Save folder location of the first selected file
+ UISettings::values.roms_path = QFileInfo(filenames[0]).path();
+
int remaining = filenames.size();
// This would only overflow above 2^43 bytes (8.796 TB)