mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-23 00:23:46 +00:00
Fix case sensitivity and Platform::fileDelete
for linux and OSX. Correct a couple of warnings and errors preventing builds on linux.
This commit is contained in:
parent
45a19453ee
commit
4c17d4bb49
11 changed files with 24 additions and 14 deletions
|
|
@ -325,7 +325,7 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
|||
if (modType == TOUCH)
|
||||
return(utime(prefPathName, 0) != -1);
|
||||
else if (modType == DELETE)
|
||||
return (remove(prefPathName) != -1);
|
||||
return (remove(prefPathName) == 0);
|
||||
else
|
||||
AssertFatal(false, "Unknown File Mod type");
|
||||
return false;
|
||||
|
|
@ -1140,6 +1140,11 @@ bool dPathCopy(const char *fromName, const char *toName, bool nooverwrite)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool Platform::fileDelete(const char * name)
|
||||
{
|
||||
return ModifyFile(name, DELETE);
|
||||
}
|
||||
|
||||
static bool recurseDumpDirectories(const char *basePath, const char *subPath, Vector<StringTableEntry> &directoryVector, S32 currentDepth, S32 recurseDepth, bool noBasePath)
|
||||
{
|
||||
char Path[1024];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue