-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCore.lua
36 lines (30 loc) · 1.35 KB
/
Core.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---@diagnostic disable: undefined-field, undefined-doc-name, undefined-doc-param
---------------------------------------------------------------------------------------------------------------------------------------
local MODULE_NAME = "Sku"
local ADDON_NAME = ...
Sku = {}
Sku.L = LibStub("AceLocale-3.0"):GetLocale("Sku", false)
Sku.Loc = Sku.L["locale"]
Sku.Locs = {"enUS", "deDE",}
---------------------------------------------------------------------------------------------------------------------------------------
Sku.AudiodataPath = ""
if Sku.Loc == "deDE" then
Sku.AudiodataPath = "SkuAudioData"
elseif Sku.Loc == "enUS" or Sku.Loc == "enGB" or Sku.Loc == "enAU" then
Sku.AudiodataPath = "SkuAudioData_en"
end
---------------------------------------------------------------------------------------------------------------------------------------
Sku.testMode = false
---------------------------------------------------------------------------------------------------------------------------------------
Sku.metric = {}
debugprofilestart()
function Sku:MetricPoint(aText)
Sku.metric[#Sku.metric + 1] = {aText, debugprofilestop()/1000}
end
---------------------------------------------------------------------------------------------------------------------------------------
Sku.debug = false
function dprint(...)
if Sku.debug == true then
print(...)
end
end