Created
February 14, 2020 14:39
-
-
Save Gethe/017d2bd7b1307f17dccd5dd7c32cc96c to your computer and use it in GitHub Desktop.
Read DB2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local WOWDIR = "E:/World of Warcraft" | |
local CDN = "http://us.patch.battle.net:1119/wow/#us" | |
local FILE = "DBFilesClient/ManifestInterfaceData.db2" | |
local casc, dbc = require("casc"), require("dbc") | |
local conf = { | |
base = WOWDIR .. "/data", | |
locale = casc.locale.US, | |
verifyHashes = false, | |
log = print | |
} | |
local _, _, _, version = casc.localbuild(WOWDIR .. "\\.build.info", casc.selectActiveBuild) | |
print(("Build: %s"):format(tostring(version))) | |
local handle = assert(casc.open(CDN, conf)) | |
local fileData = assert(handle:readFile(FILE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment