diff --git a/rpcs3/Emu/Cell/Modules/cellSysutilAvc2.cpp b/rpcs3/Emu/Cell/Modules/cellSysutilAvc2.cpp index 9945d068bb..d8b34e08fd 100644 --- a/rpcs3/Emu/Cell/Modules/cellSysutilAvc2.cpp +++ b/rpcs3/Emu/Cell/Modules/cellSysutilAvc2.cpp @@ -54,7 +54,8 @@ s32 cellSysutilAvc2SetVoiceMuting() s32 cellSysutilAvc2StartVoiceDetection() { - fmt::throw_exception("Unimplemented" HERE); + cellSysutilAvc2.todo("cellSysutilAvc2StartVoiceDetection()"); + return CELL_OK; } s32 cellSysutilAvc2UnloadAsync() @@ -87,10 +88,10 @@ s32 cellSysutilAvc2SetWindowString() fmt::throw_exception("Unimplemented" HERE); } -s32 cellSysutilAvc2EstimateMemoryContainerSize() +s32 cellSysutilAvc2EstimateMemoryContainerSize(vm::cptr initparam, vm::ptr size) { - UNIMPLEMENTED_FUNC(cellSysutilAvc2); - return CELL_OK; + cellSysutilAvc2.todo("cellSysutilAvc2EstimateMemoryContainerSize(initparam=*0x%x, size=*0x%x)", initparam, size); + return CELL_OK; } s32 cellSysutilAvc2SetVideoMuting() @@ -130,9 +131,10 @@ s32 cellSysutilAvc2GetSpeakerVolumeLevel() s32 cellSysutilAvc2IsCameraAttached(vm::ptr status) { - cellSysutilAvc2.todo("cellSysutilAvc2IsCameraAttached()"); + cellSysutilAvc2.todo("cellSysutilAvc2IsCameraAttached(status=*0x%x)", status); *status = CELL_AVC2_CAMERA_STATUS_DETACHED; + return CELL_OK; } @@ -273,14 +275,16 @@ s32 cellSysutilAvc2SetSpeakerMuting() fmt::throw_exception("Unimplemented" HERE); } -s32 cellSysutilAvc2Load() +s32 cellSysutilAvc2Load(SceNpMatching2ContextId ctx_id, u32 container, vm::ptr callback_func, vm::ptr user_data, vm::cptr init_param) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutilAvc2.todo("cellSysutilAvc2Load(ctx_id=0x%x, container=0x%x, callback_func=*0x%x, user_data=*0x%x, init_param=*0x%x)", ctx_id, container, callback_func, user_data, init_param); + return CELL_OK; } -s32 cellSysutilAvc2SetAttribute() +s32 cellSysutilAvc2SetAttribute(vm::cptr attr) { - fmt::throw_exception("Unimplemented" HERE); + cellSysutilAvc2.todo("cellSysutilAvc2SetAttribute(attr=*0x%x)", attr); + return CELL_OK; } s32 cellSysutilAvc2UnloadAsync2() @@ -303,10 +307,13 @@ s32 cellSysutilAvc2HideWindow() fmt::throw_exception("Unimplemented" HERE); } -s32 cellSysutilAvc2GetVoiceMuting() +s32 cellSysutilAvc2GetVoiceMuting(vm::ptr muting) { - UNIMPLEMENTED_FUNC(cellSysutilAvc2); - return CELL_OK; + cellSysutilAvc2.todo("cellSysutilAvc2GetVoiceMuting(muting=*0x%x)", muting); + + *muting = 1; + + return CELL_OK; } s32 cellSysutilAvc2GetScreenShowStatus()