mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-29 09:32:42 +00:00
cellPhotoExport: add funcFinish check
This commit is contained in:
parent
0c051a83a7
commit
4289ffef1c
@ -288,6 +288,11 @@ error_code cellPhotoExportInitialize2(u32 version, vm::ptr<CellPhotoExportUtilFi
|
|||||||
return CELL_PHOTO_EXPORT_UTIL_ERROR_PARAM;
|
return CELL_PHOTO_EXPORT_UTIL_ERROR_PARAM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!funcFinish)
|
||||||
|
{
|
||||||
|
return CELL_PHOTO_EXPORT_UTIL_ERROR_PARAM;
|
||||||
|
}
|
||||||
|
|
||||||
sysutil_register_cb([=](ppu_thread& ppu) -> s32
|
sysutil_register_cb([=](ppu_thread& ppu) -> s32
|
||||||
{
|
{
|
||||||
funcFinish(ppu, CELL_OK, userdata);
|
funcFinish(ppu, CELL_OK, userdata);
|
||||||
@ -454,7 +459,7 @@ error_code cellPhotoExportFromFileWithCopy(vm::cptr<char> srcHddDir, vm::cptr<ch
|
|||||||
|
|
||||||
error_code cellPhotoExportProgress(vm::ptr<CellPhotoExportUtilFinishCallback> funcFinish, vm::ptr<void> userdata)
|
error_code cellPhotoExportProgress(vm::ptr<CellPhotoExportUtilFinishCallback> funcFinish, vm::ptr<void> userdata)
|
||||||
{
|
{
|
||||||
cellPhotoExport.todo("cellPhotoExportProgress(funcFinish=*0x%x, userdata=*0x%x)", funcFinish, userdata);
|
cellPhotoExport.notice("cellPhotoExportProgress(funcFinish=*0x%x, userdata=*0x%x)", funcFinish, userdata);
|
||||||
|
|
||||||
if (!funcFinish)
|
if (!funcFinish)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user