2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

yuzu/main: Use static variant of QFile's exists()

There's no need to construct a QFile instance just to check for its
existence.
This commit is contained in:
Lioncash 2019-04-03 23:53:29 -04:00
parent 7c31661869
commit ba4e1adda1

View file

@ -1096,7 +1096,7 @@ void GMainWindow::OnTransferableShaderCacheOpenFile(u64 program_id) {
tranferable_shader_cache_folder_path + DIR_SEP + tranferable_shader_cache_folder_path + DIR_SEP +
QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin"; QString::fromStdString(fmt::format("{:016X}", program_id)) + ".bin";
if (!QFile(transferable_shader_cache_file_path).exists()) { if (!QFile::exists(transferable_shader_cache_file_path)) {
QMessageBox::warning(this, QMessageBox::warning(this,
tr("Error Opening %1 File").arg(QString::fromStdString(open_target)), tr("Error Opening %1 File").arg(QString::fromStdString(open_target)),
tr("File does not exist!")); tr("File does not exist!"));