Tools/Extractors

* Modified dbc list to include all gametables found in GameTables.dbc, in case they exist...
* Extractor always tries to extract both dbc and db2 extensions
This commit is contained in:
Shauren
2015-01-17 20:35:16 +01:00
parent a910858ee5
commit caa2be3ae9
2 changed files with 568 additions and 508 deletions
+3 -2
View File
@@ -1144,9 +1144,10 @@ void ExtractDBFilesClient(int l)
HANDLE dbcFile;
while (fileName)
{
if (CascOpenFile(CascStorage, fileName, 1 << l, 0, &dbcFile))
std::string filename = fileName;
if (CascOpenFile(CascStorage, (filename = (filename + ".db2")).c_str(), 1 << l, 0, &dbcFile) ||
CascOpenFile(CascStorage, (filename = (filename.substr(0, filename.length() - 4) + ".dbc")).c_str(), 1 << l, 0, &dbcFile))
{
std::string filename = fileName;
filename = outputPath + filename.substr(filename.rfind('\\') + 1);
if (!FileExists(filename.c_str()))