Skip to content

Commit

Permalink
Fix escaping characters when writing to disk.
Browse files Browse the repository at this point in the history
  • Loading branch information
NPBruce committed Apr 19, 2018
1 parent 18af6ae commit 49c0338
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 4 deletions.
Binary file modified unity/Assets/Plugins/FFGAppImport.dll
Binary file not shown.
Binary file modified unity/Assets/Plugins/FFGAppImport.dll.mdb
Binary file not shown.
2 changes: 1 addition & 1 deletion unity/Assets/Plugins/FFGAppImport.dll.mdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified unity/Assets/Plugins/FFGAppImport.pdb
Binary file not shown.
Binary file modified unity/Assets/Plugins/ValkyrieTools.dll
Binary file not shown.
Binary file modified unity/Assets/Plugins/ValkyrieTools.dll.mdb
Binary file not shown.
2 changes: 1 addition & 1 deletion unity/Assets/Plugins/ValkyrieTools.dll.mdb.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified unity/Assets/Plugins/ValkyrieTools.pdb
Binary file not shown.
2 changes: 1 addition & 1 deletion unity/Assets/Resources/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.7.0c
1.7.0d
8 changes: 7 additions & 1 deletion unity/Assets/Scripts/Content/DictionaryI18n.cs
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,13 @@ public Dictionary<string,List<string>> SerializeMultiple()
rawData[kv.Key].Add(".," + kv.Key);
foreach (KeyValuePair<string, string> entry in kv.Value)
{
rawData[kv.Key].Add(entry.Key + ',' + entry.Value.Replace("\n", "\\n"));
string entryDiskFormat = entry.Value.Replace("\r\n", "\n");
entryDiskFormat = entryDiskFormat.Replace("\r", "\n").Replace("\n", "\\n");
if (entryDiskFormat.Contains("\""))
{
entryDiskFormat = "\"" + entryDiskFormat.Replace("\"", "\"\"") + "\"";
}
rawData[kv.Key].Add(entry.Key + ',' + entryDiskFormat);
}
}

Expand Down

0 comments on commit 49c0338

Please sign in to comment.