mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-12-25 05:55:41 +00:00
archive_source_sd_savedata: Add static method to get a specific save data path
This commit is contained in:
parent
c96acc1941
commit
40b0ea1086
|
@ -90,4 +90,9 @@ ResultVal<ArchiveFormatInfo> ArchiveSource_SDSaveData::GetFormatInfo(u64 program
|
||||||
return MakeResult<ArchiveFormatInfo>(info);
|
return MakeResult<ArchiveFormatInfo>(info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::string ArchiveSource_SDSaveData::GetSaveDataPathFor(const std::string& mount_point,
|
||||||
|
u64 program_id) {
|
||||||
|
return GetSaveDataPath(GetSaveDataContainerPath(mount_point), program_id);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace FileSys
|
} // namespace FileSys
|
||||||
|
|
|
@ -23,6 +23,8 @@ public:
|
||||||
ResultCode Format(u64 program_id, const FileSys::ArchiveFormatInfo& format_info);
|
ResultCode Format(u64 program_id, const FileSys::ArchiveFormatInfo& format_info);
|
||||||
ResultVal<ArchiveFormatInfo> GetFormatInfo(u64 program_id) const;
|
ResultVal<ArchiveFormatInfo> GetFormatInfo(u64 program_id) const;
|
||||||
|
|
||||||
|
static std::string GetSaveDataPathFor(const std::string& mount_point, u64 program_id);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
std::string mount_point;
|
std::string mount_point;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue