summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2022-12-18 16:21:33 +0100
committerGitHub <noreply@github.com>2022-12-18 16:21:33 +0100
commitee71404d7166fc652573e8bfb9c9b87b7ad36ebc (patch)
treec5b8c56d32d0dd9365ab8ed6ba2233372551c2c1
parentMerge pull request #9466 from german77/fix_errors (diff)
parentyuzu: Remember last selected directory (diff)
downloadyuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar.gz
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar.bz2
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar.lz
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar.xz
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.tar.zst
yuzu-ee71404d7166fc652573e8bfb9c9b87b7ad36ebc.zip
-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)