Browse Source
Fix windows build v2
Signed-off-by: crueter <crueter@eden-emu.dev>
pull/3472/head
crueter
2 days ago
No known key found for this signature in database
GPG Key ID: 425ACD2D4830EBC6
1 changed files with
2 additions and
1 deletions
-
src/yuzu/configuration/addon/mod_select_dialog.cpp
|
|
|
@ -2,6 +2,7 @@ |
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
|
|
#include <filesystem>
|
|
|
|
#include <QFileInfo>
|
|
|
|
#include <qnamespace.h>
|
|
|
|
#include "mod_select_dialog.h"
|
|
|
|
#include "ui_mod_select_dialog.h"
|
|
|
|
@ -18,7 +19,7 @@ ModSelectDialog::ModSelectDialog(const QStringList& mods, QWidget* parent) |
|
|
|
qRegisterMetaType<QList<QStandardItem*>>("QList<QStandardItem*>"); |
|
|
|
|
|
|
|
for (const auto& mod : mods) { |
|
|
|
const auto basename = QString::fromStdString(std::filesystem::path(mod.toStdString()).filename()); |
|
|
|
const auto basename = QFileInfo(mod).baseName(); |
|
|
|
|
|
|
|
auto* const first_item = new QStandardItem; |
|
|
|
first_item->setText(basename); |
|
|
|
|