aboutsummaryrefslogtreecommitdiff
path: root/src/qt_common
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-06-04 05:49:07 +0200
committercrueter <crueter@eden-emu.dev>2026-06-04 05:49:07 +0200
commit89199f4d279bff0c664fb9142b1945d0c6d93ee8 (patch)
treef7223e46b4d1ecf0355adc5fc9363bae093dcf89 /src/qt_common
parent978d9d935d50fd09af5c6173582b1d63792900bd (diff)
[*] basic in-house cpp linting (#4039)
- add `#pragma once` to remainder files - "correcter" defines (ANDROID), see https://groups.google.com/g/android-ndk/c/cf9_f1SLXls - extra miscelly fixups Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4039 Reviewed-by: MaranBr <maranbr@eden-emu.dev> Reviewed-by: crueter <crueter@eden-emu.dev>
Diffstat (limited to 'src/qt_common')
-rw-r--r--src/qt_common/abstract/frontend.h4
-rw-r--r--src/qt_common/qt_common.h4
-rw-r--r--src/qt_common/util/applet.h4
-rw-r--r--src/qt_common/util/content.h4
-rw-r--r--src/qt_common/util/fs.h4
-rw-r--r--src/qt_common/util/game.h5
-rw-r--r--src/qt_common/util/meta.h4
-rw-r--r--src/qt_common/util/path.h5
-rw-r--r--src/qt_common/util/rom.h9
9 files changed, 11 insertions, 32 deletions
diff --git a/src/qt_common/abstract/frontend.h b/src/qt_common/abstract/frontend.h
index 9b70f6849e..48c7c6edd0 100644
--- a/src/qt_common/abstract/frontend.h
+++ b/src/qt_common/abstract/frontend.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef FRONTEND_H
-#define FRONTEND_H
+#pragma once
#include <QGuiApplication>
#include "qt_common/qt_common.h"
@@ -114,4 +113,3 @@ const QString GetTextInput(const QString& title = QString(), const QString& capt
const QString& defaultText = QString());
} // namespace QtCommon::Frontend
-#endif // FRONTEND_H
diff --git a/src/qt_common/qt_common.h b/src/qt_common/qt_common.h
index 2109774506..ea8e3f73a2 100644
--- a/src/qt_common/qt_common.h
+++ b/src/qt_common/qt_common.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_COMMON_H
-#define QT_COMMON_H
+#pragma once
#include <memory>
#include <QWindow>
@@ -62,4 +61,3 @@ const QString tr(const std::string& str);
std::filesystem::path GetEdenCommand();
} // namespace QtCommon
-#endif
diff --git a/src/qt_common/util/applet.h b/src/qt_common/util/applet.h
index f88aa066b2..41294466da 100644
--- a/src/qt_common/util/applet.h
+++ b/src/qt_common/util/applet.h
@@ -1,9 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_APPLET_UTIL_H
-#define QT_APPLET_UTIL_H
+#pragma once
// TODO
namespace QtCommon::Applets {}
-#endif // QT_APPLET_UTIL_H
diff --git a/src/qt_common/util/content.h b/src/qt_common/util/content.h
index 452764ef54..6b0cbb5965 100644
--- a/src/qt_common/util/content.h
+++ b/src/qt_common/util/content.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_CONTENT_UTIL_H
-#define QT_CONTENT_UTIL_H
+#pragma once
#include <QObject>
#include "common/common_types.h"
@@ -63,4 +62,3 @@ void configureFilesystemProvider(const std::string& filepath);
// Profiles //
void FixProfiles();
} // namespace QtCommon::Content
-#endif // QT_CONTENT_UTIL_H
diff --git a/src/qt_common/util/fs.h b/src/qt_common/util/fs.h
index 5ab59e2a45..8f42beaaa3 100644
--- a/src/qt_common/util/fs.h
+++ b/src/qt_common/util/fs.h
@@ -1,12 +1,12 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
+#pragma once
+
#include <filesystem>
#include <optional>
#include "common/common_types.h"
-#pragma once
-
namespace QtCommon::FS {
void LinkRyujinx(std::filesystem::path& from, std::filesystem::path& to);
diff --git a/src/qt_common/util/game.h b/src/qt_common/util/game.h
index 9a61bb9349..8722574ed7 100644
--- a/src/qt_common/util/game.h
+++ b/src/qt_common/util/game.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_GAME_UTIL_H
-#define QT_GAME_UTIL_H
+#pragma once
#include <QObject>
#include <QStandardPaths>
@@ -78,5 +77,3 @@ void CreateHomeMenuShortcut(ShortcutTarget target);
[[nodiscard]] bool SaveIconToFile(const std::filesystem::path& icon_path, const QImage& image);
} // namespace QtCommon::Game
-
-#endif // QT_GAME_UTIL_H
diff --git a/src/qt_common/util/meta.h b/src/qt_common/util/meta.h
index ae6dbc49d8..d408b5759c 100644
--- a/src/qt_common/util/meta.h
+++ b/src/qt_common/util/meta.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_META_H
-#define QT_META_H
+#pragma once
#include <QObject>
@@ -12,4 +11,3 @@ namespace QtCommon::Meta {
void RegisterMetaTypes();
} // namespace QtCommon::Meta
-#endif // QT_META_H
diff --git a/src/qt_common/util/path.h b/src/qt_common/util/path.h
index aff0009f34..ba77625226 100644
--- a/src/qt_common/util/path.h
+++ b/src/qt_common/util/path.h
@@ -1,8 +1,7 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_PATH_UTIL_H
-#define QT_PATH_UTIL_H
+#pragma once
#include <QObject>
#include "common/common_types.h"
@@ -10,5 +9,3 @@
namespace QtCommon::Path {
bool OpenShaderCache(u64 program_id, QObject* parent);
}
-
-#endif // QT_PATH_UTIL_H
diff --git a/src/qt_common/util/rom.h b/src/qt_common/util/rom.h
index 5ceadaf46b..6ea5082082 100644
--- a/src/qt_common/util/rom.h
+++ b/src/qt_common/util/rom.h
@@ -1,16 +1,11 @@
// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
// SPDX-License-Identifier: GPL-3.0-or-later
-#ifndef QT_ROM_UTIL_H
-#define QT_ROM_UTIL_H
+#pragma once
#include <cstddef>
#include "qt_common/qt_common.h"
namespace QtCommon::ROM {
-
-bool RomFSRawCopy(size_t total_size, size_t& read_size, QtProgressCallback callback,
- const FileSys::VirtualDir& src, const FileSys::VirtualDir& dest, bool full);
-
+bool RomFSRawCopy(size_t total_size, size_t& read_size, QtProgressCallback callback, const FileSys::VirtualDir& src, const FileSys::VirtualDir& dest, bool full);
}
-#endif // QT_ROM_UTIL_H