strip numeric prefix from callstack filenames
This commit is contained in:
parent
b38f172ceb
commit
66ef316503
3
live.lua
3
live.lua
|
@ -62,7 +62,8 @@ function live.load_files_so_far()
|
|||
--? print('loading', filename)
|
||||
local buf = love.filesystem.read(filename)
|
||||
assert(buf and buf ~= '')
|
||||
local status, err = live.eval(buf, filename)
|
||||
local _, definition_name = filename:match('^(%d+)-(.+)')
|
||||
local status, err = live.eval(buf, definition_name)
|
||||
if not status then
|
||||
error(err)
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user