Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions core/libs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -835,15 +835,8 @@ if(BUILD_TESTING)
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceNpCppWebApi>")
endif()

add_test_executable(savedata_core_write_replacement_tests tests/SaveDataWriteReplacement.cpp)
target_include_directories(savedata_core_write_replacement_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries(savedata_core_write_replacement_tests PRIVATE libSceSaveData)
configure_windows_unwind(savedata_core_write_replacement_tests)
add_test(NAME savedata_core_write_replacement COMMAND savedata_core_write_replacement_tests)

add_test_executable(savedata_native_write_replacement_tests tests/SaveDataWriteReplacement.cpp)
target_include_directories(savedata_native_write_replacement_tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
target_compile_definitions(savedata_native_write_replacement_tests PRIVATE SAVEDATA_NATIVE_BACKEND)
target_link_libraries(savedata_native_write_replacement_tests PRIVATE libSceSaveData.native)
configure_windows_unwind(savedata_native_write_replacement_tests)
add_test(NAME savedata_native_write_replacement COMMAND savedata_native_write_replacement_tests)
Expand Down Expand Up @@ -875,13 +868,10 @@ if(BUILD_TESTING)
endif()

if(MINGW)
target_compile_options(savedata_core_write_replacement_tests PRIVATE -fasynchronous-unwind-tables)
target_compile_options(savedata_native_write_replacement_tests PRIVATE -fasynchronous-unwind-tables)
target_compile_options(savedata_replace_file_failure_tests PRIVATE -fasynchronous-unwind-tables)
endif()
if(WIN32)
set_tests_properties(savedata_core_write_replacement PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceSaveData>")
set_tests_properties(savedata_native_write_replacement PROPERTIES ENVIRONMENT_MODIFICATION
"PATH=path_list_prepend:$<TARGET_FILE_DIR:libSceSaveData.native>")
endif()
Expand Down
1 change: 0 additions & 1 deletion core/libs/prx/libSceNpCommon/Runtime.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#include "prx/libSceSaveData/SaveDataCore.hpp"
#include "prx/libkernel/include/Api.hpp"
#include "prx/libc/include/Api.hpp"
#include "prx/libSceNpCommon/include/Api.hpp"
Expand Down
5 changes: 2 additions & 3 deletions core/libs/prx/libSceSaveData.native/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
add_library(libSceSaveData.native SHARED EXCLUDE_FROM_ALL Export.cpp)
target_include_directories(libSceSaveData.native PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(libSceSaveData.native)
include(${CMAKE_CURRENT_SOURCE_DIR}/SaveDataLibrary.cmake)
add_sce_savedata_library(libSceSaveData.native)

if(BUILD_TESTING)
add_test_executable(guest_savedata_search_tests ${LIBS_INCLUDE_DIR}/tests/GuestSaveDataSearch.cpp)
Expand Down
330 changes: 330 additions & 0 deletions core/libs/prx/libSceSaveData.native/Export.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1040,6 +1040,336 @@ int APS5_VABI sceSaveDataDebugTarget() {
return 0;
}

int APS5_VABI sceSaveDataAbort() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataBindPsnAccount(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataBindPsnAccountForSystemBackup(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataChangeDatabase(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataChangeInternal(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckBackupData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckBackupDataForCdlg(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckBackupDataInternal(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckBackupDataLight(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckCloudData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckSaveDataBroken(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckSaveDataVersion(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCheckSaveDataVersionLatest(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataClearProgress() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataCreateUploadData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDebugGetThreadId(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteAllUser(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteBackupData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteCloudData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteProspero(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteTitle(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDeleteUser(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDirNameSearchInternal(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataDownload(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetAllSize() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetAppLaunchedUser(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetAutoUploadConditions(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetAutoUploadRequestInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetAutoUploadSetting(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetBoundPsnAccountCount(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetClientThreadPriority(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetCloudQuotaInfo(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetEventInfo() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetMountedSaveDataCount() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetProgress() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetSaveDataCount() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetSaveDataRootDir(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetSaveDataRootPath(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetSaveDataRootUsbPath(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetSavePoint(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataGetUpdatedDataCount(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataInitialize2() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataInitializeForCdlg(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataIsDeletingUsbDb(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataIsMounted() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataManualDelete(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataManualDownload(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataManualUpload(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataMount5() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataMountInternal(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataMountSys(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataRebuildDatabase(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataRegisterEventCallback() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataRestoreBackupData(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataRestoreBackupDataForCdlg(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataRestoreLoadSaveDataMemory(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataSetAutoUploadSetting(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataSetEventInfo() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataSetSaveDataLibraryUser(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataShutdownStart(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataSupportedFakeBrokenStatus(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataSyncCloudList(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataUmountSys(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataUmountWithBackup(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataUnregisterEventCallback() {
NotImplemented_nid_no_patch(__func__);
return 0;
}

int APS5_VABI sceSaveDataUpload(void) {
NotImplemented_nid_no_patch(__func__);
return 0;
}

}

namespace {
Expand Down
5 changes: 5 additions & 0 deletions core/libs/prx/libSceSaveData.native/SaveDataLibrary.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
function(add_sce_savedata_library target)
add_library(${target} SHARED EXCLUDE_FROM_ALL ${CMAKE_CURRENT_FUNCTION_LIST_DIR}/Export.cpp)
target_include_directories(${target} PRIVATE ${LIBS_INCLUDE_DIR})
configure_windows_unwind(${target})
endfunction()
2 changes: 2 additions & 0 deletions core/libs/prx/libSceSaveData/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
include(${CMAKE_CURRENT_SOURCE_DIR}/../libSceSaveData.native/SaveDataLibrary.cmake)
add_sce_savedata_library(libSceSaveData)
Loading
Loading