From 3c4d74d43174f4f938ee61dd75d2469e016ea646 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 16 Jan 2016 23:49:39 +0100 Subject: [PATCH] Fixed: Right directories --- .../tools/translation_tools/extract_new_sheet_names.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/ryzom/tools/translation_tools/extract_new_sheet_names.cpp b/code/ryzom/tools/translation_tools/extract_new_sheet_names.cpp index d230034b5..791f51b77 100644 --- a/code/ryzom/tools/translation_tools/extract_new_sheet_names.cpp +++ b/code/ryzom/tools/translation_tools/extract_new_sheet_names.cpp @@ -368,8 +368,8 @@ int extractNewSheetNames(int argc, char *argv[]) CPath::addSearchPath(NLMISC::expandEnvironmentVariables(pathNoRecurse.asString(i)), false, false); } - std::string leveldesignDataPath = NLMISC::expandEnvironmentVariables(leveldesignDataPathVar.asString()); - + std::string leveldesignDataPath = CPath::standardizePath(NLMISC::expandEnvironmentVariables(leveldesignDataPathVar.asString())); + // init ligo config once string ligoPath = CPath::lookup(NLMISC::expandEnvironmentVariables(ligoClassFile.asString()), true, true); LigoConfig.readPrimitiveClass(ligoPath.c_str(), false); @@ -395,7 +395,7 @@ int extractNewSheetNames(int argc, char *argv[]) { CSheetWordListBuilder builder; builder.SheetExt= sheetDefs[i*4+2]; - builder.SheetPath= CPath::standardizePath(leveldesignDataPath) + sheetDefs[i*4+3]; + builder.SheetPath= leveldesignDataPath + sheetDefs[i*4+3]; extractNewWords(sheetDefs[i*4+0], sheetDefs[i*4+1], builder); } @@ -403,7 +403,7 @@ int extractNewSheetNames(int argc, char *argv[]) { // build place names CRegionPrimWordListBuilder builder; - builder.PrimPath= leveldesignDataPath; + builder.PrimPath= leveldesignDataPath + "primitives"; builder.PrimFilter.push_back("region_*.primitive"); builder.PrimFilter.push_back("indoors_*.primitive"); extractNewWords("work/place_words_wk.txt", "placeId", builder);