Skip to content

Commit

Permalink
sceSaveDataDirNameSearch: Removed early failure exit
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsStolas committed Jul 7, 2024
1 parent a0aac59 commit 7546fb2
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/core/libraries/save_data/savedata.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -177,12 +177,11 @@ int PS4_SYSV_ABI sceSaveDataDeleteUser() {

int PS4_SYSV_ABI sceSaveDataDirNameSearch(const OrbisSaveDataDirNameSearchCond* cond,
OrbisSaveDataDirNameSearchResult* result) {
if (cond == nullptr || cond->dirName == nullptr)
return ORBIS_SAVE_DATA_ERROR_PARAMETER;
LOG_ERROR(Lib_SaveData,
"TODO sceSaveDataDirNameSearch: search_dir_name = {}, key = {}, result = {}",
cond->dirName->data, (int)cond->key, (result->infos == nullptr));

if (cond != nullptr && cond->dirName != nullptr) {
LOG_ERROR(Lib_SaveData,
"TODO sceSaveDataDirNameSearch: search_dir_name = {}, key = {}, result = {}",
cond->dirName->data, (int)cond->key, (result->infos == nullptr));
}
return ORBIS_OK;
}

Expand Down

0 comments on commit 7546fb2

Please sign in to comment.