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.
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.

Torque Owner Steve-o
Default Studio Name
Steve