mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-02 21:11:25 +12:00
fs::file: add from_native_handle constructor
fs::get_*_dir tweaks for android
This commit is contained in:
parent
2c122a4401
commit
f3d988d8ab
2 changed files with 422 additions and 376 deletions
|
@ -251,6 +251,12 @@ namespace fs
|
|||
// Open file with specified mode
|
||||
explicit file(const std::string& path, bs_t<open_mode> mode = ::fs::read);
|
||||
|
||||
#ifdef _WIN32
|
||||
static file from_native_handle(void *handle);
|
||||
#else
|
||||
static file from_native_handle(int fd);
|
||||
#endif
|
||||
|
||||
// Open memory for read
|
||||
explicit file(const void* ptr, usz size);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue