mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-04 05:51:27 +12:00
Implement fs::sync (Linux/POSIX)
This commit is contained in:
parent
014846cf31
commit
090a769bf6
3 changed files with 14 additions and 0 deletions
|
@ -946,6 +946,16 @@ bool fs::utime(const std::string& path, s64 atime, s64 mtime)
|
|||
#endif
|
||||
}
|
||||
|
||||
void fs::sync()
|
||||
{
|
||||
#ifdef _WIN32
|
||||
fs::g_tls_error = fs::error::unknown;
|
||||
#else
|
||||
::sync();
|
||||
fs::g_tls_error = fs::error::ok;
|
||||
#endif
|
||||
}
|
||||
|
||||
[[noreturn]] void fs::xnull(const src_loc& loc)
|
||||
{
|
||||
fmt::throw_exception("Null object.%s", loc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue