Game Development Community

dev|Pro Game Development Curriculum

fileDelete script function

by Martin Schultz · 10/08/2007 (10:25 am) · 1 comments

Download Code File

The attached zip contains a deleteFile function for TorqueScript. It was originally developed by Robert Blanchet Jr. in this thread and I packaged this one up in a fileDelete.cc file which can just be put in your engine directory.

Add the file, recompile your engine and you have a file delete function from script with validation if the file to be deleted is contained in the resource manager tree.

Credits go here to Robert Blanchet Jr. who wrote this function.

#1
10/12/2007 (10:10 pm)
Robert Banchet's thread was omitted from my 'deletefile' search results for some reason. So I'm really glad you submitted this, Martin. No hiccups and very helpful.

Steve