diff options
author | megamage <none@none> | 2008-12-24 15:49:38 -0600 |
---|---|---|
committer | megamage <none@none> | 2008-12-24 15:49:38 -0600 |
commit | 808d79eb297c37a51f4c396152348e422c06d44f (patch) | |
tree | eb29d88c8515fe8f2068291126c21934b316220d /contrib/extractor/System.cpp | |
parent | e71697462e487f20812bee265cae0c8a8458b160 (diff) |
*Some clean up.
--HG--
branch : trunk
Diffstat (limited to 'contrib/extractor/System.cpp')
-rw-r--r-- | contrib/extractor/System.cpp | 15 |
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(); |