file-sys: Make use of std::string_view where applicable
Same behavior, but makes the interface more flexible and allows non-std::string instances to be used with it.
This commit is contained in:
@ -74,7 +74,7 @@ private:
|
||||
* @param path The path that identifies the requested concrete ExtSaveData archive.
|
||||
* @returns The complete path to the specified extdata archive in the host filesystem
|
||||
*/
|
||||
std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path);
|
||||
std::string GetExtSaveDataPath(std::string_view mount_point, const Path& path);
|
||||
|
||||
/**
|
||||
* Constructs a path to the concrete ExtData archive in the host filesystem based on the
|
||||
@ -83,7 +83,7 @@ std::string GetExtSaveDataPath(const std::string& mount_point, const Path& path)
|
||||
* @param extdata_id The id of the ExtSaveData
|
||||
* @returns The complete path to the specified extdata archive in the host filesystem
|
||||
*/
|
||||
std::string GetExtDataPathFromId(const std::string& mount_point, u64 extdata_id);
|
||||
std::string GetExtDataPathFromId(std::string_view mount_point, u64 extdata_id);
|
||||
|
||||
/**
|
||||
* Constructs a path to the base folder to hold concrete ExtSaveData archives in the host file
|
||||
@ -92,7 +92,7 @@ std::string GetExtDataPathFromId(const std::string& mount_point, u64 extdata_id)
|
||||
* @param shared Whether this ExtSaveData container is for SharedExtSaveDatas or not.
|
||||
* @returns The path to the base ExtSaveData archives' folder in the host file system
|
||||
*/
|
||||
std::string GetExtDataContainerPath(const std::string& mount_point, bool shared);
|
||||
std::string GetExtDataContainerPath(std::string_view mount_point, bool shared);
|
||||
|
||||
/**
|
||||
* Constructs a FileSys::Path object that refers to the ExtData archive identified by
|
||||
|
Reference in New Issue
Block a user