Просмотр исходного кода

Update utility.tscript

fix for languageMap paths and extension
Sir-Skurpsalot 1 месяц назад
Родитель
Сommit
6470b91d0a
1 измененных файлов с 5 добавлено и 5 удалено
  1. 5 5
      Templates/BaseGame/game/data/UI/scripts/utility.tscript

+ 5 - 5
Templates/BaseGame/game/data/UI/scripts/utility.tscript

@@ -182,11 +182,11 @@ function addLanguage(%langTable, %filename, %alias)
 {
 {
     // generate an .lso file and if a languageMap file does not exist, it as well
     // generate an .lso file and if a languageMap file does not exist, it as well
     %needLangMap = true;
     %needLangMap = true;
-    if(isFile("data/UI/langs/languageMap"))
-        %needLangMap = false;        
-        
-    CompileLanguage("data/UI/langs/"@ %filename @".txt", %needLangMap);    
-    %langTable.addLanguage("data/UI/langs/"@ %filename @".lso", %alias);
+    if(isFile("./langs/languageMap"))
+        %needLangMap = false;
+
+    CompileLanguage("./langs/"@ %filename @".tscript", %needLangMap);
+    %langTable.addLanguage("./langs/"@ %filename @".lso", %alias);
 }
 }
 
 
 function switchLanguage(%language) //use here the #n as it's the order of inclusion
 function switchLanguage(%language) //use here the #n as it's the order of inclusion