VERY experimental Nintendo Switch 2 emulator
C++
[*] fix missing '#pragma once' on header files (#4014)
lizzie9d55875377f4
diff --git a/src/common/container_hash.h b/src/common/container_hash.hindex a5e3577452..b6d8e02e26 100644--- a/src/common/container_hash.h+++ b/src/common/container_hash.h@@ -1,7 +1,12 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: 2005-2014 Daniel James// SPDX-FileCopyrightText: 2016 Austin Appleby// SPDX-License-Identifier: BSL-1.0+#pragma once+#include <array>#include <climits>#include <cstdint>diff --git a/src/core/arm/dynarmic/arm_dynarmic.h b/src/core/arm/dynarmic/arm_dynarmic.hindex 46384f7e6d..8e6b1d9766 100644--- a/src/core/arm/dynarmic/arm_dynarmic.h+++ b/src/core/arm/dynarmic/arm_dynarmic.h@@ -1,9 +1,11 @@-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project// SPDX-License-Identifier: GPL-3.0-or-later// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include <dynarmic/interface/halt_reason.h>#include "core/arm/arm_interface.h"diff --git a/src/core/arm/nce/instructions.h b/src/core/arm/nce/instructions.hindex ada0da9559..451778df65 100644--- a/src/core/arm/nce/instructions.h+++ b/src/core/arm/nce/instructions.h@@ -1,9 +1,11 @@-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project// SPDX-License-Identifier: GPL-3.0-or-later// SPDX-FileCopyrightText: Copyright 2020 Skyline Team and Contributors// SPDX-License-Identifier: MPL-2.0+#pragma once+#include "common/bit_field.h"#include "common/common_types.h"diff --git a/src/core/hle/kernel/k_typed_address.h b/src/core/hle/kernel/k_typed_address.hindex d57535ba01..d793d67a10 100644--- a/src/core/hle/kernel/k_typed_address.h+++ b/src/core/hle/kernel/k_typed_address.h@@ -1,6 +1,11 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "common/typed_address.h"namespace Kernel {diff --git a/src/core/hle/service/nvnflinger/hos_binder_driver.h b/src/core/hle/service/nvnflinger/hos_binder_driver.hindex b7fb07bd2e..6b551c91d2 100644--- a/src/core/hle/service/nvnflinger/hos_binder_driver.h+++ b/src/core/hle/service/nvnflinger/hos_binder_driver.h@@ -1,6 +1,11 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/service/cmif_types.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/olsc/daemon_controller.h b/src/core/hle/service/olsc/daemon_controller.hindex fc7dd7bbcb..5f978ab153 100644--- a/src/core/hle/service/olsc/daemon_controller.h+++ b/src/core/hle/service/olsc/daemon_controller.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include <ankerl/unordered_dense.h>#include "common/uuid.h"diff --git a/src/core/hle/service/olsc/native_handle_holder.h b/src/core/hle/service/olsc/native_handle_holder.hindex 985c60d1cb..e0eac50c28 100644--- a/src/core/hle/service/olsc/native_handle_holder.h+++ b/src/core/hle/service/olsc/native_handle_holder.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/service/cmif_types.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/olsc/olsc_service_for_application.h b/src/core/hle/service/olsc/olsc_service_for_application.hindex 3f9ac7536a..8941659478 100644--- a/src/core/hle/service/olsc/olsc_service_for_application.h+++ b/src/core/hle/service/olsc/olsc_service_for_application.h@@ -1,6 +1,11 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/service/cmif_types.h"#include "core/hle/service/ns/ns_types.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/olsc/olsc_service_for_system_service.h b/src/core/hle/service/olsc/olsc_service_for_system_service.hindex 447e37005e..d16c8b979b 100644--- a/src/core/hle/service/olsc/olsc_service_for_system_service.h+++ b/src/core/hle/service/olsc/olsc_service_for_system_service.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include <array>#include "common/uuid.h"diff --git a/src/core/hle/service/olsc/remote_storage_controller.h b/src/core/hle/service/olsc/remote_storage_controller.hindex bae1e8efb5..21b439013a 100644--- a/src/core/hle/service/olsc/remote_storage_controller.h+++ b/src/core/hle/service/olsc/remote_storage_controller.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/service/cmif_types.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/olsc/transfer_task_list_controller.h b/src/core/hle/service/olsc/transfer_task_list_controller.hindex 72dbf610d8..4ac770b477 100644--- a/src/core/hle/service/olsc/transfer_task_list_controller.h+++ b/src/core/hle/service/olsc/transfer_task_list_controller.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/service/cmif_types.h"#include "core/hle/service/service.h"diff --git a/src/core/hle/service/ro/ro_results.h b/src/core/hle/service/ro/ro_results.hindex 00f05c5a59..906378bc7f 100644--- a/src/core/hle/service/ro/ro_results.h+++ b/src/core/hle/service/ro/ro_results.h@@ -1,6 +1,11 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "core/hle/result.h"namespace Service::RO {diff --git a/src/core/hle/service/ro/ro_types.h b/src/core/hle/service/ro/ro_types.hindex 50b424395a..8e88f43246 100644--- a/src/core/hle/service/ro/ro_types.h+++ b/src/core/hle/service/ro/ro_types.h@@ -4,6 +4,8 @@// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "common/assert.h"#include "common/common_funcs.h"#include "common/common_types.h"diff --git a/src/core/hle/service/vi/application_display_service.h b/src/core/hle/service/vi/application_display_service.hindex 1bdeb8f845..a2eeb4c70c 100644--- a/src/core/hle/service/vi/application_display_service.h+++ b/src/core/hle/service/vi/application_display_service.h@@ -1,6 +1,11 @@+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project+// SPDX-License-Identifier: GPL-3.0-or-later+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include <map>#include <set>diff --git a/src/core/hle/service/vi/system_display_service.h b/src/core/hle/service/vi/system_display_service.hindex d6cc8c75f1..a3b88c519d 100644--- a/src/core/hle/service/vi/system_display_service.h+++ b/src/core/hle/service/vi/system_display_service.h@@ -1,9 +1,11 @@-// SPDX-FileCopyrightText: Copyright 2025 Eden Emulator Project+// SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project// SPDX-License-Identifier: GPL-3.0-or-later// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project// SPDX-License-Identifier: GPL-2.0-or-later+#pragma once+#include "common/math_util.h"#include "core/hle/service/cmif_types.h"#include "core/hle/service/nvnflinger/ui/fence.h"diff --git a/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.h b/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.hindex 25608dbfe3..3084f3df4d 100644--- a/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.h+++ b/src/dynarmic/src/dynarmic/backend/arm64/emit_arm64_memory.h@@ -6,6 +6,7 @@* SPDX-License-Identifier: 0BSD*/+#pragma once#include <cstddef>namespace oaknut {