Reading files outside the Torque Directory?
by Nick Matthews · in Torque Game Engine · 05/16/2009 (9:07 am) · 5 replies
Is this possible? For example if I wanted to read a file in C:\Windows?
#2
05/16/2009 (12:55 pm)
I confess, this was kind of a trick question. There's a bug that allows you to read any file on the computer or write to any directory through script. I was wondering if anyone actually knew it existed, since it could be quite a problem if your game allows user-submitted content for example.
#3
05/16/2009 (1:19 pm)
well yea if you use the original main.cs and just call loadmods(directfilepath) it will load the files but the base directory will still be in the root of the exe
#4
05/16/2009 (1:30 pm)
I mean, it can read outside of mod paths too. If a game restricts mod path setting as a protective measure, you can bypass it.
#5
05/16/2009 (1:48 pm)
yea that is what i was saying :p you can load any file from any were as long as you specify the absolute file path.
Torque 3D Owner Scooby Brown