Module:AocUtils: Difference between revisions

From ZeldaMods (Breath of the Wild)
Jump to navigation Jump to search
imported>Leoetlino
No edit summary
imported>Leoetlino
No edit summary
Line 16: Line 16:
   "^Voice/.+/Stream_Demo6.+/.+\.bfstm$",
   "^Voice/.+/Stream_Demo6.+/.+\.bfstm$",
   "^System/AocVersion\.txt$",
   "^System/AocVersion\.txt$",
  "^Pack/RemainsWind.pack$",
  "^Pack/RemainsElectric.pack$",
  "^Pack/RemainsWater.pack$",
  "^Pack/RemainsFire.pack$",
  "^Pack/FinalTrial.pack$",
}
}



Revision as of 18:56, 8 September 2018

Documentation for this module may be created at Module:AocUtils/doc

local pack = {}

aoc_resource_prefixes = {
  "^Terrain/A/AocField",
  "^UI/StaffRollDLC/",
  "^Map/MainField/",
  "^Map/MainFieldDungeon/",
  "^Map/AocField/",
  "^Physics/StaticCompound/AocField/",
  "^Physics/StaticCompound/MainFieldDungeon/",
  "^Movie/Demo6",
  "^Game/AocField/",
  "^NavMesh/AocField/",
  "^NavMesh/MainFieldDungeon/",
  "^Physics/TeraMeshRigidBody/AocField/",
  "^Voice/.+/Stream_Demo6.+/.+\.bfstm$",
  "^System/AocVersion\.txt$",
  "^Pack/RemainsWind.pack$",
  "^Pack/RemainsElectric.pack$",
  "^Pack/RemainsWater.pack$",
  "^Pack/RemainsFire.pack$",
  "^Pack/FinalTrial.pack$",
}

function should_use_aoc_path(path)
  for i, p in ipairs(aoc_resource_prefixes) do
    if string.find(path, p) then
      return true
    end
  end
  return false
end

return pack