Merge lines.love

[?]
Sep 11, 2022, 3:47 PM
G3PZV45B3FZTAJM3XO6TXNQISDNR5I66QLWB45NRDUFDXHRNQOXQC

Dependencies

  • [2] ODRCS4NC better dirname
  • [3] 57OGXVHZ Merge lines.love
  • [4] NFI42KGX more correct absolute path detection
  • [5] YTSPVDZH first successful pagedown test, first bug found by test
  • [6] QYIFOHW3 first test!
  • [7] VHQCNMAR several more modules
  • [8] CQYKYJJU remember window positions across restart/ctrl+e
  • [9] ZJOSQFN6 bugfix: path munging on Windows
  • [10] 3HIZXZI7 Merge lines.love
  • [11] KKMFQDR4 editing source code from within the app
  • [12] ZLEPKWDJ fork: capture frontend for a note-taking system

Change contents

  • edit in run.lua at line 152
    [5.182611][4.652:793](),[5.182611][4.652:793]()
    if is_relative_path(filename) then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
  • resolve order conflict in run.lua at line 152
    [5.184045]
  • edit in file.lua at line 193
    [5.18211]
    [5.530]
    function is_absolute_path(path)
    local os_path_separator = package.config:sub(1,1)
    if os_path_separator == '/' then
    -- POSIX systems permit backslashes in filenames
    return path:sub(1,1) == '/'
    elseif os_path_separator == '\\' then
    local f = path:sub(1,1)
    return f == '/' or f == '\\'
    else
    error('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')
    end
    end
  • edit in file.lua at line 207
    [5.531]
    [5.531]
    function is_relative_path(path)
    return not is_absolute_path(path)
    end
  • replacement in file.lua at line 212
    [5.554][2.14:53]()
    return path:match('.*[/\\]') or './'
    [5.554]
    [2.53]
    local os_path_separator = package.config:sub(1,1)
    if os_path_separator == '/' then
    -- POSIX systems permit backslashes in filenames
    return path:match('.*/') or './'
    elseif os_path_separator == '\\' then
    return path:match('.*[/\\]') or './'
    else
    error('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')
    end
  • edit in file.lua at line 229
    [5.627][5.627:675](),[5.18211][4.803:836]()
    return string.gsub(path, ".*/(.*)", "%1")
    end
    function is_absolute_path(path)
  • resolve order conflict in file.lua at line 229
    [5.627]
    [4.836]
  • replacement in file.lua at line 232
    [4.976][4.976:1008]()
    return path:sub(1,1) == '/'
    [4.976]
    [4.1008]
    return string.gsub(path, ".*/(.*)", "%1")
  • replacement in file.lua at line 234
    [4.1048][4.1048:1109]()
    local f = path:sub(1,1)
    return f == '/' or f == '\\'
    [4.1048]
    [4.1109]
    return string.gsub(path, ".*[/\\](.*)", "%1")
  • edit in file.lua at line 239
    [4.1223][4.1223:1296]()
    function is_relative_path(path)
    return not is_absolute_path(path)
    end