summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-04-05 21:11:12 +0200
committerLioncash <mathew1800@gmail.com>2019-04-05 21:12:20 +0200
commit28e36de56f6c04c7f3b9db0cf78d781093a819a1 (patch)
tree0f74117be95cbcadbc444040e1e090a957f958eb
parentMerge pull request #2282 from bunnei/gpu-asynch-v2 (diff)
downloadyuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar.gz
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar.bz2
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar.lz
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar.xz
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.tar.zst
yuzu-28e36de56f6c04c7f3b9db0cf78d781093a819a1.zip
-rw-r--r--src/core/file_sys/fsmitm_romfsbuild.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/file_sys/fsmitm_romfsbuild.cpp b/src/core/file_sys/fsmitm_romfsbuild.cpp
index 47b7526c7..d126ae8dd 100644
--- a/src/core/file_sys/fsmitm_romfsbuild.cpp
+++ b/src/core/file_sys/fsmitm_romfsbuild.cpp
@@ -23,6 +23,7 @@
*/
#include <cstring>
+#include <string_view>
#include "common/alignment.h"
#include "common/assert.h"
#include "core/file_sys/fsmitm_romfsbuild.h"
@@ -97,7 +98,8 @@ struct RomFSBuildFileContext {
VirtualFile source;
};
-static u32 romfs_calc_path_hash(u32 parent, std::string path, u32 start, std::size_t path_len) {
+static u32 romfs_calc_path_hash(u32 parent, std::string_view path, u32 start,
+ std::size_t path_len) {
u32 hash = parent ^ 123456789;
for (u32 i = 0; i < path_len; i++) {
hash = (hash >> 5) | (hash << 27);