From 3e3160d7acb64bc6b847dd57345cd1b65972f6cf Mon Sep 17 00:00:00 2001 From: Nekotekina Date: Thu, 21 Sep 2017 14:34:09 +0300 Subject: [PATCH] Minor VFS fix --- rpcs3/Emu/System.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rpcs3/Emu/System.cpp b/rpcs3/Emu/System.cpp index 3d0c28abaf..72ede67be2 100644 --- a/rpcs3/Emu/System.cpp +++ b/rpcs3/Emu/System.cpp @@ -354,13 +354,14 @@ void Emulator::Load(bool add_only) const std::string home_dir = g_cfg.vfs.app_home; std::string bdvd_dir = g_cfg.vfs.dev_bdvd; + // Mount default relative path to non-existent directory + vfs::mount("", fs::get_config_dir() + "delete_this_dir/"); vfs::mount("dev_hdd0", fmt::replace_all(g_cfg.vfs.dev_hdd0, "$(EmulatorDir)", emu_dir)); vfs::mount("dev_hdd1", fmt::replace_all(g_cfg.vfs.dev_hdd1, "$(EmulatorDir)", emu_dir)); vfs::mount("dev_flash", fmt::replace_all(g_cfg.vfs.dev_flash, "$(EmulatorDir)", emu_dir)); vfs::mount("dev_usb", fmt::replace_all(g_cfg.vfs.dev_usb000, "$(EmulatorDir)", emu_dir)); vfs::mount("dev_usb000", fmt::replace_all(g_cfg.vfs.dev_usb000, "$(EmulatorDir)", emu_dir)); vfs::mount("app_home", home_dir.empty() ? elf_dir + '/' : fmt::replace_all(home_dir, "$(EmulatorDir)", emu_dir)); - vfs::mount("", elf_dir + '/'); // Detect boot location const std::string hdd0_game = vfs::get("/dev_hdd0/game/");