diff options
| author | 2019-04-03 23:58:56 -0400 | |
|---|---|---|
| committer | 2019-04-03 23:58:58 -0400 | |
| commit | 3f8c9b25d8bf0423bc0e390a2302cb7893cac11e (patch) | |
| tree | 0dc545e16bc62385feaa9dce73a7274f6b330be7 | |
| parent | yuzu/main: Make open_target a QString (diff) | |
| download | yuzu-3f8c9b25d8bf0423bc0e390a2302cb7893cac11e.tar.gz yuzu-3f8c9b25d8bf0423bc0e390a2302cb7893cac11e.tar.xz yuzu-3f8c9b25d8bf0423bc0e390a2302cb7893cac11e.zip | |
yuzu/main: Remove unnecessary string concatenation in OnTransferableShaderCacheOpenFile()
We can just make the trailing portion of the string part of the
formatting, getting rid of the need to make another temporary string.
| -rw-r--r-- | src/yuzu/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 6f1d10e17..cff5d9df8 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp | |||
| @@ -1094,7 +1094,7 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) { | |||
| 1094 | 1094 | ||
| 1095 | const QString transferable_shader_cache_file_path = | 1095 | const QString transferable_shader_cache_file_path = |
| 1096 | tranferable_shader_cache_folder_path + DIR_SEP + | 1096 | tranferable_shader_cache_folder_path + DIR_SEP + |
| 1097 | QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin"; | 1097 | QString::fromStdString(fmt::format("{:016X}.bin", program_id)); |
| 1098 | 1098 | ||
| 1099 | if (!QFile::exists(transferable_shader_cache_file_path)) { | 1099 | if (!QFile::exists(transferable_shader_cache_file_path)) { |
| 1100 | QMessageBox::warning(this, tr("Error Opening %1 File").arg(open_target), | 1100 | QMessageBox::warning(this, tr("Error Opening %1 File").arg(open_target), |