FileSystem: Fix DeleteDirectory() on Unix

This commit is contained in:
Stenzek 2023-09-23 22:15:11 +10:00
parent 5c099d55da
commit 4d2c544ca9
1 changed files with 1 additions and 1 deletions

View File

@ -1837,7 +1837,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()