From 581b205f7319de90846e14477b5da529eb1fa62b Mon Sep 17 00:00:00 2001 From: scribam Date: Sun, 24 Mar 2019 14:09:08 +0100 Subject: [PATCH] hle: Add cellPesmUtility module --- rpcs3/Emu/Cell/Modules/cellPesmUtility.cpp | 114 +++++++++++++++++++++ rpcs3/Emu/Cell/PPUModule.cpp | 1 + rpcs3/Emu/Cell/PPUModule.h | 1 + rpcs3/emucore.vcxproj | 1 + rpcs3/emucore.vcxproj.filters | 3 + 5 files changed, 120 insertions(+) create mode 100644 rpcs3/Emu/Cell/Modules/cellPesmUtility.cpp diff --git a/rpcs3/Emu/Cell/Modules/cellPesmUtility.cpp b/rpcs3/Emu/Cell/Modules/cellPesmUtility.cpp new file mode 100644 index 0000000000..5b9442e942 --- /dev/null +++ b/rpcs3/Emu/Cell/Modules/cellPesmUtility.cpp @@ -0,0 +1,114 @@ +#include "stdafx.h" +#include "Emu/System.h" +#include "Emu/Cell/PPUModule.h" + +LOG_CHANNEL(cellPesmUtility); + +s32 cellPesmCloseDevice() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmEncryptSample() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmEncryptSample2() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmEndMovieRec() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmFinalize() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmFinalize2() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmGetSinf() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmInitEntry() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmInitEntry2() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmInitialize() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmLoadAsync() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmOpenDevice() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmPrepareRec() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmStartMovieRec() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +s32 cellPesmUnloadAsync() +{ + UNIMPLEMENTED_FUNC(cellPesmUtility); + return CELL_OK; +} + +DECLARE(ppu_module_manager::cellPesmUtility)("cellPesmUtility", []() +{ + REG_FUNC(cellPesmUtility, cellPesmInitialize); + REG_FUNC(cellPesmUtility, cellPesmFinalize); + REG_FUNC(cellPesmUtility, cellPesmLoadAsync); + REG_FUNC(cellPesmUtility, cellPesmOpenDevice); + REG_FUNC(cellPesmUtility, cellPesmEncryptSample); + REG_FUNC(cellPesmUtility, cellPesmUnloadAsync); + REG_FUNC(cellPesmUtility, cellPesmGetSinf); + REG_FUNC(cellPesmUtility, cellPesmStartMovieRec); + REG_FUNC(cellPesmUtility, cellPesmInitEntry); + REG_FUNC(cellPesmUtility, cellPesmEndMovieRec); + REG_FUNC(cellPesmUtility, cellPesmEncryptSample2); + REG_FUNC(cellPesmUtility, cellPesmFinalize2); + REG_FUNC(cellPesmUtility, cellPesmCloseDevice); + REG_FUNC(cellPesmUtility, cellPesmInitEntry2); + REG_FUNC(cellPesmUtility, cellPesmPrepareRec); +}); diff --git a/rpcs3/Emu/Cell/PPUModule.cpp b/rpcs3/Emu/Cell/PPUModule.cpp index 94aeba990f..4cac9617a7 100644 --- a/rpcs3/Emu/Cell/PPUModule.cpp +++ b/rpcs3/Emu/Cell/PPUModule.cpp @@ -199,6 +199,7 @@ static void ppu_initialize_modules(const std::shared_ptr& link &ppu_module_manager::cellOskDialog, &ppu_module_manager::cellOvis, &ppu_module_manager::cellPamf, + &ppu_module_manager::cellPesmUtility, &ppu_module_manager::cellPhotoDecode, &ppu_module_manager::cellPhotoExport, &ppu_module_manager::cellPhotoImportUtil, diff --git a/rpcs3/Emu/Cell/PPUModule.h b/rpcs3/Emu/Cell/PPUModule.h index e7faf6f849..a76176a66a 100644 --- a/rpcs3/Emu/Cell/PPUModule.h +++ b/rpcs3/Emu/Cell/PPUModule.h @@ -206,6 +206,7 @@ public: static const ppu_static_module cellOskDialog; static const ppu_static_module cellOvis; static const ppu_static_module cellPamf; + static const ppu_static_module cellPesmUtility; static const ppu_static_module cellPhotoDecode; static const ppu_static_module cellPhotoExport; static const ppu_static_module cellPhotoImportUtil; diff --git a/rpcs3/emucore.vcxproj b/rpcs3/emucore.vcxproj index 63f07e58dc..b07c34164a 100644 --- a/rpcs3/emucore.vcxproj +++ b/rpcs3/emucore.vcxproj @@ -197,6 +197,7 @@ + diff --git a/rpcs3/emucore.vcxproj.filters b/rpcs3/emucore.vcxproj.filters index 7f9ecf10c4..a712a25544 100644 --- a/rpcs3/emucore.vcxproj.filters +++ b/rpcs3/emucore.vcxproj.filters @@ -431,6 +431,9 @@ Emu\Cell\Modules + + Emu\Cell\Modules + Emu\Cell\Modules