@@ -42,6 +42,7 @@ local function stop()
42
42
runningtestname = nil
43
43
callAll (" stop" )
44
44
end
45
+ local nopathmods = {level = true ,base = true ,core = true }
45
46
local function report ()
46
47
if runningtestname then stop () end
47
48
local moddumps = callAll (" dump" )
@@ -68,11 +69,15 @@ local function report()
68
69
filename = levelpath .basepath .. filename
69
70
end
70
71
end
71
- if modname == " level " then
72
+ if nopathmods [ modname ] then
72
73
-- we *still* can't identify level properly, so just give up...
73
- outlines [# outlines + 1 ] = string.format (" SF:__level__/%s\n " ,filename )
74
+ -- also, we can't create proper paths for core/base anyway
75
+ outlines [# outlines + 1 ] = string.format (" SF:__%s__/%s\n " ,modname ,filename )
76
+ elseif modname == nil then
77
+ -- something totally unrecognized?
78
+ outlines [# outlines + 1 ] = string.format (" SF:%s\n " ,file )
74
79
else
75
- -- we found it! This will be a correct path relative to the `mods` directory for anything but base/core .
80
+ -- we found it! This will be a path relative to the `mods` directory.
76
81
local modver = game .active_mods [modname ]
77
82
outlines [# outlines + 1 ] = string.format (" SF:./%s_%s/%s\n " ,modname ,modver ,filename )
78
83
end
0 commit comments