summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBluzume2020-01-10 08:03:43 +1300
committerSunguk Lee2020-01-10 04:03:43 +0900
commit3b0f78a7167d1a7f188d6e30bc2db088f6adc8ea (patch)
treeaeafa237b01e698a6ee5dda186a58b9ae023f8f7
parentMerge pull request #438 from VelocityRa/master (diff)
downloadvds-libraries-3b0f78a7167d1a7f188d6e30bc2db088f6adc8ea.tar.gz
Fix arguments for scePromoterUtilityPromoteImport (#437)
* Update promoterutil.h * Update promoterutil.h * Update promoterutil.h * Update promoterutil.h * add ScePromoterUtilityPackageType Enum * Add comment back- fix braces etc * Update promoterutil.h
-rw-r--r--include/user/promoterutil.h23
1 files changed, 19 insertions, 4 deletions
diff --git a/include/user/promoterutil.h b/include/user/promoterutil.h
index e39d326..62de9cd 100644
--- a/include/user/promoterutil.h
+++ b/include/user/promoterutil.h
@@ -7,12 +7,27 @@
extern "C" {
#endif
+/** Avalible types for ::ScePromoterUtilityImportParams **/
+typedef enum ScePromoterUtilityPackageType {
+ SCE_PKG_TYPE_VITA = 0x0001, //!< PSVita Apps
+ SCE_PKG_TYPE_PSM = 0x0003, //!< PlayStation Mobile
+} ScePromoterUtilityPackageType;
+
/** Parameters for scePromoterUtilityUpdateLiveArea() */
typedef struct ScePromoterUtilityLAUpdate {
char titleid[12]; //!< Target app.
char path[128]; //!< Directory of extracted LA update data.
} ScePromoterUtilityLAUpdate;
-
+
+/** Parameters for scePromoterUtilityPromoteImport() */
+typedef struct ScePromoterUtilityImportParams {
+ char path[0x80]; //!< Install path usually (ux0:/temp/game)
+ char titleid[0xC]; //!< Game titleid
+ ScePromoterUtilityPackageType type; //!< Package type
+ uint32_t attribute; //!< Additional Attributes (Appears to be 0x1 on PSM content but 0x00 on Vita contents)
+ char reserved[0x1C];
+} ScePromoterUtilityImportParams;
+
/**
* Init the promoter utility.
* \note Needs to be called before using the other functions.
@@ -47,13 +62,13 @@ int scePromoterUtilityDeletePkg(const char *titleid);
int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args);
/**
- * Install a import from a directory, and add an icon on the LiveArea.
+ * Install Content Manager import contents and create bubbles without checking license files.
*
- * @param[in] *path - the path of the directory where the extracted content of the import is
+ * @param[in] *params - see ::ScePromoterUtilImportParams
*
* @return 0 on success.
*/
-int scePromoterUtilityPromoteImport(const char *path);
+int scePromoterUtilityPromoteImport(ScePromoterUtilityImportParams *params);
/**
* Install a package from a directory, and add an icon on the LiveArea.