File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 66using AGSUnpacker . Lib . Game ;
77using AGSUnpacker . Lib . Room ;
88using AGSUnpacker . Lib . Translation ;
9+ using AGSUnpacker . Shared . Utils ;
910
1011namespace AGSUnpacker . Lib . Utils
1112{
@@ -313,6 +314,7 @@ private static bool PushIntoLines(string line)
313314 return true ;
314315 }
315316
317+ // FIXME(adm244): generate AGSTranslation and use its reading\writting methods
316318 public static void WriteTranslationFile ( string filename , List < string > lines )
317319 {
318320 string filepath = Path . Combine ( Environment . CurrentDirectory , filename ) ;
@@ -322,7 +324,7 @@ public static void WriteTranslationFile(string filename, List<string> lines)
322324 {
323325 for ( int i = 0 ; i < lines . Count ; ++ i )
324326 {
325- writer . WriteLine ( lines [ i ] ) ;
327+ writer . WriteLine ( AGSStringUtils . Escape ( lines [ i ] ) ) ;
326328 if ( ! lines [ i ] . StartsWith ( "//" ) )
327329 {
328330 writer . WriteLine ( ) ;
You can’t perform that action at this time.
0 commit comments