aboutsummaryrefslogtreecommitdiff
path: root/src/yuzu/migration_worker.h
diff options
context:
space:
mode:
authorcrueter <crueter@eden-emu.dev>2026-03-10 06:51:08 +0100
committercrueter <crueter@eden-emu.dev>2026-03-10 06:51:08 +0100
commit8678cb06eb28a6416a4c6911458fc04113ad8ed4 (patch)
tree3ec250a08b89730833cb9e44d33a5ef42e094a0c /src/yuzu/migration_worker.h
parent769edbfea31e0300137bb1214dd2822fceaa09ab (diff)
[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>
Diffstat (limited to 'src/yuzu/migration_worker.h')
-rw-r--r--src/yuzu/migration_worker.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/src/yuzu/migration_worker.h b/src/yuzu/migration_worker.h
index 2db05570ea..42abedb9c8 100644
--- a/src/yuzu/migration_worker.h
+++ b/src/yuzu/migration_worker.h
@@ -1,4 +1,4 @@
-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project
+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
#ifndef MIGRATION_WORKER_H
@@ -8,7 +8,7 @@
#include "common/fs/path_util.h"
typedef struct Emulator {
- const char *m_name;
+ const char* m_name;
Common::FS::EmuPath e_user_dir;
Common::FS::EmuPath e_config_dir;
@@ -26,14 +26,20 @@ typedef struct Emulator {
return Common::FS::GetLegacyPath(e_cache_dir).string();
}
- const QString name() const { return QObject::tr(m_name);
+ const QString name() const {
+ return QObject::tr(m_name);
}
- const QString lower_name() const { return name().toLower();
+ const QString lower_name() const {
+ return name().toLower();
}
} Emulator;
-#define STRUCT_EMU(name, enumName) Emulator{name, Common::FS::enumName##Dir, Common::FS::enumName##ConfigDir, Common::FS::enumName##CacheDir}
+#define STRUCT_EMU(name, enumName) \
+ Emulator { \
+ name, Common::FS::enumName##Dir, Common::FS::enumName##ConfigDir, \
+ Common::FS::enumName##CacheDir \
+ }
static constexpr std::array<Emulator, 4> legacy_emus = {
STRUCT_EMU(QT_TR_NOOP("Citron"), Citron),
@@ -42,8 +48,7 @@ static constexpr std::array<Emulator, 4> legacy_emus = {
STRUCT_EMU(QT_TR_NOOP("Yuzu"), Yuzu),
};
-class MigrationWorker : public QObject
-{
+class MigrationWorker : public QObject {
Q_OBJECT
public:
enum class MigrationStrategy {
@@ -52,16 +57,15 @@ public:
Link,
};
- MigrationWorker(const Emulator selected_emu,
- const bool clear_shader_cache,
+ MigrationWorker(const Emulator selected_emu, const bool clear_shader_cache,
const MigrationStrategy strategy);
public slots:
void process();
signals:
- void finished(const QString &success_text, const std::string &user_dir);
- void error(const QString &error_message);
+ void finished(const QString& success_text, const std::string& user_dir);
+ void error(const QString& error_message);
private:
Emulator selected_emu;