summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-04 00:06:32 -0400
committerGravatar Lioncash2019-04-04 00:12:04 -0400
commit5ba5f82082a1406b81f9a2a40a99bdd3d0cc6314 (patch)
treea59526b1fb6369265fac1285a4979c70ceee278f /src
parentyuzu/main: Remove unnecessary string concatenation in OnTransferableShaderCac... (diff)
downloadyuzu-5ba5f82082a1406b81f9a2a40a99bdd3d0cc6314.tar.gz
yuzu-5ba5f82082a1406b81f9a2a40a99bdd3d0cc6314.tar.xz
yuzu-5ba5f82082a1406b81f9a2a40a99bdd3d0cc6314.zip
yuzu/main: Tidy up the error dialog string in OnTransferableShaderCacheOpenFile()
Rather than scream that the file doesn't exist, we can clearly state what specifically doesn't exist, to avoid ambiguity, and make it easier to understand for non-primary English speakers/readers.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp
index cff5d9df8..980aed496 100644
--- a/src/yuzu/main.cpp
+++ b/src/yuzu/main.cpp
@@ -1087,7 +1087,6 @@ void GMainWindow::OnGameListOpenFolder(u64 program_id, GameListOpenTarget target
1087void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { 1087void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
1088 ASSERT(program_id != 0); 1088 ASSERT(program_id != 0);
1089 1089
1090 const QString open_target = QStringLiteral("Transferable Shader Cache");
1091 const QString tranferable_shader_cache_folder_path = 1090 const QString tranferable_shader_cache_folder_path =
1092 QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir)) + "opengl" + 1091 QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir)) + "opengl" +
1093 DIR_SEP + "transferable"; 1092 DIR_SEP + "transferable";
@@ -1097,8 +1096,8 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
1097 QString::fromStdString(fmt::format("{:016X}.bin", program_id)); 1096 QString::fromStdString(fmt::format("{:016X}.bin", program_id));
1098 1097
1099 if (!QFile::exists(transferable_shader_cache_file_path)) { 1098 if (!QFile::exists(transferable_shader_cache_file_path)) {
1100 QMessageBox::warning(this, tr("Error Opening %1 File").arg(open_target), 1099 QMessageBox::warning(this, tr("Error Opening Transferable Shader Cache"),
1101 tr("File does not exist!")); 1100 tr("A shader cache for this title does not exist."));
1102 return; 1101 return;
1103 } 1102 }
1104 1103