Magical fix for open project bug on linux
by Gary "ChunkyKs" Briggs · in Torque Game Builder · 11/28/2006 (12:22 pm) · 4 replies
Well, fifteen minutes and some diffs and other boredom gets you this:
Open platformX86UNIX/x86UNIXFileio.cc and edit line 1167 [the Platform::dumpDirectories function].
Where it currently says
Change that to:
Yay for simple recursion bugs. Just change the zero to a -1.
This will also fix [by my count] two other obscure similar bugs.
Gary (-;
Open platformX86UNIX/x86UNIXFileio.cc and edit line 1167 [the Platform::dumpDirectories function].
Where it currently says
bool retVal = recurseDumpDirectories(path, "", directoryVector, 0, depth, noBasePath);
Change that to:
bool retVal = recurseDumpDirectories(path, "", directoryVector, -1, depth, noBasePath);
Yay for simple recursion bugs. Just change the zero to a -1.
This will also fix [by my count] two other obscure similar bugs.
Gary (-;
#2
It actually took me a lot longer than 15 minutes to find, I just didn't wanna sound like an idiot taking most of an hour to find an off-by-one bug [but I have a REALLY good understanding now of what torque does when it's reading directories :-)]
Gary (-;
11/29/2006 (12:44 pm)
Heh. Very welcome.It actually took me a lot longer than 15 minutes to find, I just didn't wanna sound like an idiot taking most of an hour to find an off-by-one bug [but I have a REALLY good understanding now of what torque does when it's reading directories :-)]
Gary (-;
#3
11/29/2006 (1:16 pm)
Thanks Gary!
#4
12/03/2006 (6:33 pm)
Thanks
Torque Owner Christopher \"Pacula\" Corkum
Thanks muchly! :D