summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheOfficialFloW2017-06-25 16:54:28 +0200
committerSunguk Lee2017-06-25 23:54:28 +0900
commit452c2ab79926570991fac2934e954ae2101242b0 (patch)
treef4097d6f896bff1a3072961298087fa1e990c23c
parentadd sceKernel(Start|Stop)Module / ksceKernelGetMemBlockBase definitions (#202) (diff)
downloadvds-libraries-452c2ab79926570991fac2934e954ae2101242b0.tar.gz
Added new NIDs and new headers (#196)
* Added sceIoPread/sceIoPwrite header * Added more paf nids and paf header * Added sceCompat NIDs * Added SceNpDrm header * Sorted SceCompat * Removed duplicated NIDs * Fixed scePaf nid * Fixed SceNpDrm name in header and added SceVideoExport * Fixed brief description * Added sceIoChstatByFd header * Added SceVideoExport definition
-rw-r--r--include/user/npdrm.h55
-rw-r--r--include/user/paf.h30
-rw-r--r--include/user/sysmodule.h1
-rw-r--r--include/user/videoexport.h41
-rw-r--r--nids/360/SceCompat.yml41
-rw-r--r--nids/360/ScePaf.yml4
-rw-r--r--nids/360/SceSyscon.yml4
-rw-r--r--nids/360/SceVideoExport.yml8
8 files changed, 180 insertions, 4 deletions
diff --git a/include/user/npdrm.h b/include/user/npdrm.h
new file mode 100644
index 0000000..83a0c03
--- /dev/null
+++ b/include/user/npdrm.h
@@ -0,0 +1,55 @@
+#ifndef _PSP2_NPDRM_H_
+#define _PSP2_NPDRM_H_
+
+#include <psp2/types.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+/**
+ * Get rif name
+ *
+ * @param[out] rif_name - RIF name buffer (48 bytes)
+ *
+ * @param[in] unk - Unknown, use 0
+ *
+ * @param[in] aid - Account ID
+ *
+ * @return 0 on success, < 0 on error.
+*/
+int _sceNpDrmGetRifName(char *rif_name, int unk, uint64_t aid);
+
+/**
+ * Get fixed rif name
+ *
+ * @param[out] rif_name - RIF name buffer (48 bytes)
+ *
+ * @param[in] unk - Unknown, use 0
+ *
+ * @param[in] aid - Account ID
+ *
+ * @return 0 on success, < 0 on error.
+*/
+int _sceNpDrmGetFixedRifName(char *rif_name, int unk, uint64_t aid);
+
+/**
+ * Get rif name for install
+ *
+ * @param[out] rif_name - RIF name buffer (48 bytes)
+ *
+ * @param[in] rif_data - Data of RIF file (512 bytes)
+ *
+ * @param[in] unk - Unknown, use 0
+ *
+ * @return 0 on success, < 0 on error.
+*/
+int _sceNpDrmGetRifNameForInstall(char *rif_name, const void *rif_data, int unk);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_NPDRM_H_ */
+
diff --git a/include/user/paf.h b/include/user/paf.h
new file mode 100644
index 0000000..336d45d
--- /dev/null
+++ b/include/user/paf.h
@@ -0,0 +1,30 @@
+#ifndef _PSP2_PAF_H_
+#define _PSP2_PAF_H_
+
+#include <psp2/types.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+void sce_paf_private_free(void *ptr);
+void *sce_paf_private_malloc(size_t size);
+void *sce_paf_private_memcpy(void *destination, const void *source, size_t num);
+void *sce_paf_private_memset(void *ptr, int value, size_t num);
+int sce_paf_private_snprintf(char *s, size_t n, const char *format, ...);
+int sce_paf_private_strcasecmp(const char *str1, const char *str2);
+char *sce_paf_private_strchr(const char *str, int character);
+int sce_paf_private_strcmp(const char *str1, const char *str2);
+size_t sce_paf_private_strlen(const char *str);
+int sce_paf_private_strncasecmp(const char *str1, const char *str2, size_t num);
+int sce_paf_private_strncmp(const char *str1, const char *str2, size_t num);
+char *sce_paf_private_strncpy(char *destination, const char *source, size_t num);
+char *sce_paf_private_strrchr(const char *str, int character);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_PAF_H_ */
+
diff --git a/include/user/sysmodule.h b/include/user/sysmodule.h
index 23319cb..c8ad734 100644
--- a/include/user/sysmodule.h
+++ b/include/user/sysmodule.h
@@ -77,6 +77,7 @@ typedef enum SceSysmoduleModuleId {
/* internal module IDs */
typedef enum SceSysmoduleInternalModuleId {
SCE_SYSMODULE_PAF = 0x80000008,
+ SCE_SYSMODULE_VIDEO_EXPORT = 0x80000020,
SCE_SYSMODULE_PROMOTER_UTIL = 0x80000024
} SceSysmoduleInternalModuleId;
diff --git a/include/user/videoexport.h b/include/user/videoexport.h
new file mode 100644
index 0000000..a002dde
--- /dev/null
+++ b/include/user/videoexport.h
@@ -0,0 +1,41 @@
+#ifndef _PSP2_VIDEO_EXPORT_H_
+#define _PSP2_VIDEO_EXPORT_H_
+
+#include <psp2/types.h>
+#include <stdint.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+typedef struct VideoExportInputParam {
+ char path[1024]; //!< Path of file to be exported
+ char reserved[64]; //!< Reserved data
+} VideoExportInputParam;
+
+typedef struct VideoExportOutputParam {
+ char path[1024]; //!< Path of exported file
+ char reserved[8]; //!< Reserved data
+} VideoExportOutputParam;
+
+/**
+ * Export video file
+ *
+ * @param[in] in_param - Input param
+ * @param[in] unk - Unknown, pass 1
+ * @param[in] workingMemory - Working memory
+ * @param[in] cancelCb - Cancel callback
+ * @param[in] progress - Progress callback
+ * @param[in] user - User data passed to the callbacks
+ * @param[in] unk2 - Unknown, pass 0
+ * @param[out] out_param - Output param
+ *
+ * @return 0 on success, < 0 on error.
+*/
+int sceVideoExportFromFile(const VideoExportInputParam* in_param, int unk, void* workingMemory, void* cancelCb, void (*progress)(void*, int), void* user, int unk2, VideoExportOutputParam* out_param);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _PSP2_VIDEO_EXPORT_H_ */
diff --git a/nids/360/SceCompat.yml b/nids/360/SceCompat.yml
new file mode 100644
index 0000000..c3063f1
--- /dev/null
+++ b/nids/360/SceCompat.yml
@@ -0,0 +1,41 @@
+modules:
+ SceCompat:
+ nid: 0x8F2D0378
+ libraries:
+ SceCompat:
+ nid: 0x0F35909D
+ functions:
+ sceCompatAllocCdramWithHole: 0xA5039FFA
+ sceCompatAvailableColorSpaceSetting: 0x456226DD
+ sceCompatCache: 0x6777390E
+ sceCompatCheckPocketStation: 0x96FC2A87
+ sceCompatDatRead: 0xCBE73EBE
+ sceCompatFrameBufferInit: 0xBC0E2B4C
+ sceCompatGetCurrentSecureTick: 0xA073EBEE
+ sceCompatGetDevInf: 0x138006A8
+ sceCompatGetPeripheralState: 0x176B2906
+ sceCompatGetPrimaryHead: 0xDC9EE33A
+ sceCompatGetPspSystemSoftwareVersion: 0xB113DCC0
+ sceCompatGetStatus: 0xD2E3370E
+ sceCompatGetTitleList: 0x99F13E04
+ sceCompatGetUpdateState: 0x0CDE9EC5
+ sceCompatIdStorageLookup: 0x94AAA245
+ sceCompatInitEx: 0xE97C1B5F
+ sceCompatInterrupt: 0xD6AA36DD
+ sceCompatIsPocketStationTitle: 0x7DCFBCCE
+ sceCompatLCDCSync: 0xBD177787
+ sceCompatReadShared32: 0x73AA4871
+ sceCompatReturnValueEx: 0xCC02A9FF
+ sceCompatSetDisplayConfig: 0x32BA3DCF
+ sceCompatSetRif: 0xD8B69F23
+ sceCompatSetSuspendSema: 0xDD30239E
+ sceCompatSetUpdateState: 0x8A44206F
+ sceCompatStart: 0x8CA1632D
+ sceCompatStop: 0xFCE2422F
+ sceCompatSuspendResume: 0x324112CA
+ sceCompatUninit: 0xEF929397
+ sceCompatWaitAndGetRequest: 0x8176C238
+ sceCompatWaitIntr: 0xC1E14CF5
+ sceCompatWaitSpecialRequest: 0x714F7ED6
+ sceCompatWriteShared32: 0x1CD51530
+ sceCompatWriteSharedCtrl: 0x2306FFED
diff --git a/nids/360/ScePaf.yml b/nids/360/ScePaf.yml
index 477fb04..417ed40 100644
--- a/nids/360/ScePaf.yml
+++ b/nids/360/ScePaf.yml
@@ -10,7 +10,11 @@ modules:
sce_paf_private_memcpy: 0x2C5B6F9C
sce_paf_private_memset: 0xE148AF94
sce_paf_private_snprintf: 0x4E0D907E
+ sce_paf_private_strcasecmp: 0x70A459B2
sce_paf_private_strchr: 0x1A22784C
sce_paf_private_strcmp: 0x5CD08A47
sce_paf_private_strlen: 0xF5A2AA0C
+ sce_paf_private_strncasecmp: 0xA6014289
sce_paf_private_strncmp: 0x1E1EA818
+ sce_paf_private_strncpy: 0x5883A6E3
+ sce_paf_private_strrchr: 0xFA2C892F
diff --git a/nids/360/SceSyscon.yml b/nids/360/SceSyscon.yml
index cd8e991..5ee7f74 100644
--- a/nids/360/SceSyscon.yml
+++ b/nids/360/SceSyscon.yml
@@ -23,13 +23,9 @@ modules:
sceSysconGetTemperatureLog: 0x3B354824
sceSysconGetTimeStamp: 0x4D588A0A
sceSysconGetUsbDetStatus: 0xEF810687
- sceSysconHasWWAN: 0xCBD6D8BC
sceSysconIduModeClear: 0x34574496
sceSysconIduModeSet: 0x956D07CB
sceSysconIsDownLoaderMode: 0x9ADD60D2
- sceSysconIsIduMode: 0xCBD6D8BC
- sceSysconIsMCEmuCapable: 0xCBD6D8BC
- sceSysconIsShowMode: 0xCBD6D8BC
sceSysconLoadConfigstorageScript: 0x89C5CFD6
sceSysconLogReadData: 0x487D97F3
sceSysconLogStart: 0x4E55CF5E
diff --git a/nids/360/SceVideoExport.yml b/nids/360/SceVideoExport.yml
new file mode 100644
index 0000000..96ef684
--- /dev/null
+++ b/nids/360/SceVideoExport.yml
@@ -0,0 +1,8 @@
+modules:
+ SceVideoExport:
+ nid: 0x86B46C2D
+ libraries:
+ SceVideoExport:
+ nid: 0xF0812A7C
+ functions:
+ sceVideoExportFromFile: 0x4F60A3C8