aboutsummaryrefslogtreecommitdiff
path: root/contrib/extractor/System.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/extractor/System.cpp')
-rw-r--r--contrib/extractor/System.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/contrib/extractor/System.cpp b/contrib/extractor/System.cpp
index 1753f40801a..85d06369f24 100644
--- a/contrib/extractor/System.cpp
+++ b/contrib/extractor/System.cpp
@@ -278,7 +278,7 @@ void LoadLocaleMPQFiles(int const locale)
new MPQArchive(filename);
}
}
-
+
void LoadCommonMPQFiles()
{
char filename[512];
@@ -289,6 +289,7 @@ void LoadCommonMPQFiles()
new MPQArchive(filename);
sprintf(filename,"%s/Data/expansion.MPQ", input_path);
new MPQArchive(filename);
+
for(int i = 1; i < 5; ++i)
{
char ext[3] = "";
@@ -315,7 +316,7 @@ int main(int argc, char * arg[])
HandleArgs(argc, arg);
int FirstLocale = -1;
-
+
for (int i = 0; i < LANG_COUNT; i++)
{
char tmp1[512];
@@ -323,10 +324,10 @@ int main(int argc, char * arg[])
if (FileExists(tmp1))
{
printf("Detected locale: %s\n", langs[i]);
-
+
//Open MPQs
LoadLocaleMPQFiles(i);
-
+
if((extract & EXTRACT_DBC) == 0)
{
FirstLocale = i;
@@ -352,15 +353,15 @@ int main(int argc, char * arg[])
printf("No locales detected\n");
return 0;
}
-
+
if (extract & EXTRACT_MAP)
{
printf("Using locale: %s\n", langs[FirstLocale]);
-
+
// Open MPQs
LoadLocaleMPQFiles(FirstLocale);
LoadCommonMPQFiles();
-
+
// Extract maps
ExtractMapsFromMpq();