mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-14 10:48:36 +12:00
Remove fs::file::set_delete
Since it's Windows-only functionality with limited use.
This commit is contained in:
parent
d6087978b5
commit
742bd633d8
4 changed files with 13 additions and 17 deletions
|
@ -6,6 +6,10 @@
|
|||
#include "Utilities/mutex.h"
|
||||
#include "Utilities/StrUtil.h"
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
|
||||
struct vfs_directory
|
||||
{
|
||||
// Real path (empty if root or not exists)
|
||||
|
@ -599,7 +603,9 @@ bool vfs::host::unlink(const std::string& path, const std::string& dev_root)
|
|||
if (fs::file f{dummy, fs::read + fs::write})
|
||||
{
|
||||
// Set to delete on close on last handle
|
||||
f.set_delete();
|
||||
FILE_DISPOSITION_INFO disp;
|
||||
disp.DeleteFileW = true;
|
||||
SetFileInformationByHandle(f.get_handle(), FileDispositionInfo, &disp, sizeof(disp));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue