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
fee28d299f
commit
d459edb90d
@ -24,7 +24,7 @@ Result get_save(u64 *titleID, u128 *userID)
|
|||||||
rc = fsSaveDataIteratorRead(&iterator, &info, 1, &total_entries);//See libnx fs.h.
|
rc = fsSaveDataIteratorRead(&iterator, &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.saveDataType == FsSaveDataType_SaveData) {//Filter by FsSaveDataType_SaveData, however note that NandUser can have non-FsSaveDataType_SaveData.
|
||||||
*titleID = info.titleID;
|
*titleID = info.titleID;
|
||||||
*userID = info.userID;
|
*userID = info.userID;
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user