mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-10-13 14:30:48 +02:00
FileSystem: Fix DeleteDirectory() on Unix
This commit is contained in:
1 parent
3c41c286c7
commit
5555e334af
1 file changed
+1
-1
@@ -1841,7 +1841,7 @@ bool FileSystem::DeleteDirectory(const char* path)
|
||||
if (stat(path, &sysStatData) != 0 || !S_ISDIR(sysStatData.st_mode))
|
||||
return false;
|
||||
|
||||
return (unlink(path) == 0);
|
||||
return (rmdir(path) == 0);
|
||||
}
|
||||
|
||||
std::string FileSystem::GetProgramPath()
|
||||
|
||||
Reference in new issue
Block a user