summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheOfficialFloW2017-02-26 19:49:43 +0100
committerdevnoname1202017-02-26 19:49:43 +0100
commiteaf1efabfd74915688a1d2da074b6dd5218ebcd5 (patch)
treef5dd33d6859517a098f8b09f5f1a4a52bf92bc9b
parentMerge pull request #146 from TheOfficialFloW/master (diff)
downloadvds-libraries-eaf1efabfd74915688a1d2da074b6dd5218ebcd5.tar.gz
Added two ScePromoterUtil functions (#147)
Added two ScePromoterUtil functions
Diffstat (limited to '')
-rw-r--r--include/user/promoterutil.h32
-rw-r--r--nids/360/ScePromoterUtil.yml2
2 files changed, 26 insertions, 8 deletions
diff --git a/include/user/promoterutil.h b/include/user/promoterutil.h
index 117b4c3..5c83ebc 100644
--- a/include/user/promoterutil.h
+++ b/include/user/promoterutil.h
@@ -47,33 +47,40 @@ int scePromoterUtilityDeletePkg(const char *titleid);
int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args);
/**
+ * Install a backup from a directory, and add an icon on the LiveArea.
+ *
+ * @param[in] *path - the path of the directory where the extracted content of the backup is
+ *
+ * @return 0 on success.
+ */
+int scePromoterUtilityPromoteBackup(const char *path);
+
+/**
* Install a package from a directory, and add an icon on the LiveArea.
- * \note It is an asynchronous function.
*
* @param[in] *path - the path of the directory where the extracted content of the package is
- * @param unk - unknown, pass 0
+ * @param sync - pass 0 for asynchronous, 1 for synchronous
*
* @return 0 on success.
*/
-int scePromoterUtilityPromotePkg(const char *path, int unk);
+int scePromoterUtilityPromotePkg(const char *path, int sync);
/**
* Install a package from a directory and generate a rif.
- * \note It is an asynchronous function.
*
* @param[in] *path - the path of the directory where the extracted content of the package is
- * @param unk - unknown, pass 0
+ * @param sync - pass 0 for asynchronous, 1 for synchronous
*
* @return 0 on success.
*/
-int scePromoterUtilityPromotePkgWithRif(const char *path, int unk);
+int scePromoterUtilityPromotePkgWithRif(const char *path, int sync);
/**
* Returns the state of an operation.
*
* @param[out] *state - the current status, 0 when finished
*
- * @return <0 if failed.
+ * @return < 0 if failed.
*/
int scePromoterUtilityGetState(int *state);
@@ -82,10 +89,19 @@ int scePromoterUtilityGetState(int *state);
*
* @param[out] *res - the result, 0 on success
*
- * @return <0 if failed.
+ * @return < 0 if failed.
*/
int scePromoterUtilityGetResult(int *res);
+/**
+ * Check if titleid exists
+ *
+ * @param[out] *res - the result, unknown meaning
+ *
+ * @return 0 if exists, < 0 otherwise.
+ */
+int scePromoterUtilityCheckExist(const char *titleid, int *res);
+
#ifdef __cplusplus
}
#endif
diff --git a/nids/360/ScePromoterUtil.yml b/nids/360/ScePromoterUtil.yml
index 1288b10..cf6eda3 100644
--- a/nids/360/ScePromoterUtil.yml
+++ b/nids/360/ScePromoterUtil.yml
@@ -5,11 +5,13 @@ modules:
ScePromoterUtil:
nid: 0x31F237B6
functions:
+ scePromoterUtilityCheckExist: 0xBA9871E5
scePromoterUtilityDeletePkg: 0x7D46752F
scePromoterUtilityExit: 0xC95D24A6
scePromoterUtilityGetResult: 0x49B473F0
scePromoterUtilityGetState: 0xABEC74D2
scePromoterUtilityInit: 0x93451536
+ scePromoterUtilityPromoteBackup: 0x4B37808F
scePromoterUtilityPromotePkg: 0x716C81F4
scePromoterUtilityPromotePkgWithRif: 0x86641BC6
scePromoterUtilityUpdateLiveArea: 0x17D73ECA