summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/user/promoterutil.h28
-rw-r--r--nids/360/ScePromoterUtil.yml15
2 files changed, 43 insertions, 0 deletions
diff --git a/include/user/promoterutil.h b/include/user/promoterutil.h
new file mode 100644
index 0000000..374141f
--- /dev/null
+++ b/include/user/promoterutil.h
@@ -0,0 +1,28 @@
+#ifndef _PSP2_PROMOTERUTIL_H_
+#define _PSP2_PROMOTERUTIL_H_
+
+#include <psp2/types.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct ScePromoterUtilityLAUpdate {
+ char titleid[12]; // target app
+ char path[128]; // directory of extracted LA update data
+} ScePromoterUtilityLAUpdate;
+
+int scePromoterUtilityInit(void);
+int scePromoterUtilityExit(void);
+int scePromoterUtilityDeletePkg(void *unk);
+int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args);
+int scePromoterUtilityPromotePkg(char *path, int unk);
+int scePromoterUtilityPromotePkgWithRif(const char *path, int unk);
+int scePromoterUtilityGetState(int *state);
+int scePromoterUtilityGetResult(int *res);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_PROMOTERUTIL_H_ */
diff --git a/nids/360/ScePromoterUtil.yml b/nids/360/ScePromoterUtil.yml
new file mode 100644
index 0000000..1288b10
--- /dev/null
+++ b/nids/360/ScePromoterUtil.yml
@@ -0,0 +1,15 @@
+modules:
+ ScePromoterUtil:
+ nid: 0xB31C2D5C
+ libraries:
+ ScePromoterUtil:
+ nid: 0x31F237B6
+ functions:
+ scePromoterUtilityDeletePkg: 0x7D46752F
+ scePromoterUtilityExit: 0xC95D24A6
+ scePromoterUtilityGetResult: 0x49B473F0
+ scePromoterUtilityGetState: 0xABEC74D2
+ scePromoterUtilityInit: 0x93451536
+ scePromoterUtilityPromotePkg: 0x716C81F4
+ scePromoterUtilityPromotePkgWithRif: 0x86641BC6
+ scePromoterUtilityUpdateLiveArea: 0x17D73ECA