Fix NSO loading

This commit is contained in:
lizzie
2026-05-20 00:35:45 +00:00
committed by crueter
parent 39db9f9362
commit dba2d68ca2
4 changed files with 39 additions and 14 deletions
+1 -1
View File
@@ -2779,7 +2779,7 @@ void MainWindow::OnMenuLoadFolder() {
const QDir dir{dir_path};
const QStringList matching_main = dir.entryList({QStringLiteral("main")}, QDir::Files);
if (matching_main.size() == 1) {
if (matching_main.size() > 0) {
BootGame(dir.path() + QDir::separator() + matching_main[0], ApplicationAppletParameters());
} else {
QMessageBox::warning(this, tr("Invalid Directory Selected"),