summaryrefslogtreecommitdiff
path: root/Source/Core/DiscIO/DiscExtractor.h
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2019-05-29 08:16:12 +0200
committerJosJuice <josjuice@gmail.com>2019-05-29 08:29:56 +0200
commitd4b069f4580b1cde512861cb3bfd3930c3a1e909 (patch)
tree8aa42bb9cda2e31c0d532b2324ca072ee39763e5 /Source/Core/DiscIO/DiscExtractor.h
parent5fb56505b22f5050f6ae0d59c46b4b1450b0fc3d (diff)
DiscIO: Use std::string_view in FileSystem::FindFileInfo
...and in the functions that call it.
Diffstat (limited to 'Source/Core/DiscIO/DiscExtractor.h')
-rw-r--r--Source/Core/DiscIO/DiscExtractor.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DiscExtractor.h b/Source/Core/DiscIO/DiscExtractor.h
index 16b8f932fd..0ca1954ee0 100644
--- a/Source/Core/DiscIO/DiscExtractor.h
+++ b/Source/Core/DiscIO/DiscExtractor.h
@@ -6,6 +6,8 @@
#include <functional>
#include <optional>
+#include <string>
+#include <string_view>
#include "Common/CommonTypes.h"
@@ -24,13 +26,13 @@ std::string NameForPartitionType(u32 partition_type, bool include_prefix);
u64 ReadFile(const Volume& volume, const Partition& partition, const FileInfo* file_info,
u8* buffer, u64 max_buffer_size, u64 offset_in_file = 0);
-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 = 0);
bool ExportData(const Volume& volume, const Partition& partition, u64 offset, u64 size,
const std::string& export_filename);
bool ExportFile(const Volume& volume, const Partition& partition, const FileInfo* file_info,
const std::string& 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);
// update_progress is called once for each child (file or directory).