local LSM = LibStub("LibSharedMedia-3.0")

local soundPack = LibStub("LibMatic-SoundPack-1.0", true)
if soundPack then
    soundPack:Register("CritMatic")
end

local SOUND_DIR = "Interface\\AddOns\\CritMatic\\Media\\Sounds\\"
local critmaticSounds = {
    { name = "CritMatic Crit", file = "crit.ogg" },
    { name = "CritMatic Crit Olie", file = "crit-olie.ogg" },
    { name = "CritMatic Crit Fo Shizzle", file = "crit-fo-shizzle.ogg" },
    { name = "CritMatic Crit Heal", file = "crit-heal.ogg" },
    { name = "CritMatic Crit Heal Olie", file = "crit-heal-olie.ogg" },
    { name = "CritMatic Crit Heal Fo Shizzle", file = "crit-heal-fo-shizzle.ogg" },
    { name = "CritMatic Heal", file = "heal.ogg" },
    { name = "CritMatic Heal Olie", file = "heal-olie.ogg" },
    { name = "CritMatic Heal Fo Shizzle", file = "heal-fo-shizzle.ogg" },
    { name = "CritMatic Hit", file = "hit.ogg" },
    { name = "CritMatic Hit Olie", file = "hit-olie.ogg" },
    { name = "CritMatic Hit Fo Shizzle", file = "hit-fo-shizzle.ogg" },
}
for _, s in ipairs(critmaticSounds) do
    LSM:Register("sound", s.name, SOUND_DIR .. s.file)
end

LSM:Register("font", "Anton", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Anton.ttf")
LSM:Register("font", "Architects Daughter", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\ArchitectsDaughter.ttf")
LSM:Register("font", "Coming Soon", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\ComingSoon.ttf")
LSM:Register("font", "Hideout 8-Bit", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Hideout-8-Bit.ttf")
LSM:Register("font", "Hideout 8-Bit-AA", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Hideout-8-Bit-AA.ttf")
LSM:Register("font", "Oswald Bold", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Oswald-Bold.ttf")
LSM:Register("font", "Pixeloid Mono", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\PixeloidMono.ttf")
LSM:Register("font", "Silk Screen", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Silkscreen.ttf")
LSM:Register("font", "Rubik Mono One", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\RubikMonoOne.ttf")
LSM:Register("font", "Metal Mania", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\MetalMania.ttf")
LSM:Register("font", "Creepster", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Creepster.ttf")
LSM:Register("font", "Chewy", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\Chewy.ttf")
LSM:Register("font", "Black Ops One", "Interface\\AddOns\\CritMatic\\Media\\Fonts\\BlackOpsOne.ttf")
LSM:Register("font", "Level Up", "Interface\\AddOns\\CritMatic\\Libs\\LibMatic\\Fonts\\Levelup.ttf")
