mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-12-25 01:40:58 +01:00
yuzu/main: Use QStringLiteral where applicable within OnTransferableShaderCacheOpenFile()
Allows these strings to have no allocation cost when used at runtime.
This commit is contained in:
parent
5ba5f82082
commit
e5bb07a973
1 changed files with 2 additions and 2 deletions
|
@ -1105,10 +1105,10 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
|
||||||
// OS we just open the transferable shader cache folder without preselecting the transferable
|
// OS we just open the transferable shader cache folder without preselecting the transferable
|
||||||
// shader cache file for the selected game.
|
// shader cache file for the selected game.
|
||||||
#if defined(Q_OS_WIN)
|
#if defined(Q_OS_WIN)
|
||||||
const QString explorer = "explorer";
|
const QString explorer = QStringLiteral("explorer");
|
||||||
QStringList param;
|
QStringList param;
|
||||||
if (!QFileInfo(transferable_shader_cache_file_path).isDir()) {
|
if (!QFileInfo(transferable_shader_cache_file_path).isDir()) {
|
||||||
param << QLatin1String("/select,");
|
param << QStringLiteral("/select,");
|
||||||
}
|
}
|
||||||
param << QDir::toNativeSeparators(transferable_shader_cache_file_path);
|
param << QDir::toNativeSeparators(transferable_shader_cache_file_path);
|
||||||
QProcess::startDetached(explorer, param);
|
QProcess::startDetached(explorer, param);
|
||||||
|
|
Loading…
Reference in a new issue