strip numeric prefix from callstack filenames

This commit is contained in:
Kartik K. Agaram 2023-11-10 07:06:37 -08:00
parent b38f172ceb
commit 66ef316503

View File

@ -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