vitasdk
Documentation of the vitasdk
promoterutil.h
Go to the documentation of this file.
1
7
#ifndef _PSP2_PROMOTERUTIL_H_
8
#define _PSP2_PROMOTERUTIL_H_
9
10
#include <
vitasdk/build_utils.h
>
11
#include <
psp2/types.h
>
12
13
#ifdef __cplusplus
14
extern
"C"
{
15
#endif
16
18
typedef
enum
ScePromoterUtilityPackageType
{
19
SCE_PKG_TYPE_VITA
= 0x0001,
20
SCE_PKG_TYPE_PSP
= 0x0001,
21
SCE_PKG_TYPE_PSM
= 0x0003,
22
}
ScePromoterUtilityPackageType
;
23
25
typedef
struct
ScePromoterUtilityLAUpdate
{
26
char
titleid
[12];
27
char
path
[128];
28
}
ScePromoterUtilityLAUpdate
;
29
VITASDK_BUILD_ASSERT_EQ
(0x8C,
ScePromoterUtilityLAUpdate
);
30
32
typedef
struct
ScePromoterUtilityImportParams
{
33
char
path
[0x80];
34
char
titleid
[0xC];
35
ScePromoterUtilityPackageType
type
;
36
uint32_t
attribute
;
37
char
reserved
[0x1C];
38
}
ScePromoterUtilityImportParams
;
39
VITASDK_BUILD_ASSERT_EQ
(0xB0,
ScePromoterUtilityImportParams
);
40
47
int
scePromoterUtilityInit
(
void
);
48
54
int
scePromoterUtilityExit
(
void
);
55
63
int
scePromoterUtilityDeletePkg
(
const
char
*
titleid
);
64
72
int
scePromoterUtilityUpdateLiveArea
(
ScePromoterUtilityLAUpdate
*args);
73
81
int
scePromoterUtilityPromoteImport
(
ScePromoterUtilityImportParams
*params);
82
91
int
scePromoterUtilityPromotePkg
(
const
char
*path,
int
sync);
92
101
int
scePromoterUtilityPromotePkgWithRif
(
const
char
*path,
int
sync);
102
110
int
scePromoterUtilityGetState
(
int
*state);
111
119
int
scePromoterUtilityGetResult
(
int
*res);
120
128
int
scePromoterUtilityCheckExist
(
const
char
*
titleid
,
int
*res);
129
130
#ifdef __cplusplus
131
}
132
#endif
133
134
#endif
/* _PSP2_PROMOTERUTIL_H_ */
build_utils.h
titleid
char titleid[0xC]
Title id of the process where the event occurred.
Definition:
debug.h:4
scePromoterUtilityGetState
int scePromoterUtilityGetState(int *state)
Returns the state of an operation.
scePromoterUtilityUpdateLiveArea
int scePromoterUtilityUpdateLiveArea(ScePromoterUtilityLAUpdate *args)
Update the LiveArea resources of an app.
ScePromoterUtilityImportParams::titleid
char titleid[0xC]
Game titleid.
Definition:
promoterutil.h:34
ScePromoterUtilityImportParams::type
ScePromoterUtilityPackageType type
Package type.
Definition:
promoterutil.h:35
scePromoterUtilityGetResult
int scePromoterUtilityGetResult(int *res)
Returns the result of a finished operation.
scePromoterUtilityPromotePkgWithRif
int scePromoterUtilityPromotePkgWithRif(const char *path, int sync)
Install a package from a directory and generate a rif.
scePromoterUtilityPromoteImport
int scePromoterUtilityPromoteImport(ScePromoterUtilityImportParams *params)
Install Content Manager import contents and create bubbles without checking license files.
scePromoterUtilityCheckExist
int scePromoterUtilityCheckExist(const char *titleid, int *res)
Check if titleid exists.
VITASDK_BUILD_ASSERT_EQ
VITASDK_BUILD_ASSERT_EQ(0x8C, ScePromoterUtilityLAUpdate)
scePromoterUtilityInit
int scePromoterUtilityInit(void)
Init the promoter utility.
scePromoterUtilityPromotePkg
int scePromoterUtilityPromotePkg(const char *path, int sync)
Install a package from a directory, and add an icon on the LiveArea.
ScePromoterUtilityLAUpdate::titleid
char titleid[12]
Target app.
Definition:
promoterutil.h:26
ScePromoterUtilityLAUpdate::path
char path[128]
Directory of extracted LA update data.
Definition:
promoterutil.h:27
ScePromoterUtilityPackageType
ScePromoterUtilityPackageType
Avalible types for ScePromoterUtilityImportParams.
Definition:
promoterutil.h:18
ScePromoterUtilityImportParams::reserved
char reserved[0x1C]
Definition:
promoterutil.h:37
scePromoterUtilityDeletePkg
int scePromoterUtilityDeletePkg(const char *titleid)
Delete a package from the LiveArea.
scePromoterUtilityExit
int scePromoterUtilityExit(void)
Deinit the promoter utility.
ScePromoterUtilityImportParams::path
char path[0x80]
Install path (ux0:/temp/game on PSM/PSV, ux0:/pspemu/temp/game on PSP)
Definition:
promoterutil.h:33
ScePromoterUtilityImportParams::attribute
uint32_t attribute
Additional Attributes (Appears to be 0x1 on PSM content but 0x00 on Vita contents)
Definition:
promoterutil.h:36
SCE_PKG_TYPE_PSP
@ SCE_PKG_TYPE_PSP
PSP Games.
Definition:
promoterutil.h:20
SCE_PKG_TYPE_PSM
@ SCE_PKG_TYPE_PSM
PlayStation Mobile.
Definition:
promoterutil.h:21
SCE_PKG_TYPE_VITA
@ SCE_PKG_TYPE_VITA
PSVita Apps.
Definition:
promoterutil.h:19
ScePromoterUtilityImportParams
Parameters for scePromoterUtilityPromoteImport()
Definition:
promoterutil.h:32
ScePromoterUtilityLAUpdate
Parameters for scePromoterUtilityUpdateLiveArea()
Definition:
promoterutil.h:25
types.h
include
psp2
promoterutil.h
Vita SDK