1.7.2 - fileDelete Doesn't Work
by Kalle Wik · in Torque Game Builder · 04/14/2008 (2:24 pm) · 1 replies
Specifically, fileDelete only appears to work on files in the game's path, not files in the user data folder (ex: C:\Documents and Settings\User\Application Data\Publisher\Game\saves\save1.txt).
This is a problem, because Torque will only write files to the user data folder; so without fileDelete working on that folder, there's no way to clean up any data (such as save files) created by the game.
I've checked the source code, which ultimately appears to call remove(name), but it's unclear why this is failing. Incidentally, isFile returns true on the files in question.
This is a problem, because Torque will only write files to the user data folder; so without fileDelete working on that folder, there's no way to clean up any data (such as save files) created by the game.
I've checked the source code, which ultimately appears to call remove(name), but it's unclear why this is failing. Incidentally, isFile returns true on the files in question.
yuri soussov