Fix vmap extractor for 15595. Now uses StormLib. Haven't checked if it works on nix though, will do later.

This commit is contained in:
LordJZ authored and Shauren committed 2012-07-03 17:16:32 +02:00
1 parent c26b5a8c1f
commit 568fba707c
18 files changed
+437 -335

No files matched your search

+12 -4
View File
@@ -85,7 +85,7 @@ char const* CONF_mpq_list[]=
"expansion3.MPQ",
};
uint32 const Builds[] = {13164, 13205, 13287, 13329, 13596, 13623, 13914, 14007, 14333, 14480, 14545, 15005, 15050, 15211, 0};
uint32 const Builds[] = {13164, 13205, 13287, 13329, 13596, 13623, 13914, 14007, 14333, 14480, 14545, 15005, 15050, 15211, 15354, 15595, 0};
#define LAST_DBC_IN_DATA_BUILD 13623 // after this build mpqs with dbc are back to locale folder
char* const Locales[] = {"enGB", "enUS", "deDE", "esES", "frFR", "koKR", "zhCN", "zhTW", "enCN", "enTW", "esMX", "ruRU"};
@@ -1150,8 +1150,15 @@ void LoadCommonMPQFiles(uint32 build)
_stprintf(filename, _T("%s/Data/%s"), input_path, CONF_mpq_list[i]);
if (!SFileOpenPatchArchive(WorldMpq, filename, "", 0))
{
if (GetLastError() != ERROR_PATH_NOT_FOUND)
_tprintf(_T("Cannot open archive %s\n"), filename);
else
_tprintf(_T("Not found %s\n"), filename);
}
else
_tprintf(_T("Loaded %s\n"), filename);
}
char const* prefix = NULL;
@@ -1173,8 +1180,12 @@ void LoadCommonMPQFiles(uint32 build)
{
if (GetLastError() != ERROR_PATH_NOT_FOUND)
_tprintf(_T("Cannot open patch archive %s\n"), filename);
else
_tprintf(_T("Not found %s\n"), filename);
continue;
}
else
_tprintf(_T("Loaded %s\n"), filename);
}
}
@@ -1191,9 +1202,6 @@ int main(int argc, char * arg[])
for (int i = 0; i < LOCALES_COUNT; ++i)
{
TCHAR tmp1[512];
_stprintf(tmp1, _T("%s/Data/%s/locale-%s.MPQ"), input_path, Locales[i], Locales[i]);
//Open MPQs
if (!LoadLocaleMPQFile(i))
{