mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Initial Implementation of the Taml, Asset and Modules systems.
Only has example and shape assets currently.
This commit is contained in:
parent
2044b2691e
commit
7a3b40a86d
123 changed files with 30435 additions and 181 deletions
|
|
@ -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" );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue