diff options
author | Lioncash <mathew1800@gmail.com> | 2019-04-05 21:11:12 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-04-05 21:12:20 +0200 |
commit | 28e36de56f6c04c7f3b9db0cf78d781093a819a1 (patch) | |
tree | 0f74117be95cbcadbc444040e1e090a957f958eb | |
parent | Merge pull request #2282 from bunnei/gpu-asynch-v2 (diff) | |
download | yuzu-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.cpp | 4 |
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); |