diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/yuzu/main.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index f45a74c6d..6f1d10e17 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1087,7 +1087,7 @@ void GMainWindow::OnGameListOpenFolder(u64 program_id, GameListOpenTarget target | |||
| 1087 | void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { | 1087 | void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { |
| 1088 | ASSERT(program_id != 0); | 1088 | ASSERT(program_id != 0); |
| 1089 | 1089 | ||
| 1090 | constexpr char open_target[] = "Transferable Shader Cache"; | 1090 | const QString open_target = QStringLiteral("Transferable Shader Cache"); |
| 1091 | const QString tranferable_shader_cache_folder_path = | 1091 | const QString tranferable_shader_cache_folder_path = |
| 1092 | QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir)) + "opengl" + | 1092 | QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir)) + "opengl" + |
| 1093 | DIR_SEP + "transferable"; | 1093 | DIR_SEP + "transferable"; |
| @@ -1097,12 +1097,10 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { | |||
| 1097 | QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin"; | 1097 | QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin"; |
| 1098 | 1098 | ||
| 1099 | if (!QFile::exists(transferable_shader_cache_file_path)) { | 1099 | if (!QFile::exists(transferable_shader_cache_file_path)) { |
| 1100 | QMessageBox::warning(this, | 1100 | QMessageBox::warning(this, tr("Error Opening %1 File").arg(open_target), |
| 1101 | tr("Error Opening %1 File").arg(QString::fromStdString(open_target)), | ||
| 1102 | tr("File does not exist!")); | 1101 | tr("File does not exist!")); |
| 1103 | return; | 1102 | return; |
| 1104 | } | 1103 | } |
| 1105 | LOG_INFO(Frontend, "Opening {} path for program_id={:016x}", open_target, program_id); | ||
| 1106 | 1104 | ||
| 1107 | // Windows supports opening a folder with selecting a specified file in explorer. On every other | 1105 | // Windows supports opening a folder with selecting a specified file in explorer. On every other |
| 1108 | // OS we just open the transferable shader cache folder without preselecting the transferable | 1106 | // OS we just open the transferable shader cache folder without preselecting the transferable |