rpcsx/rpcs3/Emu/VFS.h

21 lines
532 B
C
Raw Normal View History

2016-04-14 00:59:00 +02:00
#pragma once
#include <vector>
#include <string>
#include <string_view>
2016-04-14 00:59:00 +02:00
namespace vfs
{
2016-06-02 17:16:01 +02:00
// Mount VFS device
bool mount(std::string_view vpath, std::string_view path);
2016-06-02 17:16:01 +02:00
// 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);
2016-04-14 00:59:00 +02:00
}