Updated fs/save for latest libnx.

This commit is contained in:
yellows8 2019-11-16 16:12:43 -05:00
parent 147a5e2fc4
commit afb3d2132f
No known key found for this signature in database
GPG Key ID: 0AF90DA3F1E60E43

View File

@ -23,7 +23,7 @@ Result get_save(u64 *application_id, AccountUid *uid) {
rc = fsSaveDataInfoReaderRead(&reader, &info, 1, &total_entries);//See libnx fs.h. rc = fsSaveDataInfoReaderRead(&reader, &info, 1, &total_entries);//See libnx fs.h.
if (R_FAILED(rc) || total_entries==0) break; if (R_FAILED(rc) || total_entries==0) break;
if (info.saveDataType == FsSaveDataType_SaveData) {//Filter by FsSaveDataType_SaveData, however note that NandUser can have non-FsSaveDataType_SaveData. if (info.save_data_type == FsSaveDataType_Account) {//Filter by FsSaveDataType_Account, however note that FsSaveDataSpaceId_User can have non-FsSaveDataType_Account.
*application_id = info.application_id; *application_id = info.application_id;
*uid = info.uid; *uid = info.uid;
return 0; return 0;