[ZoneBuilder] Use language dir for techset generation

This commit is contained in:
momo5502 2017-05-29 19:52:37 +02:00
parent d6b6cfe06b
commit e13a8045a2

View File

@ -1204,10 +1204,10 @@ namespace Components
std::string csvStr;
auto fileList = Utils::IO::ListFiles("zone/english");
auto fileList = Utils::IO::ListFiles(Utils::String::VA("zone/%s", Game::Win_GetLanguage()));
for (auto zone : fileList)
{
Utils::String::Replace(zone, "zone/english/", "");
Utils::String::Replace(zone, Utils::String::VA("zone/%s/", Game::Win_GetLanguage()), "");
Utils::String::Replace(zone, ".ff", "");
if (Utils::IO::FileExists("zone/techsets/" + zone + "_techsets.ff"))