summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-04 05:55:55 +0200
committerLioncash <mathew1800@gmail.com>2019-04-04 05:55:57 +0200
commit872d480c6063d77c4e3f29b9a6a357fa8b874fb6 (patch)
tree1ca1c3917110dfcf37b0ad2fe1302cbd3a0d49f3
parentyuzu/main: Use static variant of QFile's exists() (diff)
downloadyuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar.gz
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar.bz2
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar.lz
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar.xz
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.tar.zst
yuzu-872d480c6063d77c4e3f29b9a6a357fa8b874fb6.zip
-rw-r--r--src/yuzu/main.cpp6
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
void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
ASSERT(program_id != 0);
- constexpr char open_target[] = "Transferable Shader Cache";
+ const QString open_target = QStringLiteral("Transferable Shader Cache");
const QString tranferable_shader_cache_folder_path =
QString::fromStdString(FileUtil::GetUserPath(FileUtil::UserPath::ShaderDir)) + "opengl" +
DIR_SEP + "transferable";
@@ -1097,12 +1097,10 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin";
if (!QFile::exists(transferable_shader_cache_file_path)) {
- QMessageBox::warning(this,
- tr("Error Opening %1 File").arg(QString::fromStdString(open_target)),
+ QMessageBox::warning(this, tr("Error Opening %1 File").arg(open_target),
tr("File does not exist!"));
return;
}
- LOG_INFO(Frontend, "Opening {} path for program_id={:016x}", open_target, program_id);
// Windows supports opening a folder with selecting a specified file in explorer. On every other
// OS we just open the transferable shader cache folder without preselecting the transferable