Module:AocUtils: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 32: Line 32:
end
end


function pack.should_use_aoc_file_device(path)
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.get_canonical_path(path)
function pack.get_aoc_canonical_path(frame)
   if pack.should_use_aoc_file_device(path) then
  path = frame.args['path']
   if should_use_aoc_file_device(path) then
   return "Aoc/0010/" + path
   return "Aoc/0010/" + path
   end
   end
Anonymous user

Navigation menu