Merge text.love

[?]
Oct 28, 2023, 8:02 AM
CAG7PP5YB4GZLDUIYLOESJIY5D5NMMGDQ5SCY6HQ7VF2TCK3JLQQC

Dependencies

Change contents

  • file deletion: run.lua (----------)run.lua (----------)
    [6.2][6.183867:183898](),[6.2][6.183867:183898](),[6.183898][6.178107:178107]()
    return App.current_dir..path
    end
    return path
    end
  • file deletion: log_browser.lua (----------)log_browser.lua (----------)
    [6.2][6.202684:202723](),[6.2][6.202684:202723](),[6.202723][6.191243:191243]()
    elseif line.data:match('%] u2518') then
    local section_name = line.data:match('] u2518%s*(.*)')
    if array.find(Section_stack, function(x) return x.name == section_name end) then
    while table.remove(Section_stack).name ~= section_name do
    --
    end
    line.section_end = true
    line.section_name = section_name
    line.data = nil
    end
    line.section_stack = table.shallowcopy(Section_stack)
    else
    -- string
    line.section_stack = table.shallowcopy(Section_stack)
    end
    else
    line.section_stack = {}
    end
    end
    end
    function table.shallowcopy(x)
    return {unpack(x)}
    local section_name = line.data:match('u250c%s*(.*)')
    table.insert(Section_stack, {name=section_name})
    line.section_begin = true
    line.section_name = section_name
    line.data = nil
    elseif line.data:match('%[ u250c') then
    line.section_stack = table.shallowcopy(Section_stack) -- as it is at the beginning
  • file deletion: log.lua (----------)log.lua (----------)
    [6.2][6.203577:203608](),[6.2][6.203577:203608](),[6.203608][6.202725:202725]()
    -- I'd like to use the unicode character \u{2518} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '] u2518 ' .. name)
    end
    function log_new(name, stack_frame_index)
    if stack_frame_index == nil then
    stack_frame_index = 4
    end
    log_end(name, stack_frame_index)
    log_start(name, stack_frame_index)
    end
    -- I'd like to use the unicode character \u{250c} here, but it doesn't work
    -- in OpenBSD.
    log(stack_frame_index, '[ u250c ' .. name)
    end
    function log_end(name, stack_frame_index)
    if stack_frame_index == nil then
    stack_frame_index = 3
    end
  • replacement in main.lua at line 200
    [6.2668][6.6352:6456](),[6.6352][6.6352:6456]()
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
    [6.2668]
    [6.6456]
    filename = app.current_dir..filename
  • edit in app.lua at line 463
    [6.16535][6.16535:16587](),[6.328][6.16535:16587](),[6.16535][6.16535:16587]()
    App.source_dir = love.filesystem.getSource()..'/'
  • resurrect zombie in app.lua at line 466
    [6.157][6.16587:16700](),[6.16587][6.16587:16700](),[6.16587][6.16587:16700]()
    App.current_dir = nativefs.getWorkingDirectory()..'/'
    App.save_dir = love.filesystem.getSaveDirectory()..'/'