1 #ifndef __LV2_SYSUTIL_GAME_H__ 2 #define __LV2_SYSUTIL_GAME_H__ 13 #define SYS_GAME_ATTRIBUTE_PATCH (1 <<0) 14 #define SYS_GAME_ATTRIBUTE_APP_HOME (1 <<1) 15 #define SYS_GAME_ATTRIBUTE_DEBUG (1 <<2) 16 #define SYS_GAME_ATTRIBUTE_XMBBUY (1 <<3) 17 #define SYS_GAME_ATTRIBUTE_COMMERCE2_BROWSER (1 <<4) 18 #define SYS_GAME_ATTRIBUTE_INVITE_MESSAGE (1 <<5) 19 #define SYS_GAME_ATTRIBUTE_CUSTOM_DATA_MESSAGE (1 <<6) 20 #define SYS_GAME_ATTRIBUTE_WEB_BROWSER (1 <<8) 23 #define SYS_GAME_THEME_OPTION_NONE (0) 24 #define SYS_GAME_THEME_OPTION_APPLY (1 <<0) 27 #define SYS_GAME_CBRESULT_OK (0) 28 #define SYS_GAME_CBRESULT_OK_CANCEL (1) 30 #define SYS_GAME_SIZEKB_NOTCALC (-1) 31 #define SYS_GAME_THEMEINSTALL_BUFSIZE_MIN (4096) 43 typedef enum sys_game_system_param_size
45 SYS_GAME_SYSP_LANGUAGE_NUM = 20,
46 SYS_GAME_SYSP_TITLE_SIZE = 128,
47 SYS_GAME_SYSP_TITLEID_SIZE = 10,
48 SYS_GAME_SYSP_VERSION_SIZE = 6,
49 SYS_GAME_SYSP_PS3_SYSTEM_VER_SIZE = 8,
50 SYS_GAME_SYSP_APP_VER_SIZE = 6
51 } sysGameSystemParamSize;
54 typedef enum sys_game_params
56 SYS_GAME_PARAMID_TITLE = 0,
57 SYS_GAME_PARAMID_TITLE_DEFAULT,
58 SYS_GAME_PARAMID_TITLE_JAPANESE,
59 SYS_GAME_PARAMID_TITLE_ENGLISH,
60 SYS_GAME_PARAMID_TITLE_FRENCH,
61 SYS_GAME_PARAMID_TITLE_SPANISH,
62 SYS_GAME_PARAMID_TITLE_GERMAN,
63 SYS_GAME_PARAMID_TITLE_ITALIAN,
64 SYS_GAME_PARAMID_TITLE_DUTCH,
65 SYS_GAME_PARAMID_TITLE_PORTUGUESE,
66 SYS_GAME_PARAMID_TITLE_RUSSIAN,
67 SYS_GAME_PARAMID_TITLE_KOREAN,
68 SYS_GAME_PARAMID_TITLE_CHINESE_T,
69 SYS_GAME_PARAMID_TITLE_CHINESE_S,
70 SYS_GAME_PARAMID_TITLE_FINNISH,
71 SYS_GAME_PARAMID_TITLE_SWEDISH,
72 SYS_GAME_PARAMID_TITLE_DANISH,
73 SYS_GAME_PARAMID_TITLE_NORWEGIAN,
74 SYS_GAME_PARAMID_TITLE_POLISH,
76 SYS_GAME_PARAMID_TITLE_ID = 100,
77 SYS_GAME_PARAMID_VERSION,
78 SYS_GAME_PARAMID_PARENTAL_LEVEL,
79 SYS_GAME_PARAMID_RESOLUTION,
80 SYS_GAME_PARAMID_SOUND_FORMAT,
81 SYS_GAME_PARAMID_PS3_SYSTEM_VER,
82 SYS_GAME_PARAMID_APP_VER
86 typedef enum sys_game_error
88 SYS_GAME_ERRDIALOG_BROKEN_GAMEDATA = 0,
89 SYS_GAME_ERRDIALOG_BROKEN_HDDGAME,
90 SYS_GAME_ERRDIALOG_NOSPACE,
92 SYS_GAME_ERRDIALOG_BROKEN_EXIT_GAMEDATA = 100,
93 SYS_GAME_ERRDIALOG_BROKEN_EXIT_HDDGAME,
94 SYS_GAME_ERRDIALOG_NOSPACE_EXIT
98 typedef enum sys_game_resolution
100 SYS_GAME_RESOLUTION_1080 = 0x08,
101 SYS_GAME_RESOLUTION_720 = 0x04,
102 SYS_GAME_RESOLUTION_576SQ = 0x20,
103 SYS_GAME_RESOLUTION_576 = 0x02,
104 SYS_GAME_RESOLUTION_480SQ = 0x10,
105 SYS_GAME_RESOLUTION_480 = 0x01
109 typedef enum sys_game_sound_format
111 SYS_GAME_SOUNDFORMAT_71LPCM = 0x10,
112 SYS_GAME_SOUNDFORMAT_51LPCM = 0x04,
113 SYS_GAME_SOUNDFORMAT_51DDENC = 0x102,
114 SYS_GAME_SOUNDFORMAT_51DTSENC = 0x202,
115 SYS_GAME_SOUNDFORMAT_2LPCM = 0x01,
116 } sysGameSoundFormat;
119 typedef enum sys_game_disc_type
121 SYS_GAME_DISCTYPE_OTHER = 0,
122 SYS_GAME_DISCTYPE_PS3,
123 SYS_GAME_DISCTYPE_PS2
141 char title [SYS_GAME_SYSP_TITLE_SIZE];
142 char titleId [SYS_GAME_SYSP_TITLEID_SIZE];
144 char version [SYS_GAME_SYSP_VERSION_SIZE];
153 typedef s32 (*sysGameThemeInstallCallback)(u32 fileOffset, u32 readSize,
void *buf);
154 typedef void (*sysGameDiscEjectCallback)(void);
155 typedef void (*sysGameDiscInsertCallback)(u32 discType,
char *titleId);
163 s32 sysGameBootCheck(u32 *type, u32 *attributes,
sysGameContentSize *size,
char *dirName);
165 s32 sysGameCreateGameData(
sysGameSetInitParams *init,
char *tmp_contentInfoPath,
char *tmp_usrdirPath);
166 s32 sysGameGetParamInt(s32
id, s32 *value);
167 s32 sysGameGetParamString(s32
id,
char *buf, u32 bufsize);
168 s32 sysGameGetSizeKB(s32 *sizeKB);
169 s32 sysGameSetParamString(s32
id,
const char *buf);
170 s32 sysGameGetDiscContentInfoUpdatePath(
char *updatePath);
171 s32 sysGameContentPermit(
char *contentInfoPath,
char *usrdirPath);
172 s32 sysGameContentErrorDialog(s32 type, s32 errNeedSizeKB,
const char *dirName);
173 s32 sysGameThemeInstall(
const char *usrdirPath,
const char *fileName, u32 option);
174 s32 sysGameThemeInstallFromBuffer(u32 fileSize, u32 bufSize,
void *buf, sysGameThemeInstallCallback cb, u32 option);
175 s32 sysGameGetLocalWebContentPath(
char *contentPath);
176 s32 sysGameDeleteGameData(
const char *dirName);
177 s32 sysGameRegisterDiscChangeCallback(sysGameDiscEjectCallback cbEject, sysGameDiscInsertCallback cbInsert);
178 s32 sysGameUnregisterDiscChangeCallback(
void);