summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to '')
-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.