Initial Implementation of the Taml, Asset and Modules systems.

Only has example and shape assets currently.
This commit is contained in:
Areloch 2015-10-13 15:19:36 -05:00
parent 2044b2691e
commit 7a3b40a86d
123 changed files with 30435 additions and 181 deletions

View file

@ -66,6 +66,17 @@ bool dFileDelete(const char * name)
return RemoveDirectory( buf );
}
bool Platform::fileDelete(const char * name)
{
if (!name || (dStrlen(name) >= MAX_PATH))
return(false);
//return(::DeleteFile(name));
if (Platform::isFile(name))
return(remove(name) == 0);
else
return ::RemoveDirectoryA(name) != 0;
}
bool dFileRename(const char *oldName, const char *newName)
{
AssertFatal( oldName != NULL && newName != NULL, "dFileRename - NULL file name" );