| 3428 | } |
| 3429 | |
| 3430 | void MainWindow::openMemoryCardFolder() |
| 3431 | { |
| 3432 | const std::string memcard_dir = EmuFolders::MemoryCards; |
| 3433 | |
| 3434 | // Make sure directory exists or that we can successfully create it. |
| 3435 | if (FileSystem::DirectoryExists(memcard_dir.c_str()) || FileSystem::CreateDirectoryPath(memcard_dir.c_str(), false)) |
| 3436 | { |
| 3437 | const QFileInfo fi(QString::fromStdString(memcard_dir)); |
| 3438 | QtUtils::OpenURL(this, QUrl::fromLocalFile(fi.absoluteFilePath())); |
| 3439 | return; |
| 3440 | } |
| 3441 | |
| 3442 | QMessageBox::critical(this, tr("Error"), tr("Failed to open memory card directory.")); |
| 3443 | } |
| 3444 | |
| 3445 | void MainWindow::openVideoCaptureFolder(const GameList::Entry& entry) |
| 3446 | { |