summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrapheneCt2020-07-07 07:10:20 -0400
committerReiko Asakura2020-07-07 07:12:15 -0400
commit4274ec840e263fc35f985144fd6e96ff210c8b5d (patch)
treeecc0fcfc2de42c82c533ca20c519de6d6df15f34
parentAdd psp2/trigger_util.h (diff)
downloadvds-libraries-4274ec840e263fc35f985144fd6e96ff210c8b5d.tar.gz
Add psp2/bgapputil.h
From https://github.com/GrapheneCt/Vita-PoC/blob/master/bgapputil.h
-rw-r--r--include/user/bgapputil.h26
-rw-r--r--nids/360/SceBgAppUtil.yml8
2 files changed, 34 insertions, 0 deletions
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