From c8b9cc9fe5c6eb7041721eb6f5258b5e1f0cf36f Mon Sep 17 00:00:00 2001 From: ikki84 Date: Sat, 11 Mar 2017 23:20:37 -0300 Subject: [PATCH] Stub cellAvconfExt Changed "fmt::throw_exception("Unimplemented" HERE); " into: "UNIMPLEMENTED_FUNC(cellAvconfExt); " "return CELL_OK;" Allow NPEB01283 to go further in boot (pass the intro and reaches the menu)... --- rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp | 40 ++++++++++++++++-------- 1 file changed, 27 insertions(+), 13 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp b/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp index abdecbdc6b..8297c453bb 100644 --- a/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp +++ b/rpcs3/Emu/Cell/Modules/cellAvconfExt.cpp @@ -5,6 +5,7 @@ #include "cellAudioIn.h" #include "cellAudioOut.h" #include "cellVideoOut.h" +#include "cellSysutil.h" logs::channel cellAvconfExt("cellAvconfExt", logs::level::notice); @@ -12,32 +13,38 @@ vm::gvar g_gamma; // TODO s32 cellAudioOutUnregisterDevice() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioOutGetDeviceInfo2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutSetXVColor() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutSetupDisplay() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioInGetDeviceInfo() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutConvertCursorColor() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutGetGamma(u32 videoOut, vm::ptr gamma) @@ -56,12 +63,14 @@ s32 cellVideoOutGetGamma(u32 videoOut, vm::ptr gamma) s32 cellAudioInGetAvailableDeviceInfo() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioOutGetAvailableDeviceInfo() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutSetGamma(u32 videoOut, f32 gamma) @@ -85,27 +94,32 @@ s32 cellVideoOutSetGamma(u32 videoOut, f32 gamma) s32 cellAudioOutRegisterDevice() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioOutSetDeviceMode() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioInSetDeviceMode() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioInRegisterDevice() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellAudioInUnregisterDevice() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellAvconfExt); + return CELL_OK; } s32 cellVideoOutGetScreenSize(u32 videoOut, vm::ptr screenSize)