From d4b069f4580b1cde512861cb3bfd3930c3a1e909 Mon Sep 17 00:00:00 2001 From: JosJuice Date: Wed, 29 May 2019 08:16:12 +0200 Subject: DiscIO: Use std::string_view in FileSystem::FindFileInfo ...and in the functions that call it. --- Source/Core/DiscIO/DiscExtractor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Source/Core/DiscIO/DiscExtractor.cpp') diff --git a/Source/Core/DiscIO/DiscExtractor.cpp b/Source/Core/DiscIO/DiscExtractor.cpp index 0bc987a035..9ef3bd9d0a 100644 --- a/Source/Core/DiscIO/DiscExtractor.cpp +++ b/Source/Core/DiscIO/DiscExtractor.cpp @@ -69,7 +69,7 @@ u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* f return read_length; } -u64 ReadFile(const Volume& volume, const Partition& partition, const std::string& path, u8* buffer, +u64 ReadFile(const Volume& volume, const Partition& partition, std::string_view path, u8* buffer, u64 max_buffer_size, u64 offset_in_file) { const FileSystem* file_system = volume.GetFileSystem(partition); @@ -117,7 +117,7 @@ bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo export_filename); } -bool ExportFile(const Volume& volume, const Partition& partition, const std::string& path, +bool ExportFile(const Volume& volume, const Partition& partition, std::string_view path, const std::string& export_filename) { const FileSystem* file_system = volume.GetFileSystem(partition); -- cgit v1.2.3