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

Changeset 163 for trunk


Ignore:
Timestamp:
04/06/08 11:11:43 (4 years ago)
Author:
alex
Message:

now with version checking

Location:
trunk/lingosource
Files:
3 added
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/lingosource/castlib1/memberInfo.xml

    r159 r163  
    133133                <fname>custom_Utilities</fname> 
    134134        </custom_Utilities> 
     135        <subversion_version_field> 
     136                <scriptType>#field</scriptType> 
     137                <comments>http://www.farbflash.de/cgi-bin/versionChecker.pl?movieName=HandlerMenu_OSC</comments> 
     138                <memberName>subversion_version_field</memberName> 
     139                <fname>subversion_version_field</fname> 
     140        </subversion_version_field> 
    135141</Untitled> 
  • trunk/lingosource/castlib1/showHideHelp.ls

    r63 r163  
    1111  else 
    1212    sprite(me.spritenum).member = member("show_help") 
    13     (the activewindow).rect = rect(r.left, r.top, r.right, r.top + sprite(xscr().mGetkanal(#helpTextSprite)).rect.top) 
     13    (the activewindow).rect = rect(r.left, r.top, r.right, r.top + sprite(xscr().mGetkanal(#helpTextSprite)).rect.top - 10) 
    1414    if (label("withoutSearch") <> marker(0)) then go "withoutSearch" 
    1515  end if 
  • trunk/lingosource/castlib2/FileIOFunktionen.ls

    r74 r163  
    6363  if not(internetLink) then internetLink = (fname starts "www.") 
    6464  if the runmode contains "plugin" or internetLink then 
    65     scr = xscr().mGetInstance("NetLingoManagerPS__") 
    66     if ilk(scr) = #instance then 
    67       scr.mStartNetOP(paramList) 
    68     else 
     65    --    scr = xscr().mGetInstance("NetLingoManagerPS__") 
     66    --    if ilk(scr) = #instance then 
     67    --      scr.mStartNetOP(paramList) 
     68    --    else 
    6969      scr = xscr().mGetInstance("NetTextReaderPS") 
    7070    if ilk(scr) = #instance then 
     
    7575      call(paramList.getaprop(#handler), [paramList.getaprop(#target)], paramList) 
    7676    end if 
    77     end if 
     77    --    end if 
    7878  else 
    7979    paramList.setaprop(#theTextResult, mGetTextFromFile(me, paramList.getaprop(#theURL))) 
     
    385385      retval = fx.fx_FolderToList(folderpath) 
    386386      delim = the last char of the moviepath 
    387       if length(delim) < 1 then delim = the last char of the applicationpath 
     387      if length(delim) < 1 then 
     388        if not(the runmode contains "plug") then 
     389          delim = the last char of the applicationpath 
     390        end if 
     391      end if 
    388392      if length(delim) < 1 then delim = "/" 
    389393      repeat with n = count(retval) down to 1 
     
    426430      retval = fx.fx_FolderToList(folderpath) 
    427431      delim = the last char of the moviepath 
    428       if length(delim) < 1 then delim = the last char of the applicationpath 
     432      if length(delim) < 1 then 
     433        if not(the runmode contains "plug") then 
     434          delim = the last char of the applicationpath 
     435        end if 
     436      end if 
    429437      if length(delim) < 1 then delim = "/" 
    430438      repeat with n = count(retval) down to 1 
  • trunk/lingosource/castlib2/GetSetPrefs.ls

    r74 r163  
    177177   
    178178  if offset("<?xml", prefsText.line[1]) > 0 then 
    179     delete line 1 of prefsText 
    180      
    181     gPrefs = call(#mGetListFromXMLString, [mGetXScript(#PseudoXMLPS)], prefsText) 
    182     if ilk(gPrefs) = #proplist then globs[#gPrefs] = gPrefs 
     179--    delete line 1 of prefsText 
     180     
     181    gPrefs = call(#mGetListFromXMLString, mGetXScript(#PseudoXMLPS), prefsText) 
     182    if objectP(gPrefs) then globs[#gPrefs] = gPrefs 
    183183     
    184184  else 
     
    324324   
    325325  if useAleXML then 
    326     prefStr = call(#mGetXMLStringFromList, [mGetXScript(#PseudoXMLPS)], prefliste, prefsname) 
     326    prefStr = call(#mGetXMLStringFromList, mGetXScript(#PseudoXMLPS), prefliste, prefsname) 
    327327    --    put "<? alexml ?>"&RETURN before prefStr 
    328328    -- put "<?xml version="&QUOTE&"1.0"&QUOTE&"?>"&RETURN before prefStr 
     
    335335    repeat with n = 1 to anz 
    336336       
    337       if ilk(prefliste) = #proplist then prefStr = string(prefliste.getPropAt(n))&"À" 
     337      if objectP(prefliste) then prefStr = string(prefliste.getPropAt(n))&"À" 
    338338       
    339339      dieserWert = prefliste[n] 
  • trunk/lingosource/castlib2/PseudoXMLPS.ls

    r150 r163  
     1-- PseudoXMLPS 
     2----------------------------------- 
     3-- CREATED: 
     4-- 06.03.2008 
     5-- 
     6-- DESCRIPTION: 
    17-- Pseudo XML by Alex da Franca ©2003 
    28-- Convert a lingo list to a XML like string and back 
    39 
    4 -- alex am Freitag 21.April.2006 16:31:57 
    5 -------------------------------------------------------- 
    6 -- fixed a bug in "mBuildXMLString" many thanks to Olaf Schliesing for pointing this out 
    7  
    8 -- alex am 28.11.06 um 16:41:00 
    9 -------------------------------------------------------- 
    10 -- finally added a tag property, when writing xml, so the ilk of the object gets stored 
    11 -- so, when reading back the xml file, we do not convert a node by accident to a value 
    12 -- when a string evaluates to a value "by accident" 
    13  
    14 --------------------------------- 
    15 -- Scriptmarker: changes alex (04.04.2007 at 10:22 Uhr) // Scriptmarker 
    16 -- added  escaping of:  
    17 --                     & -> &amp; 
    18 --                     ' -> &apos; 
    19 --                     " -> &quot; 
    20 -- and vice versa. Until now I only escaped < and >, but ampersand, apostrophe and quote must also be escaped for proper xml 
    21  
    22 -- I als added "support" for the CData tag, which allows you to escape the whole contents of a node. 
    23 -- support is only done through ignoring esaping the special characters, wehn BUILDING the xml string. 
    24 -- So the user can decide on his own, which nodes s/he wants to be masked inside a CData section 
    25 -- (otherwise I'd have to mask EVERY string and try to unmask EVERY node. Now the user is on his own) 
    26  
    27 -- Example: 
     10-- 
     11-- REQUIRES: 
     12-- (Prerequisites) 
     13-- 
     14-- USAGE: 
    2815-- myList = [#stringWithInvalidChars:"A string with invalid chars like <> and & and ' and " & QUOTE] 
    2916-- myList[#stringWithInvalidChars] = "<![CDATA[" & myList[#stringWithInvalidChars] & "]]>" 
     
    4128--   end if 
    4229-- end repeat 
     30-- 
     31-- HISTORY: 
     32 
     33--              alex am Freitag 21.April.2006 16:31:57 
     34--              fixed a bug in "mBuildXMLString" many thanks to Olaf Schliesing for pointing this out 
     35-- 
     36--              alex am 28.11.06 um 16:41:00 
     37--              finally added a tag property, when writing xml, so the ilk of the object gets stored 
     38--              so, when reading back the xml file, we do not convert a node by accident to a value 
     39--              when a string evaluates to a value "by accident" 
     40-- 
     41--              Scriptmarker: changes alex (04.04.2007 at 10:22 Uhr) // Scriptmarker 
     42--              added  escaping of:  
     43--                                   & -> &amp; 
     44--                                   ' -> &apos; 
     45--                                   " -> &quot; 
     46--              and vice versa. Until now I only escaped < and >, but ampersand, apostrophe and quote must also be escaped for proper xml 
     47--              I als added "support" for the CData tag, which allows you to escape the whole contents of a node. 
     48--              support is only done through ignoring esaping the special characters, wehn BUILDING the xml string. 
     49--              So the user can decide on his own, which nodes s/he wants to be masked inside a CData section 
     50--              (otherwise I'd have to mask EVERY string and try to unmask EVERY node. Now the user is on his own) 
     51-- TODO: 
     52-- - 
     53----------------------------------- 
     54 
     55 
     56 
     57 
     58 
     59 
    4360 
    4461 
     
    112129-- xxxxxxxxxxxxxxxxxx Convert lingo list (also nested lists) to XML stylish string 
    113130 
    114 -- Parameters: 
     131on mGetXMLStringFromList me, listref, docName, strict, dontReplaceGT, withParams 
     132  ----------------------------------- 
     133  -- CREATED: 06.03.2008 
     134  -- ACTION: Convert lingo list (also nested lists) to XML stylish string 
     135  -- INPUT:  
    115136-- <listref> format: property list or linear list 
    116137-- <docName> format: #string; optional. if omitted "Untitled" is used for the XML document name 
    117 -- strict        => boolean; avoid spaces in tag names 
    118 -- dontReplaceGT => boolean; dont replace < and > 
    119 -- withParams    => boolean; write attribute in tag for the lingo ilk => bigger xml files and unfortunately it is slower to parse 
     138  --              <strict>        => boolean; avoid spaces in tag names 
     139  --              <dontReplaceGT> => boolean; dont replace < and > 
     140  --              <withParams>    => boolean; write attribute in tag for the lingo ilk => bigger xml files and unfortunately it is slower to parse 
    120141----------------------------- (I thought avoiding value() would help, but in this case the additional text parsing of the attributes tag slows down) 
    121  
    122 -- Example: 
    123 -- saveString = mGetXMLStringFromList(me, lingo_list, "documentName") 
    124  
    125 on mGetXMLStringFromList me, listref, docName, strict, dontReplaceGT, withParams 
     142  -- RETURNS: string 
     143  -- EXAMPLE: saveString = mGetXMLStringFromList(me, lingo_list, "documentName") 
     144  ----------------------------------- 
     145   
    126146  --  ms = the milliseconds 
    127147  if voidP(strict) then strict = 0 
     
    152172-- xxxxxxxxxxxxxxxxxx Convert XML stylish string to lingo list 
    153173 
    154 -- Parameters: 
     174 
     175on mGetListFromXMLString me, str, convertValues, withParams 
     176  ----------------------------------- 
     177  -- CREATED: 06.03.2008 
     178  -- ACTION: Description 
     179  -- INPUT: 
    155180-- <str> format: #string; split a string using <> and </> tags into lingo list 
    156181-- <convertValues> #integer 0=>don't convert (fast, all values are strings), 1 => convert only numbers (slower); 2 => try to convert all data, even colors (slow) 
    157  
    158 -- Example: 
    159 -- lingo_list = mGetListFromXMLString(me, saveString) 
    160  
    161 on mGetListFromXMLString me, str, convertValues, withParams 
     182  --          <withParams> : #boolean : parse parameters too. new, not very well tested 
     183  -- RETURNS: property list 
     184  -- EXAMPLE: lingo_list = mGetListFromXMLString(me, saveString) 
     185  -- CHANGES: implemented parameter parsing 
     186  ----------------------------------- 
    162187   
    163188  ms = the milliseconds 
     
    193218 
    194219-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
    195 -- MUCH FASTER than the above: Use the XML xtra to parse the string 
    196 -- BUT it must be a valid xml string, the above is slower but allows more malformed xml 
    197  
    198 -- Parameters: 
     220 
     221 
     222property pXmlxtraversion 
     223 
     224on mGetListFromXMLStringX me, str, convertValues, withParams 
     225  ----------------------------------- 
     226  -- CREATED: 06.03.2008 
     227  -- ACTION: Convert xml string to lingo list using the xmlparser xtra, if possible 
     228  --         MUCH FASTER than the above: Use the XML xtra to parse the string 
     229  --         BUT it must be a valid xml string, the above is slower but allows more malformed xml 
     230  -- INPUT:  
    199231-- <str> format: #string; split a string using <> and </> tags into lingo list 
    200232-- <convertValues> #integer 
     
    202234-- -- -- 1 => convert only integer() and float() (slower) 
    203235-- -- -- 2 => try to convert all data with value(), even parse for colors in hexstring format (slow) 
    204  
    205 -- Example: 
    206 -- lingo_list = mGetListFromXMLStringX(me, saveString) 
    207  
    208 property pXmlxtraversion 
    209  
    210 on mGetListFromXMLStringX me, str, convertValues, withParams 
     236  -- RETURNS: property list 
     237  -- EXAMPLE: lingo_list = mGetListFromXMLStringX(me, saveString) 
     238  -- CHANGES: resorts to the slower lingo function on xml parser error. So this handler can always be used. 
     239  ----------------------------------- 
    211240   
    212241  if ilk(str) <> #string then str = string(str) 
     
    289318   
    290319end 
     320 
     321-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     322on _______________READ_WRITE_EXTERNAL_FILES 
     323end 
     324-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     325 
     326on mReadXML_2_List me, thePath 
     327  ----------------------------------- 
     328  -- CREATED: 06.03.2008 
     329  -- ACTION: read external xml file to lingo list 
     330  -- INPUT: <thePath> : string ; optional pathname. if no pathname or "", then a file save dialog is shown 
     331  -- RETURNS: property list 
     332  ----------------------------------- 
     333   
     334  dertext = xscr(#FileIOFunktionen).mGetTextFromFile(thePath) 
     335  if length(dertext) > 0 then return xscr(#PseudoXMLPS).mGetListFromXMLStringX(dertext) 
     336  return [:] 
     337end 
     338 
     339-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     340 
     341on mSaveList_2_XML me, theList, thePath 
     342  ----------------------------------- 
     343  -- CREATED: 06.03.2008 
     344  -- ACTION: write liongo list to external xml file 
     345  -- INPUT:  
     346  --          <theList> : linear or property list 
     347  --          <thePath> : string ; optional pathname. if no pathname or "", then a file selection dialog is shown 
     348  -- RETURNS: full pathname of newly created file, if successful, otherwise 0 
     349  ----------------------------------- 
     350   
     351  if not(listP(theList)) then return 0 
     352  theResult = xscr(#PseudoXMLPS).mGetXMLStringFromList(theList) 
     353  return xscr(#FileIOFunktionen).mSaveToTextFile(theResult, thePath) 
     354end 
     355 
    291356 
    292357-- xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx 
     
    9401005         
    9411006        if ilk(retlist) = #proplist then 
    942           retlist.addProp(symbol(inputlist[n].getaprop(#name)), val) 
     1007        retlist.addProp(symbol(inputlist[n].getaprop(#name)), val) 
    9431008        else 
    9441009          retlist.add(val) 
     
    9941059                         
    9951060                      else 
    996                         call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Row "&n&" Cell "&m&" is not a property list") 
     1061                        call(#mPut, mGetXScript(), "mParseExcelXML: Row "&n&" Cell "&m&" is not a property list") 
    9971062                      end if -- if ilk(thisCell) = #proplist then 
    9981063                       
     
    10001065                     
    10011066                  else 
    1002                     call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Row "&n&" is not a list") 
     1067                    call(#mPut, mGetXScript(), "mParseExcelXML: Row "&n&" is not a list") 
    10031068                  end if -- if listP(currRow) then 
    10041069                   
     
    10061071                 
    10071072              else 
    1008                 call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Table not found") 
     1073                call(#mPut, mGetXScript(), "mParseExcelXML: Table not found") 
    10091074              end if -- if listP(xmlList) then 
    10101075               
    10111076            else 
    1012               call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Worksheet not found") 
     1077              call(#mPut, mGetXScript(), "mParseExcelXML: Worksheet not found") 
    10131078            end if -- if ilk(xmlList) = #proplist then 
    10141079             
    10151080          else 
    1016             call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Workbook not found") 
     1081            call(#mPut, mGetXScript(), "mParseExcelXML: Workbook not found") 
    10171082          end if -- if ilk(xmlList) = #proplist then 
    10181083           
    10191084        else 
    1020           call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: ROOT is not a property list") 
     1085          call(#mPut, mGetXScript(), "mParseExcelXML: ROOT is not a property list") 
    10211086        end if --if ilk(xmlList) = #proplist then 
    10221087         
    10231088      else 
    1024         call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Xml parser makelist() returned empty list") 
     1089        call(#mPut, mGetXScript(), "mParseExcelXML: Xml parser makelist() returned empty list") 
    10251090      end if -- if count(xmlList) > 0 then 
    10261091       
    10271092    else 
    1028       call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Xml parser makelist() failed") 
     1093      call(#mPut, mGetXScript(), "mParseExcelXML: Xml parser makelist() failed") 
    10291094    end if -- if listP(xmlList) then 
    10301095     
    10311096  else 
    1032     call(#mPut, [mGetXScript(#commonmoviescript)], "mParseExcelXML: Xml parser error: "&xmlp.getError()) 
     1097    call(#mPut, mGetXScript(), "mParseExcelXML: Xml parser error: "&xmlp.getError()) 
    10331098  end if -- if voidP(xmlp.getError()) then 
    10341099   
  • trunk/lingosource/castlib2/aleXtrasMovieScript.ls

    r150 r163  
    1818----------------------------------- 
    1919 
    20  
    2120property pAleXtras 
    2221 
    2322on mGetAleXtras 
    2423   
     24  alextras = (script "aleXtrasMovieScript").pAleXtras 
     25  if not(objectP(alextras)) then 
     26    alextras = new(script "commonMovieScript") 
     27    if ilk(alextras) <> #instance then 
     28      alert "HandlerMenu: Script" & QUOTE & "commonMovieScript" & QUOTE && "is missing. This movie can't proceed!" 
     29      halt 
     30    end if 
     31    (script "aleXtrasMovieScript").pAleXtras = alextras 
     32  end if 
     33  return alextras 
     34  ----------------------------- 
    2535   
    2636  alextras = (script "aleXtrasMovieScript").pAleXtras 
     
    6171  ----------------------------------- 
    6272   
     73  alextras = mGetAleXtras() 
     74  scrName = string(scrName) 
     75  if length(scrName) < 1 then return alextras 
     76  if scrName = "commonMovieScript" then return alextras 
     77   
     78  inst = alextras.mGetInstance(scrName, 1) 
     79  if ilk(inst) <> #instance then 
     80    if the runmode contains "aut" then 
     81      put "HandlerMenu: Script" && QUOTE & scrName & QUOTE && "is missing! This may cause unwanted behavior" 
     82    end if 
     83      inst = [] 
     84    end if 
     85  return inst 
     86  ---------------------- 
     87   
     88   
    6389  scrName = symbol(scrName) 
    6490  if ilk(scrName) <> #symbol then scrName = #commonmoviescript 
     
    99125  --         TODO: - 
    100126  ----------------------------------- 
     127  exit 
     128   
    101129   
    102130  mediaList = mGetAleXtras() 
     
    144172on mLoadXScript whichName 
    145173   
     174  exit 
     175   
     176   
    146177  whichName = string(whichName) 
    147178  if length(whichName) < 1 then return 0 
     
    168199 
    169200on mLoadScriptsFromLDM whichSprite 
     201   
     202  cms = xscr() 
     203  globs = cms.mGetGlobalList() 
     204  includes = globs[#gParentScriptInstances] 
     205  if not(objectP(includes)) then 
     206    includes = [:] 
     207    globs[#gParentScriptInstances] = includes 
     208  end if 
     209   
     210  tell sprite(whichSprite) 
     211    cl = the number of castlibs 
     212    repeat with n = 1 to cl 
     213      num = the number of members of castlib cl 
     214      repeat with m = 1 to num 
     215        mem = member(m,n) 
     216        if length(mem.name) > 0 then 
     217          if mem.type = #script then 
     218            includes.setaProp(mem.name, mem.script) 
     219          end if 
     220        end if 
     221      end repeat 
     222    end repeat 
     223  end tell 
     224   
     225  exit 
     226  ------------------------------ 
    170227   
    171228  mediaList = mGetAleXtras() 
     
    204261 
    205262on mListAleXtras 
     263  put "Handler mListAleXtras deprecated" 
     264  exit 
     265   
    206266  alextras = (script "aleXtrasMovieScript").pAleXtras 
    207267  if voidP(alextras) then mLoadScripts 
     
    253313  sel = the selection of castlib cl 
    254314   
    255   delim = the last char of the applicationpath 
     315   
     316  mp = the moviepath 
     317  if length(mp) < 1 then 
     318    if the runmode contains "plug" then 
     319      mp = "/" 
     320    else 
     321      mp = the applicationpath 
     322    end if 
     323  end if 
     324  delim = the last char of mp 
    256325   
    257326  the itemdelimiter = "/" 
  • trunk/lingosource/castlib2/commonMovieScript.ls

    r150 r163  
    9191    pGList = [:] 
    9292    scr = mGetXScript(#regisx) 
    93     if not voidP(scr) then 
     93    if not listP(scr) then 
    9494      if mCheckForXtra(me, "BudAPI") = 1 then call(#regisb, scr) 
    9595      if mCheckForXtra(me, "vList") = 1 then call(#regisv, scr) 
     
    496496on mGetThisMovieName me 
    497497  glob = mGetGlobalList(me) 
    498   return string(glob.getaprop(#movieIdentifier)) 
     498  str = string(glob.getaprop(#movieIdentifier)) 
     499  if length(str) > 0 then return str 
     500  str = mSplitPath(me, the moviename).basename 
     501  mSetThisMovieName me, str 
     502  return str 
    499503end 
    500504 
     
    11961200-- xxxxxxxxxxxxxxxxxx stored script instances: 
    11971201 
    1198 on mGetInstance me, instName 
     1202on mGetInstance me, instName, useRawNew 
     1203   
    11991204  theGlobs = mGetGlobalList(me) 
    12001205  gParentScriptInstances = theGlobs.getaprop(#gParentScriptInstances) 
     
    12091214   
    12101215  if mGetMemType(me, member(instName)) = #script then 
    1211     saveScr = new(script instName) 
     1216    if useRawNew = 1 then saveScr = rawnew(script instName) 
     1217    else saveScr = new(script instName) 
    12121218    gParentScriptInstances.setaprop(instName, saveScr) 
    12131219    return saveScr 
    12141220  end if 
    12151221   
    1216    
     1222  if saveScr = -1 then return 0 
     1223  gParentScriptInstances.setaprop(instName, -1) 
    12171224  inst = mGetXScript(symbol(instName)) 
    1218   if objectP(inst) then 
    1219     saveScr = new(inst) 
     1225  if not(listP(inst)) then 
     1226    if ilk(inst) = #instance then inst = inst.script 
     1227    if useRawNew = 1 then saveScr = rawnew(inst) 
     1228    else saveScr = new(inst) 
    12201229    gParentScriptInstances.setaprop(instName, saveScr) 
    12211230    return saveScr 
     
    13561365    delim =  the last char of the moviepath 
    13571366    if length(delim) < 1 then 
    1358       delim = the last char of the applicationpath 
     1367       
     1368      if the runmode contains "plug" then 
     1369        delim = "/" 
     1370      else 
     1371        delim = the last char of the applicationpath 
     1372      end if 
     1373       
     1374       
    13591375      if length(delim) < 1 then delim = "/" 
    13601376    end if 
     
    13961412    mp = the moviepath 
    13971413    if length(mp) < 1 then 
     1414      if the runmode contains "plug" then 
     1415        mp = "" 
     1416      else 
    13981417      mp = the applicationpath 
     1418      end if 
    13991419      if length(mp) < 1 then 
    14001420        mp = "@/" 
     
    14121432    delim =  the last char of the moviepath 
    14131433    if length(delim) < 1 then 
    1414       delim = the last char of the applicationpath 
     1434       
     1435      if the runmode contains "plug" then 
     1436        mp = "" 
     1437      else 
     1438        delim = the last char of the applicationpath 
     1439      end if 
     1440       
     1441       
    14151442      if length(delim) < 1 then delim = "/" 
    14161443    end if 
     
    14821509    delim = the last char of the moviepath 
    14831510    if length(delim) < 1 then 
    1484       delim = the last char of the applicationpath 
     1511      if not(the runmode contains "plug") then 
     1512        delim = the last char of the applicationpath 
     1513      end if 
    14851514      if length(delim) < 1 then delim = "/" 
    14861515    end if 
  • trunk/lingosource/castlib2/memberInfo.xml

    r159 r163  
    4343                <fname>SpriteNameBeaver</fname> 
    4444        </SpriteNameBeaver> 
     45        <subversionVersionChecker> 
     46                <scriptType>#score</scriptType> 
     47                <comments>~/Documents/Scripts/lingo/subversionVersionChecker.ls</comments> 
     48                <memberName>subversionVersionChecker</memberName> 
     49                <fname>subversionVersionChecker</fname> 
     50        </subversionVersionChecker> 
    4551</Untitled> 
Note: See TracChangeset for help on using the changeset viewer.