aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_capabilities.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-05-19 23:35:53 +0200
committercrueter <crueter@eden-emu.dev>2026-05-19 23:35:53 +0200
commit300a646a34b6729879e3fb71d53e625a09683bb2 (patch)
tree12bc42fb5729059340b598e0999a9e282c6f8adc /src/core/hle/kernel/k_capabilities.cpp
parente875a3196b5fc525f357b387d3cb2f283b11b8a0 (diff)
[hle] make HBLoader work, add -hlaunch option (#3981)
hbloader is required to launch a bunch of shit (particularly hbmenu) however due to some restrictive metadata validation, it doesn't get recognized as an NSP file programs like hbmenu require hbloader (since it feeds them data like ConfigEntries and whatnot), launching hbmenu as-is standalone will result in a launchInit() error adds an option to launch hbmenu via command line Signed-off-by: lizzie <lizzie@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3981 Reviewed-by: Maufeat <sahyno1996@gmail.com> Reviewed-by: crueter <crueter@eden-emu.dev>
Diffstat (limited to 'src/core/hle/kernel/k_capabilities.cpp')
-rw-r--r--src/core/hle/kernel/k_capabilities.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/kernel/k_capabilities.cpp b/src/core/hle/kernel/k_capabilities.cpp
index d2288c30d1..90f41dd1fc 100644
--- a/src/core/hle/kernel/k_capabilities.cpp
+++ b/src/core/hle/kernel/k_capabilities.cpp
@@ -1,3 +1,6 @@
+// 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
@@ -268,7 +271,8 @@ Result KCapabilities::SetHandleTableCapability(const u32 cap) {
Result KCapabilities::SetDebugFlagsCapability(const u32 cap) {
// Validate.
const DebugFlags pack{cap};
- R_UNLESS(pack.reserved == 0, ResultReservedUsed);
+ // TODO: Enabling this breaks compatibility with HBloader and such
+ //R_UNLESS(pack.reserved == 0, ResultReservedUsed);
DebugFlags debug_capabilities{m_debug_capabilities};
debug_capabilities.allow_debug.Assign(pack.allow_debug);