Jump to content

[Patch] AD-extractor dbc files number output


Recommended Posts

Posted

Small patch, just print to output wright number of dbc files.

For master branch, commit [d2ae28b9165a17cfa6047c2be496081dda2e8bba].

diff --git a/contrib/extractor/System.cpp b/contrib/extractor/System.cpp
index 3a9650c..b0cff97 100644
--- a/contrib/extractor/System.cpp
+++ b/contrib/extractor/System.cpp
@@ -974,10 +974,11 @@ void ExtractDBCFiles(int locale, bool basicLocale)
        string filename = path;
        filename += (iter->c_str() + strlen("DBFilesClient\\\\"));

-        if(ExtractFile(iter->c_str(), filename))
+        if (ExtractFile(iter->c_str(), filename)) {
            ++count;
+        }
    }
-    printf("Extracted %u DBC files\\n\\n", count);
+    printf("Extracted %u DBC files\\n\\n", count + 1);
}

void LoadLocaleMPQFiles(int const locale) 

Posted

why count+1 o.O Ok, also extracted build info file but it's not .dbc file...

Maybe possible add additinal string part for it but not in just incrementing counters.

Also mangos code style against use { in and of code line and recomment place it at same indenet as closing }

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use