From 956d039415dbb863e0bb2bf2a6d15f71b9681782 Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 24 Mar 2019 16:04:22 +0100 Subject: [PATCH] hle: Add cellVideoPlayerUtility module --- .../Cell/Modules/cellVideoPlayerUtility.cpp | 128 ++++++++++++++++++ rpcs3/Emu/Cell/PPUModule.cpp | 1 + rpcs3/Emu/Cell/PPUModule.h | 1 + rpcs3/emucore.vcxproj | 1 + rpcs3/emucore.vcxproj.filters | 3 + 5 files changed, 134 insertions(+) create mode 100644 rpcs3/Emu/Cell/Modules/cellVideoPlayerUtility.cpp diff --git a/rpcs3/Emu/Cell/Modules/cellVideoPlayerUtility.cpp b/rpcs3/Emu/Cell/Modules/cellVideoPlayerUtility.cpp new file mode 100644 index 0000000000..c8e7bf0a16 --- /dev/null +++ b/rpcs3/Emu/Cell/Modules/cellVideoPlayerUtility.cpp @@ -0,0 +1,128 @@ +#include "stdafx.h" +#include "Emu/System.h" +#include "Emu/Cell/PPUModule.h" + +LOG_CHANNEL(cellVideoPlayerUtility); + +s32 cellVideoPlayerInitialize() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerSetStartPosition() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerGetVolume() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerFinalize() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerSetStopPosition() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerClose() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerGetTransferPictureInfo() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerSetDownloadPosition() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerStartThumbnail() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerEndThumbnail() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerOpen() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerSetVolume() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerGetOutputStereoPicture() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerGetPlaybackStatus() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerSetTransferComplete() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerGetOutputPicture() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +s32 cellVideoPlayerPlaybackControl() +{ + UNIMPLEMENTED_FUNC(cellVideoPlayerUtility); + return CELL_OK; +} + +DECLARE(ppu_module_manager::cellVideoPlayerUtility)("cellVideoPlayerUtility", []() +{ + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerInitialize); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerSetStartPosition); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerGetVolume); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerFinalize); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerSetStopPosition); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerClose); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerGetTransferPictureInfo); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerSetDownloadPosition); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerStartThumbnail); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerEndThumbnail); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerOpen); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerSetVolume); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerGetOutputStereoPicture); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerGetPlaybackStatus); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerSetTransferComplete); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerGetOutputPicture); + REG_FUNC(cellVideoPlayerUtility, cellVideoPlayerPlaybackControl); +}); diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index 4cac9617a7..def991148b 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -239,6 +239,7 @@ static void ppu_initialize_modules(const std::shared_ptr& link &ppu_module_manager::cellUserInfo, &ppu_module_manager::cellVdec, &ppu_module_manager::cellVideoExport, + &ppu_module_manager::cellVideoPlayerUtility, &ppu_module_manager::cellVideoUpload, &ppu_module_manager::cellVoice, &ppu_module_manager::cellVpost, diff --git a/rpcs3/Emu/Cell/PPUModule.h b/rpcs3/Emu/Cell/PPUModule.h index a76176a66a..9a7995d1a2 100644 --- a/rpcs3/Emu/Cell/PPUModule.h +++ b/rpcs3/Emu/Cell/PPUModule.h @@ -246,6 +246,7 @@ public: static const ppu_static_module cellUserInfo; static const ppu_static_module cellVdec; static const ppu_static_module cellVideoExport; + static const ppu_static_module cellVideoPlayerUtility; static const ppu_static_module cellVideoUpload; static const ppu_static_module cellVoice; static const ppu_static_module cellVpost; diff --git a/rpcs3/emucore.vcxproj b/rpcs3/emucore.vcxproj index b07c34164a..640fce4fb6 100644 --- a/rpcs3/emucore.vcxproj +++ b/rpcs3/emucore.vcxproj @@ -239,6 +239,7 @@ + diff --git a/rpcs3/emucore.vcxproj.filters b/rpcs3/emucore.vcxproj.filters index a712a25544..997adbf49a 100644 --- a/rpcs3/emucore.vcxproj.filters +++ b/rpcs3/emucore.vcxproj.filters @@ -557,6 +557,9 @@ Emu\Cell\Modules + + Emu\Cell\Modules + Emu\Cell\Modules