mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-05-01 19:29:01 +02:00
[meta] clang-format literally all of the Qt code (#3706)
I'm tired of dealing with this tbh Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3706 Reviewed-by: Lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
769edbfea3
commit
8678cb06eb
107 changed files with 1457 additions and 1737 deletions
|
|
@ -1,20 +1,16 @@
|
|||
// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
|
||||
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
||||
// SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
#include "qt_common/abstract/frontend.h"
|
||||
#include "ryujinx_dialog.h"
|
||||
#include "qt_common/util/fs.h"
|
||||
#include "ui_ryujinx_dialog.h"
|
||||
#include <filesystem>
|
||||
#include "qt_common/abstract/frontend.h"
|
||||
#include "qt_common/util/fs.h"
|
||||
#include "ryujinx_dialog.h"
|
||||
#include "ui_ryujinx_dialog.h"
|
||||
|
||||
RyujinxDialog::RyujinxDialog(std::filesystem::path eden_path,
|
||||
std::filesystem::path ryu_path,
|
||||
QWidget *parent)
|
||||
: QDialog(parent)
|
||||
, ui(new Ui::RyujinxDialog)
|
||||
, m_eden(eden_path.make_preferred())
|
||||
, m_ryu(ryu_path.make_preferred())
|
||||
{
|
||||
RyujinxDialog::RyujinxDialog(std::filesystem::path eden_path, std::filesystem::path ryu_path,
|
||||
QWidget* parent)
|
||||
: QDialog(parent), ui(new Ui::RyujinxDialog), m_eden(eden_path.make_preferred()),
|
||||
m_ryu(ryu_path.make_preferred()) {
|
||||
ui->setupUi(this);
|
||||
|
||||
connect(ui->eden, &QPushButton::clicked, this, &RyujinxDialog::fromEden);
|
||||
|
|
@ -22,13 +18,11 @@ RyujinxDialog::RyujinxDialog(std::filesystem::path eden_path,
|
|||
connect(ui->cancel, &QPushButton::clicked, this, &RyujinxDialog::reject);
|
||||
}
|
||||
|
||||
RyujinxDialog::~RyujinxDialog()
|
||||
{
|
||||
RyujinxDialog::~RyujinxDialog() {
|
||||
delete ui;
|
||||
}
|
||||
|
||||
void RyujinxDialog::fromEden()
|
||||
{
|
||||
void RyujinxDialog::fromEden() {
|
||||
accept();
|
||||
|
||||
// Workaround: Ryujinx deletes and re-creates its directory structure???
|
||||
|
|
@ -38,17 +32,17 @@ void RyujinxDialog::fromEden()
|
|||
fs::remove_all(m_ryu);
|
||||
fs::create_directories(m_ryu);
|
||||
fs::copy(m_eden, m_ryu, fs::copy_options::recursive);
|
||||
} catch (std::exception &e) {
|
||||
QtCommon::Frontend::Critical(tr("Failed to link save data"),
|
||||
tr("OS returned error: %1").arg(QString::fromStdString(e.what())));
|
||||
} catch (std::exception& e) {
|
||||
QtCommon::Frontend::Critical(
|
||||
tr("Failed to link save data"),
|
||||
tr("OS returned error: %1").arg(QString::fromStdString(e.what())));
|
||||
}
|
||||
|
||||
// ?ploo
|
||||
QtCommon::FS::LinkRyujinx(m_ryu, m_eden);
|
||||
}
|
||||
|
||||
void RyujinxDialog::fromRyujinx()
|
||||
{
|
||||
void RyujinxDialog::fromRyujinx() {
|
||||
accept();
|
||||
QtCommon::FS::LinkRyujinx(m_ryu, m_eden);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue