rpcsx/rpcs3/Emu/VFS.h
Nekotekina e8b5555630 Rewrite vfs::get and vfs::mount
Preprocess . and .. correctly
Don't use recursive locking
Also use std::string_view
Fix format system for std::string and std::string_view
Fix fmt::merge for std::string_view
2018-09-15 17:09:56 +03:00

21 lines
532 B
C++

#pragma once
#include <vector>
#include <string>
#include <string_view>
namespace vfs
{
// Mount VFS device
bool mount(std::string_view vpath, std::string_view path);
// Convert VFS path to fs path, optionally listing directories mounted in it
std::string get(std::string_view vpath, std::vector<std::string>* out_dir = nullptr);
// Escape VFS path by replacing non-portable characters with surrogates
std::string escape(std::string_view path);
// Invert escape operation
std::string unescape(std::string_view path);
}