mirror of
https://github.com/itsPLK/ps5-payload-manager.git
synced 2026-10-22 03:42:51 -05:00
- Implement automatic termination of the 'Disc Player' app (BD-JB host) when the menu starts. - Add toggle in System Settings to enable/disable this feature. - Credits to BenNoxXD for the original termination logic: Source: https://github.com/BenNoxXD/PS5-BDJ-HEN-loader/blob/main/HENloader_C_part/src/kill_disc_player.c
26 lines
576 B
C
26 lines
576 B
C
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include <sys/types.h>
|
|
|
|
/**
|
|
* Launch an ELF payload from the filesystem.
|
|
* @param path Full path to the .elf or .bin file.
|
|
* @return 0 on success, -1 on failure.
|
|
*/
|
|
int ps5_launch_elf(const char* path);
|
|
|
|
/**
|
|
* Launch the PS5 web browser with a specific URL.
|
|
* @param uri The URL to open.
|
|
* @return 0 on success, -1 on failure.
|
|
*/
|
|
int ps5_launch_browser(const char* uri);
|
|
|
|
/**
|
|
* Kill the "Disc Player" app (NPXS40140) if it is running.
|
|
* @return 0 if not running or successfully killed, -1 on error.
|
|
*/
|
|
int ps5_kill_disc_player();
|
|
|