Module:AocUtils: Difference between revisions
no edit summary
imported>Leoetlino No edit summary |
imported>Leoetlino No edit summary |
||
Line 32: | Line 32: | ||
end | end | ||
function | function should_use_aoc_file_device(path) | ||
for i, p in ipairs(aoc_resource_prefixes) do | for i, p in ipairs(aoc_resource_prefixes) do | ||
if string.find(path, p) then | if string.find(path, p) then | ||
Line 53: | Line 53: | ||
end | end | ||
function pack. | function pack.get_aoc_canonical_path(frame) | ||
if | path = frame.args['path'] | ||
if should_use_aoc_file_device(path) then | |||
return "Aoc/0010/" + path | return "Aoc/0010/" + path | ||
end | end |