diff --git a/rpcs3/Emu/ARMv7/Modules/sceAppMgr.cpp b/rpcs3/Emu/ARMv7/Modules/sceAppMgr.cpp index 0d9aa8a072..5b39017a62 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAppMgr.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAppMgr.cpp @@ -4,6 +4,34 @@ extern psv_log_base sceAppMgr; +struct SceAppMgrEvent +{ + s32 event; + s32 appId; + char param[56]; +}; + +s32 sceAppMgrReceiveEventNum(vm::psv::ptr eventNum) +{ + throw __FUNCTION__; +} + +s32 sceAppMgrReceiveEvent(vm::psv::ptr appEvent) +{ + throw __FUNCTION__; +} + +s32 sceAppMgrAcquireBgmPort() +{ + throw __FUNCTION__; +} + +s32 sceAppMgrReleaseBgmPort() +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAppMgr, #name, name) psv_log_base sceAppMgr("SceAppMgr", []() @@ -12,9 +40,9 @@ psv_log_base sceAppMgr("SceAppMgr", []() sceAppMgr.on_unload = nullptr; sceAppMgr.on_stop = nullptr; - //REG_FUNC(0x47E5DD7D, sceAppMgrReceiveEventNum); - //REG_FUNC(0xCFAD5A3A, sceAppMgrReceiveEvent); - //REG_FUNC(0xF3D65520, sceAppMgrAcquireBgmPort); - //REG_FUNC(0x96CBE713, sceAppMgrReleaseBgmPort); + REG_FUNC(0x47E5DD7D, sceAppMgrReceiveEventNum); + REG_FUNC(0xCFAD5A3A, sceAppMgrReceiveEvent); + REG_FUNC(0xF3D65520, sceAppMgrAcquireBgmPort); + REG_FUNC(0x96CBE713, sceAppMgrReleaseBgmPort); //REG_FUNC(0x49255C91, sceAppMgrGetRunStatus); }); diff --git a/rpcs3/Emu/ARMv7/Modules/sceAppUtil.cpp b/rpcs3/Emu/ARMv7/Modules/sceAppUtil.cpp index 567f6c4f3e..6d1739d789 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAppUtil.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAppUtil.cpp @@ -4,6 +4,138 @@ extern psv_log_base sceAppUtil; +struct SceAppUtilInitParam +{ + u32 workBufSize; + char reserved[60]; +}; + +struct SceAppUtilBootParam +{ + u32 attr; + u32 appVersion; + char reserved[32]; +}; + +struct SceAppUtilSaveDataMountPoint +{ + char data[16]; +}; + +struct SceAppUtilSaveDataSlotParam +{ + u32 status; + char title[64]; + char subTitle[128]; + char detail[512]; + char iconPath[64]; + s32 userParam; + u32 sizeKB; + SceDateTime modifiedTime; + char reserved[48]; +}; + +struct SceAppUtilSaveDataSlotEmptyParam +{ + vm::psv::ptr title; + vm::psv::ptr iconPath; + vm::psv::ptr iconBuf; + u32 iconBufSize; + char reserved[32]; +}; + +struct SceAppUtilSaveDataSlot +{ + u32 id; + u32 status; + s32 userParam; + vm::psv::ptr emptyParam; +}; + +struct SceAppUtilSaveDataFile +{ + vm::psv::ptr filePath; + vm::psv::ptr buf; + u32 bufSize; + s64 offset; + u32 mode; + u32 progDelta; + char reserved[32]; +}; + +struct SceAppUtilSaveDataFileSlot +{ + u32 id; + vm::psv::ptr slotParam; + char reserved[32]; +}; + +s32 sceAppUtilInit(vm::psv::ptr initParam, vm::psv::ptr bootParam) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilShutdown() +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveDataSlotCreate(u32 slotId, vm::psv::ptr param, vm::psv::ptr mountPoint) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveDataSlotDelete(u32 slotId, vm::psv::ptr mountPoint) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveDataSlotSetParam(u32 slotId, vm::psv::ptr param, vm::psv::ptr mountPoint) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveDataSlotGetParam(u32 slotId, vm::psv::ptr param, vm::psv::ptr mountPoint) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveDataFileSave(vm::psv::ptr slot, vm::psv::ptr files, u32 fileNum, vm::psv::ptr mountPoint, vm::psv::ptr requiredSizeKB) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilPhotoMount() +{ + throw __FUNCTION__; +} + +s32 sceAppUtilPhotoUmount() +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSystemParamGetInt(u32 paramId, vm::psv::ptr value) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSystemParamGetString(u32 paramId, vm::psv::ptr buf, u32 bufSize) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilSaveSafeMemory(vm::psv::ptr buf, u32 bufSize, s64 offset) +{ + throw __FUNCTION__; +} + +s32 sceAppUtilLoadSafeMemory(vm::psv::ptr buf, u32 bufSize, s64 offset) +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAppUtil, #name, name) psv_log_base sceAppUtil("SceAppUtil", []() @@ -12,17 +144,17 @@ psv_log_base sceAppUtil("SceAppUtil", []() sceAppUtil.on_unload = nullptr; sceAppUtil.on_stop = nullptr; - //REG_FUNC(0xDAFFE671, sceAppUtilInit); - //REG_FUNC(0xB220B00B, sceAppUtilShutdown); - //REG_FUNC(0x7E8FE96A, sceAppUtilSaveDataSlotCreate); - //REG_FUNC(0x266A7646, sceAppUtilSaveDataSlotDelete); - //REG_FUNC(0x98630136, sceAppUtilSaveDataSlotSetParam); - //REG_FUNC(0x93F0D89F, sceAppUtilSaveDataSlotGetParam); - //REG_FUNC(0x1E2A6158, sceAppUtilSaveDataFileSave); - //REG_FUNC(0xEE85804D, sceAppUtilPhotoMount); - //REG_FUNC(0x9651B941, sceAppUtilPhotoUmount); - //REG_FUNC(0x5DFB9CA0, sceAppUtilSystemParamGetInt); - //REG_FUNC(0x6E6AA267, sceAppUtilSystemParamGetString); - //REG_FUNC(0x9D8AC677, sceAppUtilSaveSafeMemory); - //REG_FUNC(0x3424D772, sceAppUtilLoadSafeMemory); + REG_FUNC(0xDAFFE671, sceAppUtilInit); + REG_FUNC(0xB220B00B, sceAppUtilShutdown); + REG_FUNC(0x7E8FE96A, sceAppUtilSaveDataSlotCreate); + REG_FUNC(0x266A7646, sceAppUtilSaveDataSlotDelete); + REG_FUNC(0x98630136, sceAppUtilSaveDataSlotSetParam); + REG_FUNC(0x93F0D89F, sceAppUtilSaveDataSlotGetParam); + REG_FUNC(0x1E2A6158, sceAppUtilSaveDataFileSave); + REG_FUNC(0xEE85804D, sceAppUtilPhotoMount); + REG_FUNC(0x9651B941, sceAppUtilPhotoUmount); + REG_FUNC(0x5DFB9CA0, sceAppUtilSystemParamGetInt); + REG_FUNC(0x6E6AA267, sceAppUtilSystemParamGetString); + REG_FUNC(0x9D8AC677, sceAppUtilSaveSafeMemory); + REG_FUNC(0x3424D772, sceAppUtilLoadSafeMemory); }); diff --git a/rpcs3/Emu/ARMv7/Modules/sceAudio.cpp b/rpcs3/Emu/ARMv7/Modules/sceAudio.cpp index 36920a8e59..ad0ab8d9af 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAudio.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAudio.cpp @@ -4,6 +4,47 @@ extern psv_log_base sceAudio; +s32 sceAudioOutOpenPort(s32 portType, s32 len, s32 freq, s32 param) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutReleasePort(s32 port) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutOutput(s32 port, vm::psv::ptr ptr) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutSetVolume(s32 port, s32 flag, vm::psv::ptr vol) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutSetConfig(s32 port, s32 len, s32 freq, s32 param) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutGetConfig(s32 port, s32 configType) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutGetRestSample(s32 port) +{ + throw __FUNCTION__; +} + +s32 sceAudioOutGetAdopt(s32 portType) +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudio, #name, name) psv_log_base sceAudio("SceAudio", []() @@ -12,13 +53,13 @@ psv_log_base sceAudio("SceAudio", []() sceAudio.on_unload = nullptr; sceAudio.on_stop = nullptr; - //REG_FUNC(0x5BC341E4, sceAudioOutOpenPort); - //REG_FUNC(0x69E2E6B5, sceAudioOutReleasePort); - //REG_FUNC(0x02DB3F5F, sceAudioOutOutput); - //REG_FUNC(0x64167F11, sceAudioOutSetVolume); - //REG_FUNC(0xB8BA0D07, sceAudioOutSetConfig); - //REG_FUNC(0x9C8EDAEA, sceAudioOutGetConfig); - //REG_FUNC(0x9A5370C4, sceAudioOutGetRestSample); - //REG_FUNC(0x12FB1767, sceAudioOutGetAdopt); + REG_FUNC(0x5BC341E4, sceAudioOutOpenPort); + REG_FUNC(0x69E2E6B5, sceAudioOutReleasePort); + REG_FUNC(0x02DB3F5F, sceAudioOutOutput); + REG_FUNC(0x64167F11, sceAudioOutSetVolume); + REG_FUNC(0xB8BA0D07, sceAudioOutSetConfig); + REG_FUNC(0x9C8EDAEA, sceAudioOutGetConfig); + REG_FUNC(0x9A5370C4, sceAudioOutGetRestSample); + REG_FUNC(0x12FB1767, sceAudioOutGetAdopt); //REG_FUNC(0xC6D8D775, sceAudioInRaw); }); diff --git a/rpcs3/Emu/ARMv7/Modules/sceAudioIn.cpp b/rpcs3/Emu/ARMv7/Modules/sceAudioIn.cpp index 0ae64a168d..29c7378b33 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAudioIn.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAudioIn.cpp @@ -4,6 +4,22 @@ extern psv_log_base sceAudioIn; +s32 sceAudioInOpenPort(s32 portType, s32 grain, s32 freq, s32 param) +{ + throw __FUNCTION__; +} + +s32 sceAudioInReleasePort(s32 port) +{ + throw __FUNCTION__; +} + +s32 sceAudioInInput(s32 port, vm::psv::ptr destPtr) +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudioIn, #name, name) psv_log_base sceAudioIn("SceAudioIn", []() @@ -12,8 +28,8 @@ psv_log_base sceAudioIn("SceAudioIn", []() sceAudioIn.on_unload = nullptr; sceAudioIn.on_stop = nullptr; - //REG_FUNC(0x638ADD2D, sceAudioInInput); - //REG_FUNC(0x39B50DC1, sceAudioInOpenPort); - //REG_FUNC(0x3A61B8C4, sceAudioInReleasePort); + REG_FUNC(0x638ADD2D, sceAudioInInput); + REG_FUNC(0x39B50DC1, sceAudioInOpenPort); + REG_FUNC(0x3A61B8C4, sceAudioInReleasePort); //REG_FUNC(0x566AC433, sceAudioInGetAdopt); }); diff --git a/rpcs3/Emu/ARMv7/Modules/sceAudiodec.cpp b/rpcs3/Emu/ARMv7/Modules/sceAudiodec.cpp index f8e3952dec..bf0d1a6bf9 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAudiodec.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAudiodec.cpp @@ -4,6 +4,122 @@ extern psv_log_base sceAudiodec; +struct SceAudiodecInitStreamParam +{ + u32 size; + u32 totalStreams; +}; + +struct SceAudiodecInitChParam +{ + u32 size; + u32 totalCh; +}; + +union SceAudiodecInitParam +{ + u32 size; + SceAudiodecInitChParam at9; + SceAudiodecInitStreamParam mp3; + SceAudiodecInitStreamParam aac; + SceAudiodecInitStreamParam celp; +}; + +struct SceAudiodecInfoAt9 +{ + u32 size; + u8 configData[4]; + u32 ch; + u32 bitRate; + u32 samplingRate; + u32 superFrameSize; + u32 framesInSuperFrame; +}; + +struct SceAudiodecInfoMp3 +{ + u32 size; + u32 ch; + u32 version; +}; + +struct SceAudiodecInfoAac +{ + u32 size; + u32 isAdts; + u32 ch; + u32 samplingRate; + u32 isSbr; +}; + +struct SceAudiodecInfoCelp +{ + u32 size; + u32 excitationMode; + u32 samplingRate; + u32 bitRate; + u32 lostCount; +}; + +union SceAudiodecInfo +{ + u32 size; + SceAudiodecInfoAt9 at9; + SceAudiodecInfoMp3 mp3; + SceAudiodecInfoAac aac; + SceAudiodecInfoCelp celp; +}; + +struct SceAudiodecCtrl +{ + u32 size; + s32 handle; + vm::psv::ptr pEs; + u32 inputEsSize; + u32 maxEsSize; + vm::psv::ptr pPcm; + u32 outputPcmSize; + u32 maxPcmSize; + u32 wordLength; + vm::psv::ptr pInfo; +}; + +s32 sceAudiodecInitLibrary(u32 codecType, vm::psv::ptr pInitParam) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecTermLibrary(u32 codecType) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecCreateDecoder(vm::psv::ptr pCtrl, u32 codecType) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecDeleteDecoder(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecDecode(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecClearContext(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudiodecGetInternalError(vm::psv::ptr pCtrl, vm::psv::ptr pInternalError) +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudiodec, #name, name) psv_log_base sceAudiodec("SceAudiodec", []() @@ -12,11 +128,11 @@ psv_log_base sceAudiodec("SceAudiodec", []() sceAudiodec.on_unload = nullptr; sceAudiodec.on_stop = nullptr; - //REG_FUNC(0x445C2CEF, sceAudiodecInitLibrary); - //REG_FUNC(0x45719B9D, sceAudiodecTermLibrary); - //REG_FUNC(0x4DFD3AAA, sceAudiodecCreateDecoder); - //REG_FUNC(0xE7A24E16, sceAudiodecDeleteDecoder); - //REG_FUNC(0xCCDABA04, sceAudiodecDecode); - //REG_FUNC(0xF72F9B64, sceAudiodecClearContext); - //REG_FUNC(0x883B0CF5, sceAudiodecGetInternalError); + REG_FUNC(0x445C2CEF, sceAudiodecInitLibrary); + REG_FUNC(0x45719B9D, sceAudiodecTermLibrary); + REG_FUNC(0x4DFD3AAA, sceAudiodecCreateDecoder); + REG_FUNC(0xE7A24E16, sceAudiodecDeleteDecoder); + REG_FUNC(0xCCDABA04, sceAudiodecDecode); + REG_FUNC(0xF72F9B64, sceAudiodecClearContext); + REG_FUNC(0x883B0CF5, sceAudiodecGetInternalError); }); diff --git a/rpcs3/Emu/ARMv7/Modules/sceAudioenc.cpp b/rpcs3/Emu/ARMv7/Modules/sceAudioenc.cpp index a3bf58617c..d507170248 100644 --- a/rpcs3/Emu/ARMv7/Modules/sceAudioenc.cpp +++ b/rpcs3/Emu/ARMv7/Modules/sceAudioenc.cpp @@ -4,6 +4,104 @@ extern psv_log_base sceAudioenc; +struct SceAudioencInitStreamParam +{ + u32 size; + u32 totalStreams; +}; + +struct SceAudioencInfoCelp +{ + u32 size; + u32 excitationMode; + u32 samplingRate; + u32 bitRate; +}; + +struct SceAudioencOptInfoCelp +{ + u32 size; + u8 header[32]; + u32 headerSize; + u32 encoderVersion; +}; + + +union SceAudioencInitParam +{ + u32 size; + SceAudioencInitStreamParam celp; +}; + +union SceAudioencInfo +{ + u32 size; + SceAudioencInfoCelp celp; +}; + +union SceAudioencOptInfo +{ + u32 size; + SceAudioencOptInfoCelp celp; +}; + +struct SceAudioencCtrl +{ + u32 size; + s32 handle; + vm::psv::ptr pInputPcm; + u32 inputPcmSize; + u32 maxPcmSize; + vm::psv::ptr pOutputEs; + u32 outputEsSize; + u32 maxEsSize; + u32 wordLength; + vm::psv::ptr pInfo; + vm::psv::ptr pOptInfo; +}; + + +s32 sceAudioencInitLibrary(u32 codecType, vm::psv::ptr pInitParam) +{ + throw __FUNCTION__; +} + +s32 sceAudioencTermLibrary(u32 codecType) +{ + throw __FUNCTION__; +} + +s32 sceAudioencCreateEncoder(vm::psv::ptr pCtrl, u32 codecType) +{ + throw __FUNCTION__; +} + +s32 sceAudioencDeleteEncoder(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudioencEncode(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudioencClearContext(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudioencGetOptInfo(vm::psv::ptr pCtrl) +{ + throw __FUNCTION__; +} + +s32 sceAudioencGetInternalError(vm::psv::ptr pCtrl, vm::psv::ptr pInternalError) +{ + throw __FUNCTION__; +} + + #define REG_FUNC(nid, name) reg_psv_func(nid, &sceAudioenc, #name, name) psv_log_base sceAudioenc("SceAudioenc", []() @@ -12,12 +110,12 @@ psv_log_base sceAudioenc("SceAudioenc", []() sceAudioenc.on_unload = nullptr; sceAudioenc.on_stop = nullptr; - //REG_FUNC(0x76EE4DC6, sceAudioencInitLibrary); - //REG_FUNC(0xAB32D022, sceAudioencTermLibrary); - //REG_FUNC(0x64C04AE8, sceAudioencCreateEncoder); - //REG_FUNC(0xC6BA5EE6, sceAudioencDeleteEncoder); - //REG_FUNC(0xD85DB29C, sceAudioencEncode); - //REG_FUNC(0x9386F42D, sceAudioencClearContext); - //REG_FUNC(0xD01C63A3, sceAudioencGetOptInfo); - //REG_FUNC(0x452246D0, sceAudioencGetInternalError); + REG_FUNC(0x76EE4DC6, sceAudioencInitLibrary); + REG_FUNC(0xAB32D022, sceAudioencTermLibrary); + REG_FUNC(0x64C04AE8, sceAudioencCreateEncoder); + REG_FUNC(0xC6BA5EE6, sceAudioencDeleteEncoder); + REG_FUNC(0xD85DB29C, sceAudioencEncode); + REG_FUNC(0x9386F42D, sceAudioencClearContext); + REG_FUNC(0xD01C63A3, sceAudioencGetOptInfo); + REG_FUNC(0x452246D0, sceAudioencGetInternalError); });