From 4274ec840e263fc35f985144fd6e96ff210c8b5d Mon Sep 17 00:00:00 2001 From: GrapheneCt Date: Tue, 7 Jul 2020 07:10:20 -0400 Subject: Add psp2/bgapputil.h From https://github.com/GrapheneCt/Vita-PoC/blob/master/bgapputil.h --- include/user/bgapputil.h | 26 ++++++++++++++++++++++++++ nids/360/SceBgAppUtil.yml | 8 ++++++++ 2 files changed, 34 insertions(+) create mode 100644 include/user/bgapputil.h create mode 100644 nids/360/SceBgAppUtil.yml diff --git a/include/user/bgapputil.h b/include/user/bgapputil.h new file mode 100644 index 0000000..f35e9ad --- /dev/null +++ b/include/user/bgapputil.h @@ -0,0 +1,26 @@ +#ifndef _DOLCESDK_PSP2_BGAPPUTIL_H_ +#define _DOLCESDK_PSP2_BGAPPUTIL_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +/** + * Errors + */ +#define SCE_BGAPPUTIL_ERROR_INVALID_ARG 0x80106501 + +/** + * Start BG application (eboot2.bin) + * + * @param[in] mode - must be 0 + * + * @return 0 on success, <0 otherwise. + */ +int sceBgAppUtilStartBgApp(int mode); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* _DOLCESDK_PSP2_BGAPPUTIL_H_ */ diff --git a/nids/360/SceBgAppUtil.yml b/nids/360/SceBgAppUtil.yml new file mode 100644 index 0000000..3547c65 --- /dev/null +++ b/nids/360/SceBgAppUtil.yml @@ -0,0 +1,8 @@ +modules: + SceBgAppUtil: + nid: 0x795E683F + libraries: + SceBgAppUtil: + nid: 0xF9516A07 + functions: + sceBgAppUtilStartBgApp: 0x7C3525B5 -- cgit v1.2.3