Farbflash projects: Imaging lingo table | 3-D scene list | Find all | Handler menu | Lingo message window

Ignore:
Timestamp:
04/01/08 10:13:07 (4 years ago)
Author:
alex
Message:

sometimes basysfolder('temp') returns an empty string ??

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/alexUtilities.ls

    r155 r159  
    25032503   
    25042504  if mCheckForXtra(me, "BudAPI") then 
     2505     
    25052506    if the platform contains "mac" then 
    25062507       
     
    25102511        resetUNames = 1 
    25112512      end if 
    2512       tempSrcHFSPath = basysfolder("temp") & theName 
    2513       if resetUNames = 1 then baReturnUnixNames(1) 
    2514       return tempSrcHFSPath 
     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 
    25152521       
    25162522    else 
    25172523      tmpfolder = baSysFolder("temp") 
    2518       return tmpfolder & theName 
    2519     end if 
     2524      if length(tmpfolder) > 0 then return tmpfolder & theName 
     2525    end if 
     2526     
     2527  end if 
     2528   
     2529  -- we only come here, if 
     2530  -- -- a.) buddyApi is NOT present or 
     2531  -- -- b.) basysfolder("temp") returns "" (for whatever reason...!) 
     2532  if the platform contains "mac" then 
     2533     
     2534    tempSrcPath = "/tmp/" & theName 
     2535     
     2536    return mConvertUnix2Hfs(me, tempSrcPath) 
    25202537     
    25212538  else 
    2522     if the platform contains "mac" then 
    2523        
    2524       tempSrcPath = "/tmp/" & theName 
    2525        
    2526       return mConvertUnix2Hfs(me, tempSrcPath) 
    2527        
    2528     else 
    2529       tmpfolder = "C:\WINDOWS\TEMP\" 
    2530       return tmpfolder & theName 
    2531     end if 
    2532      
    2533   end if 
     2539    tmpfolder = "C:\WINDOWS\TEMP\" 
     2540    return tmpfolder & theName 
     2541  end if 
     2542   
    25342543   
    25352544end 
Note: See TracChangeset for help on using the changeset viewer.