Files
eden/src/core/hle/kernel
xbzk 78a1cd0533 [hle] support passing arguments to homebrew applications (#4013)
Homebrew (.NRO) program args support

Adds a 'program_args' setting and delivers it to NRO homebrews via libnx's homebrew ABI. NROs previously had no way to receive CLI flags (e.g. NZ:P's -noglsl).

Setting: program_args, Category::System, startup-only.
Surfaced in Qt + Android Debug sections.

NRO loader: builds a 4-entry 'ConfigEntry' table + argv at the data segment tail; prepends 'homebrew ' so user args land at argv[1]; scans for 'svc #7' to use as LR. Drops the stale NSO-style argdata append.

KProcess: stores loader-provided guest addresses; 'Run' switches to the homebrew entry (x0=config_ptr, x1=-1, lr=svc7) and patches the real MainThreadHandle into the ConfigEntry slot. Legacy NSO path unchanged.

Tested on NZP — args reach 'argv' correctly.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4013
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2026-06-15 03:02:33 +02:00
..
2023-11-10 12:01:35 -05:00
2023-12-07 09:13:43 -05:00
2023-10-21 20:03:41 -04:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00
2023-12-07 09:13:43 -05:00
2023-02-17 09:16:05 -05:00
2023-10-20 02:34:15 -04:00
2023-11-10 12:01:35 -05:00
2023-12-07 09:13:43 -05:00
2023-12-07 09:13:43 -05:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00
2023-12-07 09:13:43 -05:00
2023-12-07 09:13:43 -05:00
2023-03-12 22:09:09 -04:00
2022-12-18 16:37:19 -05:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00
2023-03-12 22:09:09 -04:00