Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 22, 2008, 10:25:45 PM (15 years ago)
Author:
rgrieder
Message:
  • Bugfix in tolua.c: Paths like "D:\" weren't considered absolute paths.
  • Bugfix in package.lua: Package file's relativity to working directory got forgotten.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/buildsystem/src/tolua/lua/package.lua

    r2239 r2248  
    250250    -- open input file, if any
    251251    if fn then
    252         local st, msg = readfrom(flags.f)
     252        local file
     253        if flags.f then
     254            if string.sub(flags.f, 1, 1) == '/' or string.sub(flags.f, 1, 1) == '\\' then
     255                file = flags.f
     256            else
     257                file = flags.w..'/'..flags.f
     258            end
     259        else
     260            file = flags.f
     261        end
     262        local st, msg = readfrom(file)
    253263        if not st then
    254             error('#'..msg)
     264            error('#'..msg..' path: '..flags.f)
    255265        end
    256266        local _; _, _, ext = strfind(fn,".*%.(.*)$")
Note: See TracChangeset for help on using the changeset viewer.