Changeset 184 for trunk/lingosource/castlib1/alexUtilities.ls
- Timestamp:
- 09/17/08 15:57:25 (4 years ago)
- File:
-
- 1 edited
-
trunk/lingosource/castlib1/alexUtilities.ls (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lingosource/castlib1/alexUtilities.ls
r180 r184 2502 2502 on mGetTempFilePath me, theName 2503 2503 2504 if mCheckForXtra(me, "BudAPI") then 2505 2506 if the platform contains "mac" then 2507 2508 resetUNames = 0 2509 if baSysFolder("prefs") starts "/" then 2510 baReturnUnixNames(0) 2511 resetUNames = 1 2512 end if 2513 tempSrcHFSPath = basysfolder("temp") 2514 if length(tempSrcHFSPath) > 0 then 2515 tempSrcHFSPath = tempSrcHFSPath & theName 2516 if resetUNames = 1 then baReturnUnixNames(1) 2517 return tempSrcHFSPath 2518 else 2519 if resetUNames = 1 then baReturnUnixNames(1) 2520 end if 2521 2522 else 2523 tmpfolder = baSysFolder("temp") 2524 if length(tmpfolder) > 0 then return tmpfolder & theName 2525 end if 2526 2527 end if 2504 -------------- for some reason, I don't know why, if I use this buddyApi temp folder 2505 -------------- files get screwed up with invalid unicode chars ???!!! 2506 -------------- so I resort to the old behavior just using /tmp 2507 2508 -- if mCheckForXtra(me, "BudAPI") then 2509 -- 2510 -- if the platform contains "mac" then 2511 -- 2512 -- resetUNames = 0 2513 -- if baSysFolder("prefs") starts "/" then 2514 -- baReturnUnixNames(0) 2515 -- resetUNames = 1 2516 -- end if 2517 -- tempSrcHFSPath = basysfolder("temp") 2518 -- if length(tempSrcHFSPath) > 0 then 2519 -- tempSrcHFSPath = tempSrcHFSPath & theName 2520 -- if resetUNames = 1 then baReturnUnixNames(1) 2521 -- return tempSrcHFSPath 2522 -- else 2523 -- if resetUNames = 1 then baReturnUnixNames(1) 2524 -- end if 2525 -- 2526 -- else 2527 -- tmpfolder = baSysFolder("temp") 2528 -- if length(tmpfolder) > 0 then return tmpfolder & theName 2529 -- end if 2530 -- 2531 -- end if 2528 2532 2529 2533 -- we only come here, if
Note: See TracChangeset
for help on using the changeset viewer.
