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

Ignore:
Timestamp:
12/15/08 13:00:15 (3 years ago)
Author:
alex
Message:

only copy dir and cst files now, when doing svn update movie binaries. added function to split path in order to not assume, that the first dot is the file extension seperator

Location:
trunk/lingosource/castlib2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib2/PseudoXMLPS.ls

    r208 r215  
    822822on mEscapeSpecialChars me, str 
    823823   
     824  val = mReplaceAllGT(me, val, "&", "&") 
    824825  val = mReplaceAllGT(me, string(str), "<", "&lt;") 
    825826  val = mReplaceAllGT(me, val, ">", "&gt;") 
    826   val = mReplaceAllGT(me, val, "&", "&amp;") 
    827827  val = mReplaceAllGT(me, val, "'", "&apos;") 
    828828  val = mReplaceAllGT(me, val, QUOTE, "&quot;") 
     
    838838  val = mReplaceAllGT(me, string(str), "&lt;", "<") 
    839839  val = mReplaceAllGT(me, val, "&gt;", ">") 
    840   val = mReplaceAllGT(me, val, "&amp;", "&") 
    841840  val = mReplaceAllGT(me, val, "&apos;", "'") 
    842841  val = mReplaceAllGT(me, val, "&quot;", QUOTE) 
     842  val = mReplaceAllGT(me, val, "&amp;", "&") 
    843843   
    844844  return val 
  • trunk/lingosource/castlib2/commonMovieScript.ls

    r196 r215  
    296296 
    297297on mGetFloatVersionNumber me, prodVers 
    298     offs = offset(".", prodVers) 
    299     if offs > 0 then 
    300       intVers = char 1 to offs of prodVers 
    301       delete char 1 to offs of prodVers 
    302     else 
    303       intVers = "" 
     298  offs = offset(".", prodVers) 
     299  if offs > 0 then 
     300    intVers = char 1 to offs of prodVers 
     301    delete char 1 to offs of prodVers 
     302  else 
     303    intVers = "" 
     304  end if 
     305  cnt = length(prodVers) 
     306  repeat with n = 1 to cnt 
     307    c = prodVers.char[n] 
     308    if integerP(integer(c)) then 
     309      put c after intVers 
     310    else if c <> "." then 
     311      exit repeat 
    304312    end if 
    305     cnt = length(prodVers) 
    306     repeat with n = 1 to cnt 
    307       c = prodVers.char[n] 
    308       if integerP(integer(c)) then 
    309         put c after intVers 
    310       else if c <> "." then 
    311         exit repeat 
    312       end if 
    313     end repeat 
    314      
     313  end repeat 
     314   
    315315  return value(intVers) 
    316316end 
     
    333333  if voidP(gPlatform) then 
    334334     
    335   isMac = the platform contains "Macintosh" 
    336   if isMac then 
    337        
    338     onX = value(char 1 of (the last word of (the environment).osversion)) <= 5 
     335    isMac = the platform contains "Macintosh" 
     336    if isMac then 
     337       
     338      onX = value(char 1 of (the last word of (the environment).osversion)) <= 5 
    339339      if onX then gPlatform = #osx 
    340340      else gPlatform = #os9 
     
    14131413  len = length(dateiname) 
    14141414  ext = "" 
    1415    
    1416   repeat with n = len down to 1 
     1415  until = max(1, len-8) -- let's pretend, that a file extension is not langer than 8 chars 
     1416   
     1417  repeat with n = len down to until 
    14171418    this = dateiname.char[n] 
    14181419    put this before ext 
Note: See TracChangeset for help on using the changeset viewer.