Add translation directory to pipeline setup

This commit is contained in:
kaetemi 2014-02-08 00:03:56 +01:00
parent 4315a2d197
commit 4009f03f4c
2 changed files with 8 additions and 0 deletions

View file

@ -147,6 +147,10 @@ if not args.noconf:
LeveldesignDataCommonDirectory
except NameError:
LeveldesignDataCommonDirectory = "L:/data_common"
try:
TranslationDirectory
except NameError:
TranslationDirectory = "L:/translation"
try:
WorldEditorFilesDirectory
except NameError:
@ -204,6 +208,7 @@ if not args.noconf:
GamedevDirectory = askVar(log, "Gamedev Directory", GamedevDirectory).replace("\\", "/")
DataShardDirectory = askVar(log, "Data Shard Directory", DataShardDirectory).replace("\\", "/")
DataCommonDirectory = askVar(log, "Data Common Directory", DataCommonDirectory).replace("\\", "/")
TranslationDirectory = askVar(log, "Translation Directory", TranslationDirectory).replace("\\", "/")
LeveldesignDataShardDirectory = askVar(log, "Leveldesign Data Shard Directory", LeveldesignDataShardDirectory).replace("\\", "/")
LeveldesignDataCommonDirectory = askVar(log, "Leveldesign Data Common Directory", LeveldesignDataCommonDirectory).replace("\\", "/")
WorldEditorFilesDirectory = askVar(log, "World Editor Files Directory", WorldEditorFilesDirectory).replace("\\", "/")
@ -287,6 +292,7 @@ if not args.noconf:
sf.write("PrimitivesDirectory = \"" + str(PrimitivesDirectory) + "\"\n")
sf.write("LeveldesignDataCommonDirectory = \"" + str(LeveldesignDataCommonDirectory) + "\"\n")
sf.write("LeveldesignDataShardDirectory = \"" + str(LeveldesignDataShardDirectory) + "\"\n")
sf.write("TranslationDirectory = \"" + str(TranslationDirectory) + "\"\n")
sf.write("\n")
sf.write("# Misc data directories\n")
sf.write("GamedevDirectory = \"" + str(GamedevDirectory) + "\"\n")
@ -391,6 +397,7 @@ if not args.noverify:
findTool(log, ToolDirectories, AiBuildWmapTool, ToolSuffix)
findTool(log, ToolDirectories, TgaCutTool, ToolSuffix)
findTool(log, ToolDirectories, PatchGenTool, ToolSuffix)
findTool(log, ToolDirectories, TranslationToolsTool, ToolSuffix)
log.close()
if os.path.isfile("0_setup.log"):

View file

@ -89,3 +89,4 @@ BnpMakeTool = "bnp_make"
AiBuildWmapTool = "ai_build_wmap"
TgaCutTool = "tga_cut"
PatchGenTool = "patch_gen"
TranslationToolsTool = "translation_tools"