------------------------------------------------------------------------------
| 252 | |
| 253 | //------------------------------------------------------------------------------ |
| 254 | DefineEngineMethod( CreatorTree, fileNameMatch, bool, (const char * world, const char * type, const char * filename), , "(string world, string type, string filename)") |
| 255 | { |
| 256 | // argv[2] - world short |
| 257 | // argv[3] - type short |
| 258 | // argv[4] - filename |
| 259 | |
| 260 | // interior filenames |
| 261 | // 0 - world short ('b', 'x', ...) |
| 262 | // 1-> - type short ('towr', 'bunk', ...) |
| 263 | U32 typeLen = dStrlen(type); |
| 264 | if(dStrlen(filename) < (typeLen + 1)) |
| 265 | return(false); |
| 266 | |
| 267 | // world |
| 268 | if(dToupper(filename[0]) != dToupper(world[0])) |
| 269 | return(false); |
| 270 | |
| 271 | return(!dStrnicmp(filename+1, type, typeLen)); |
| 272 | } |
| 273 | |
| 274 | DefineEngineMethod( CreatorTree, getSelected, S32, (), , "Return a handle to the currently selected item.") |
| 275 | { |
no test coverage detected