diff --git a/core/libs/prx/libSceNpTrophy2/CMakeLists.txt b/core/libs/prx/libSceNpTrophy2/CMakeLists.txt new file mode 100644 index 000000000..bd62246c4 --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/CMakeLists.txt @@ -0,0 +1,13 @@ +add_library(libSceNpTrophy2 SHARED EXCLUDE_FROM_ALL + ${CMAKE_CURRENT_SOURCE_DIR}/src/Context.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/src/Handle.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/src/GameInfo.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/src/TrophyInfo.cpp + ${CMAKE_CURRENT_SOURCE_DIR}/src/GroupInfo.cpp +) + +target_include_directories(libSceNpTrophy2 PRIVATE + ${LIBS_INCLUDE_DIR} + ${CMAKE_CURRENT_SOURCE_DIR}/src +) +target_link_libraries(libSceNpTrophy2 PRIVATE libc) diff --git a/core/libs/prx/libSceNpTrophy2/Export.cpp b/core/libs/prx/libSceNpTrophy2/Export.cpp deleted file mode 100644 index b26a7ac33..000000000 --- a/core/libs/prx/libSceNpTrophy2/Export.cpp +++ /dev/null @@ -1,138 +0,0 @@ -#include -#include -#include "SceTypes.hpp" -#include "prx/libc/include/General.hpp" - -extern "C" { - -int APS5_VABI sceNpTrophy2AbortHandle(int handle) { - (void)handle; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2CreateContext(int* context, int user_id, uint32_t service_label, uint64_t options) { - (void)context; - (void)user_id; - (void)service_label; - (void)options; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2CreateHandle(int* handle) { - (void)handle; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2DestroyContext(int context) { - (void)context; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2DestroyHandle(int handle) { - (void)handle; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetGameIcon(int context, int handle, void* buffer, size_t* size) { - (void)context; - (void)handle; - (void)buffer; - (void)size; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetGameInfo(int context, int handle, NpTrophy2GameDetails* details, NpTrophy2GameData* data) { - (void)context; - (void)handle; - (void)details; - (void)data; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetGroupIcon(int context, int handle, int group_id, void* buffer, size_t* size) { - (void)context; - (void)handle; - (void)group_id; - (void)buffer; - (void)size; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetGroupInfo(int context, int handle, int group_id, NpTrophy2GroupDetails* details, NpTrophy2GroupData* data) { - (void)context; - (void)handle; - (void)group_id; - (void)details; - (void)data; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetGroupInfoArray(int context, int handle, uint32_t offset, uint32_t limit, NpTrophy2GroupDetails* details_array, NpTrophy2GroupData* data_array, uint32_t* count) { - (void)context; - (void)handle; - (void)offset; - (void)limit; - (void)details_array; - (void)data_array; - (void)count; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetTrophyIcon(int context, int handle, int trophy_id, void* buffer, size_t* size) { - (void)context; - (void)handle; - (void)trophy_id; - (void)buffer; - (void)size; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetTrophyInfo(int context, int handle, int trophy_id, NpTrophy2Details* details, NpTrophy2Data* data) { - (void)context; - (void)handle; - (void)trophy_id; - (void)details; - (void)data; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2GetTrophyInfoArray(int context, int handle, uint32_t offset, uint32_t limit, NpTrophy2Details* details_array, NpTrophy2Data* data_array, uint32_t* count) { - (void)context; - (void)handle; - (void)offset; - (void)limit; - (void)details_array; - (void)data_array; - (void)count; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2RegisterContext(int context, int handle, uint64_t options) { - (void)context; - (void)handle; - (void)options; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -int APS5_VABI sceNpTrophy2RegisterUnlockCallback(void* callback, void* userdata) { - (void)callback; - (void)userdata; - NotImplemented_nid_no_patch(__func__); - return 0; -} - -} diff --git a/core/libs/prx/libSceNpTrophy2/src/Context.cpp b/core/libs/prx/libSceNpTrophy2/src/Context.cpp new file mode 100644 index 000000000..2e7ac82c7 --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/Context.cpp @@ -0,0 +1,32 @@ +#include + +#include "NpTrophy2.hpp" +#include "SceTypes.hpp" +#include "prx/libc/include/General.hpp" + +extern "C" { + +int APS5_VABI sceNpTrophy2CreateContext(int* context, int user_id, uint32_t service_label, uint64_t options) { + (void)context; + (void)user_id; + (void)service_label; + (void)options; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2DestroyContext(int context) { + (void)context; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2RegisterContext(int context, int handle, uint64_t options) { + (void)context; + (void)handle; + (void)options; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +} diff --git a/core/libs/prx/libSceNpTrophy2/src/GameInfo.cpp b/core/libs/prx/libSceNpTrophy2/src/GameInfo.cpp new file mode 100644 index 000000000..6ac4bb6db --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/GameInfo.cpp @@ -0,0 +1,34 @@ +#include + +#include "NpTrophy2.hpp" +#include "SceTypes.hpp" +#include "prx/libc/include/General.hpp" + +extern "C" { + +int APS5_VABI sceNpTrophy2GetGameInfo(int context, int handle, NpTrophy2GameDetails* details, NpTrophy2GameData* data) { + (void)context; + (void)handle; + (void)details; + (void)data; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2GetGameIcon(int context, int handle, void* buffer, size_t* size) { + (void)context; + (void)handle; + (void)buffer; + (void)size; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2RegisterUnlockCallback(void* callback, void* userdata) { + (void)callback; + (void)userdata; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +} diff --git a/core/libs/prx/libSceNpTrophy2/src/GroupInfo.cpp b/core/libs/prx/libSceNpTrophy2/src/GroupInfo.cpp new file mode 100644 index 000000000..01cfc580a --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/GroupInfo.cpp @@ -0,0 +1,42 @@ +#include +#include + +#include "NpTrophy2.hpp" +#include "SceTypes.hpp" +#include "prx/libc/include/General.hpp" + +extern "C" { + +int APS5_VABI sceNpTrophy2GetGroupInfo(int context, int handle, int group_id, NpTrophy2GroupDetails* details, NpTrophy2GroupData* data) { + (void)context; + (void)handle; + (void)group_id; + (void)details; + (void)data; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2GetGroupInfoArray(int context, int handle, uint32_t offset, uint32_t limit, NpTrophy2GroupDetails* details_array, NpTrophy2GroupData* data_array, uint32_t* count) { + (void)context; + (void)handle; + (void)offset; + (void)limit; + (void)details_array; + (void)data_array; + (void)count; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2GetGroupIcon(int context, int handle, int group_id, void* buffer, size_t* size) { + (void)context; + (void)handle; + (void)group_id; + (void)buffer; + (void)size; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +} diff --git a/core/libs/prx/libSceNpTrophy2/src/Handle.cpp b/core/libs/prx/libSceNpTrophy2/src/Handle.cpp new file mode 100644 index 000000000..e94bc9978 --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/Handle.cpp @@ -0,0 +1,25 @@ +#include "NpTrophy2.hpp" +#include "SceTypes.hpp" +#include "prx/libc/include/General.hpp" + +extern "C" { + +int APS5_VABI sceNpTrophy2CreateHandle(int* handle) { + (void)handle; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2DestroyHandle(int handle) { + (void)handle; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2AbortHandle(int handle) { + (void)handle; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +} diff --git a/core/libs/prx/libSceNpTrophy2/src/NpTrophy2.hpp b/core/libs/prx/libSceNpTrophy2/src/NpTrophy2.hpp new file mode 100644 index 000000000..055d5c711 --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/NpTrophy2.hpp @@ -0,0 +1,9 @@ +#ifndef CORE_LIBS_PRX_LIBSCENPTROPHY2_NPTROPHY2_HPP +#define CORE_LIBS_PRX_LIBSCENPTROPHY2_NPTROPHY2_HPP + +#include +#include + +#include "SceTypes.hpp" + +#endif diff --git a/core/libs/prx/libSceNpTrophy2/src/TrophyInfo.cpp b/core/libs/prx/libSceNpTrophy2/src/TrophyInfo.cpp new file mode 100644 index 000000000..e5c19ce54 --- /dev/null +++ b/core/libs/prx/libSceNpTrophy2/src/TrophyInfo.cpp @@ -0,0 +1,42 @@ +#include +#include + +#include "NpTrophy2.hpp" +#include "SceTypes.hpp" +#include "prx/libc/include/General.hpp" + +extern "C" { + +int APS5_VABI sceNpTrophy2GetTrophyInfo(int context, int handle, int trophy_id, NpTrophy2Details* details, NpTrophy2Data* data) { + (void)context; + (void)handle; + (void)trophy_id; + (void)details; + (void)data; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2GetTrophyInfoArray(int context, int handle, uint32_t offset, uint32_t limit, NpTrophy2Details* details_array, NpTrophy2Data* data_array, uint32_t* count) { + (void)context; + (void)handle; + (void)offset; + (void)limit; + (void)details_array; + (void)data_array; + (void)count; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +int APS5_VABI sceNpTrophy2GetTrophyIcon(int context, int handle, int trophy_id, void* buffer, size_t* size) { + (void)context; + (void)handle; + (void)trophy_id; + (void)buffer; + (void)size; + NotImplemented_nid_no_patch(__func__); + return 0; +} + +}