From d919f1da3b49bef5af4b91d982e0a53527e18ccd Mon Sep 17 00:00:00 2001 From: collecting Date: Wed, 4 Feb 2026 09:38:36 -0500 Subject: [PATCH] MSVC Compiler Warnings --- src/citron/game_list.cpp | 7 +++---- src/citron/main.cpp | 8 ++++---- src/citron/util/controller_navigation.h | 2 ++ 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/citron/game_list.cpp b/src/citron/game_list.cpp index cfaeeb1d0..9d06fbd79 100644 --- a/src/citron/game_list.cpp +++ b/src/citron/game_list.cpp @@ -1638,10 +1638,9 @@ void GameList::AddGamePopup(QMenu& context_menu, u64 program_id, const std::stri const QFileInfo file_info(qpath); QDesktopServices::openUrl(QUrl::fromLocalFile(file_info.absolutePath())); }); - connect(open_save_location, &QAction::triggered, - [this, program_id, game_name, copyWithProgress, path_str]() { - emit OpenFolderRequested(program_id, GameListOpenTarget::SaveData, path_str); - }); + connect(open_save_location, &QAction::triggered, [this, program_id, path_str]() { + emit OpenFolderRequested(program_id, GameListOpenTarget::SaveData, path_str); + }); connect(set_custom_save_path, &QAction::triggered, [this, program_id, copyWithProgress]() { const QString new_path = diff --git a/src/citron/main.cpp b/src/citron/main.cpp index b8d348c70..80ccfa406 100644 --- a/src/citron/main.cpp +++ b/src/citron/main.cpp @@ -4629,13 +4629,13 @@ void GMainWindow::LoadAmiibo(const QString& filename) { } void GMainWindow::OnOpenCitronFolder() { - QDesktopServices::openUrl(QUrl::fromLocalFile( - QString::fromStdString(Common::FS::GetCitronPath(Common::FS::CitronPath::CitronDir)))); + QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromStdString( + Common::FS::GetCitronPath(Common::FS::CitronPath::CitronDir).string()))); } void GMainWindow::OnOpenLogFolder() { - QDesktopServices::openUrl(QUrl::fromLocalFile( - QString::fromStdString(Common::FS::GetCitronPath(Common::FS::CitronPath::LogDir)))); + QDesktopServices::openUrl(QUrl::fromLocalFile(QString::fromStdString( + Common::FS::GetCitronPath(Common::FS::CitronPath::LogDir).string()))); } void GMainWindow::OnVerifyInstalledContents() { diff --git a/src/citron/util/controller_navigation.h b/src/citron/util/controller_navigation.h index 86e210368..f2f3da3dd 100644 --- a/src/citron/util/controller_navigation.h +++ b/src/citron/util/controller_navigation.h @@ -3,6 +3,8 @@ #pragma once +#include + #include #include