Gethe / InterfaceExport

Interface extraction tool for World of Warcraft
24 stars 7 forks source link

Hack in WDC4 "support" #2

Closed Meorawr closed 1 year ago

Meorawr commented 1 year ago

The luadbc library hasn't been updated for WDC4 support and both patch 10.1.0 and the upcoming 3.4.2 PTR are using the new database format. For every 10.1.0 build so far I've been having to do manual exports of the interface code and committing them to the UI source repo, which is starting to get a bit tiresome.

For the use cases required by the interface export tool, we can work around the lack of proper WDC4 support by just altering the magic header to claim the file is WDC3 instead. This is of course a hack, but in practice it works well enough for now and allows automated extraction of the interface to function once more. If luadbc is ever updated to support WDC4 the hack can be removed.