From 9b122e544985fea6bb1228395144a241b013319c Mon Sep 17 00:00:00 2001 From: ikki84 Date: Sun, 5 Feb 2017 13:27:53 -0300 Subject: [PATCH] cellMusic.cpp Change Throw Exception into UNIMPLEMENTED_FUNC Also return CELL_OK in function until the it become properly developed. --- rpcs3/Emu/Cell/Modules/cellMusic.cpp | 63 ++++++++++++++++++---------- 1 file changed, 42 insertions(+), 21 deletions(-) diff --git a/rpcs3/Emu/Cell/Modules/cellMusic.cpp b/rpcs3/Emu/Cell/Modules/cellMusic.cpp index 14e00c5261..7d0ec47f5d 100644 --- a/rpcs3/Emu/Cell/Modules/cellMusic.cpp +++ b/rpcs3/Emu/Cell/Modules/cellMusic.cpp @@ -16,97 +16,116 @@ struct music2_t s32 cellMusicGetSelectionContext() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSetSelectionContext2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSetVolume2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetContentsId() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSetSelectionContext() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicInitialize2SystemWorkload() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetPlaybackStatus2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetContentsId2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicFinalize() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicInitializeSystemWorkload() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicInitialize() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicFinalize2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetSelectionContext2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetVolume() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetPlaybackStatus() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSetPlaybackCommand2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSetPlaybackCommand() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSelectContents2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicSelectContents() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicInitialize2(s32 mode, s32 spuPriority, vm::ptr func, vm::ptr userData) @@ -134,12 +153,14 @@ s32 cellMusicInitialize2(s32 mode, s32 spuPriority, vm::ptr s32 cellMusicSetVolume() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; } s32 cellMusicGetVolume2() { - fmt::throw_exception("Unimplemented" HERE); + UNIMPLEMENTED_FUNC(cellMusic); + return CELL_OK; }