From 68b68e676b5122e9ac2d699cf41732482f371d9e Mon Sep 17 00:00:00 2001 From: brian218 Date: Mon, 31 Oct 2022 22:41:23 +0800 Subject: [PATCH] sys_fs.cpp: Satisfy Clang --- rpcs3/Emu/Cell/lv2/sys_fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpcs3/Emu/Cell/lv2/sys_fs.cpp b/rpcs3/Emu/Cell/lv2/sys_fs.cpp index c6cfd1cb78..41b7c78640 100644 --- a/rpcs3/Emu/Cell/lv2/sys_fs.cpp +++ b/rpcs3/Emu/Cell/lv2/sys_fs.cpp @@ -3018,7 +3018,7 @@ error_code sys_fs_mount(ppu_thread&, vm::cptr dev_name, vm::cptr fil const auto mp = lv2_fs_object::get_mp(vpath); bool success = true; - auto vfs_mount = [&](std::string mount_path) + auto vfs_mount = [&vpath = vpath, &filesystem = filesystem, &mp = mp](std::string mount_path) { const u64 file_size = filesystem == "CELL_FS_SIMPLEFS" ? mp->sector_size * mp->sector_count : 0; if (!mount_path.ends_with('/')) @@ -3081,7 +3081,7 @@ error_code sys_fs_unmount(ppu_thread&, vm::cptr path, s32 unk1, s32 unk2) const auto mp = lv2_fs_object::get_mp(vpath); bool success = true; - auto vfs_unmount = [&]() + auto vfs_unmount = [&vpath = vpath]() { const std::string local_path = vfs::get(vpath); if (fs::is_file(local_path))