From f942cf20510f8affc2a42f96becec816b20991f0 Mon Sep 17 00:00:00 2001 From: Luis Michaelis Date: Sat, 29 Jun 2024 07:22:09 +0200 Subject: [PATCH] fix(Vfs): fix an issue with `mount_host` where the wrong file was mounted when not using MMAP --- src/Vfs.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Vfs.cc b/src/Vfs.cc index 66850b6a..54782223 100644 --- a/src/Vfs.cc +++ b/src/Vfs.cc @@ -531,7 +531,7 @@ namespace zenkit { VfsFileDescriptor {mem.data(), mem.size(), false}, time.count())); #else - std::ifstream stream {host, std::ios::in | std::ios::ate | std::ios::binary}; + std::ifstream stream {path, std::ios::in | std::ios::ate | std::ios::binary}; auto size = stream.tellg(); stream.seekg(0);