Fix #14620: Use full file path when deleting files. (#14623)

This commit is contained in:
Kuhnovic
2025-09-17 21:43:22 +02:00
committed by dP
parent 8929803b7d
commit 385547642a
3 changed files with 13 additions and 15 deletions

View File

@@ -230,16 +230,6 @@ std::string FiosMakeHeightmapName(std::string_view name)
return FiosMakeFilename(_fios_path, name, fmt::format(".{}", GetCurrentScreenshotExtension()));
}
/**
* Delete a file.
* @param name Filename to delete.
* @return Whether the file deletion was successful.
*/
bool FiosDelete(std::string_view name)
{
return FioRemove(FiosMakeSavegameName(name));
}
typedef std::tuple<FiosType, std::string> FiosGetTypeAndNameProc(SaveLoadOperation fop, std::string_view filename, std::string_view ext);
/**