forked from mirror/OpenTTD
Codechange: Introduce FioRemove() to remove files. (#12491)
New function FioRemove() handles OTTD2FS conversion, and uses std::filesystem::remove instead of unlink, all in one location.
This commit is contained in:
@@ -20,6 +20,7 @@ std::string FioFindFullPath(Subdirectory subdir, const std::string &filename);
|
||||
std::string FioGetDirectory(Searchpath sp, Subdirectory subdir);
|
||||
std::string FioFindDirectory(Subdirectory subdir);
|
||||
void FioCreateDirectory(const std::string &name);
|
||||
bool FioRemove(const std::string &filename);
|
||||
|
||||
const char *FiosGetScreenshotDir();
|
||||
|
||||
|
Reference in New Issue
Block a user