Skip to content

VERY experimental Nintendo Switch 2 emulator

C++

yuzu: Remember last selected directory

german77a96b380b0938
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index 2e6c2311ac..fe140dce02 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)