mirror of
https://github.com/switchbrew/switch-examples.git
synced 2025-06-21 13:22:40 +02:00
Updated fs/save for latest libnx.
This commit is contained in:
parent
147a5e2fc4
commit
afb3d2132f
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user