43
edits
(→Misc) |
|||
Line 414: | Line 414: | ||
Another thing: look at <code>engines/scumm/plugin.cpp</code> and the <code>searchFSNode()</code> function in there. It can be used to look for a given file(name) within a directory (ignoring case). It's a bit like getChild() only that it ignores the file name case, and is only used to check for the presence of a given file. This is a commonly used function, I think. Might be worse taking this into consideration for the FS API redesign [[User:Fingolfin|Fingolfin]] 21:41, 3 April 2007 (CEST) | Another thing: look at <code>engines/scumm/plugin.cpp</code> and the <code>searchFSNode()</code> function in there. It can be used to look for a given file(name) within a directory (ignoring case). It's a bit like getChild() only that it ignores the file name case, and is only used to check for the presence of a given file. This is a commonly used function, I think. Might be worse taking this into consideration for the FS API redesign [[User:Fingolfin|Fingolfin]] 21:41, 3 April 2007 (CEST) | ||
'''Update 08/07''': The lookupFile() function in fs.h/cpp can be used to supply this functionality. It uses wildcards for matching filenames. |
edits