mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-03 21:41:26 +12:00
Add fs::file::set_delete
This commit is contained in:
parent
a54d9c527f
commit
0736fc8b28
3 changed files with 16 additions and 6 deletions
|
@ -1229,6 +1229,15 @@ fs::native_handle fs::file::get_handle() const
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
bool fs::file::set_delete(bool autodelete) const
|
||||
{
|
||||
FILE_DISPOSITION_INFO disp;
|
||||
disp.DeleteFileW = autodelete;
|
||||
return SetFileInformationByHandle(get_handle(), FileDispositionInfo, &disp, sizeof(disp)) != 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
void fs::dir::xnull() const
|
||||
{
|
||||
fmt::throw_exception<std::logic_error>("fs::dir is null");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue