Changeset 122 for branches/beta/castlib1/alexUtilities.ls
- Timestamp:
- 02/04/08 20:22:40 (4 years ago)
- File:
-
- 1 edited
-
branches/beta/castlib1/alexUtilities.ls (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/beta/castlib1/alexUtilities.ls
r93 r122 469 469 if mCheckForXtra(me, "BudAPI") = 1 then -- if buddy is present... 470 470 471 -- currently there is a bug in buddy beta with bafilelist, so we hack here...472 if mGetFloatVersionNumber(me, the productversion) < 11 then473 474 -- -- budApi version:475 retval = baFileList(folderpath, "*.*")476 477 else478 479 retval = []480 n = 1481 this = getnthfilenameinfolder(folderpath, n)482 repeat while length(this) > 0483 if length(getnthfilenameinfolder(folderpath & this, 1)) = 0 then retval.add(this)484 n = n + 1485 this = getnthfilenameinfolder(folderpath, n)486 end repeat487 488 end if471 -- -- currently there is a bug in buddy beta with bafilelist, so we hack here... 472 -- if mGetFloatVersionNumber(me, the productversion) < 11 then 473 474 -- -- budApi version: 475 retval = baFileList(folderpath, "*.*") 476 477 -- else 478 -- 479 -- retval = [] 480 -- n = 1 481 -- this = getnthfilenameinfolder(folderpath, n) 482 -- repeat while length(this) > 0 483 -- if length(getnthfilenameinfolder(folderpath & this, 1)) = 0 then retval.add(this) 484 -- n = n + 1 485 -- this = getnthfilenameinfolder(folderpath, n) 486 -- end repeat 487 -- 488 -- end if 489 489 490 490 … … 2323 2323 else 2324 2324 if returnList = 1 then 2325 return shell_cmd_list(cmd) 2325 if the platform contains "mac" then 2326 return shell_cmd_list(cmd) 2327 else 2328 return shell_cmd(cmd, void, 0, 1, void, void, void) 2329 end if 2326 2330 else 2327 return shell_cmd(cmd) 2331 if the platform contains "mac" then 2332 return shell_cmd(cmd) 2333 else 2334 return shell_cmd(cmd, void, 0, 0, void, void, void) 2335 end if 2328 2336 end if 2329 2337 end if
Note: See TracChangeset
for help on using the changeset viewer.
