Mono: Fix PCK assembly paths when exporting from Windows

Assembly paths were written to PCK files with backslash as path separator and PackedData only supports forward slash.
This would make exported games unable to find the assemblies.
This commit is contained in:
Ignacio Etcheverry 2019-09-07 02:19:21 +02:00
parent 4ee8ecd3ef
commit e439581198

View file

@ -16,7 +16,7 @@ namespace GodotTools
{
private void AddFile(string srcPath, string dstPath, bool remap = false)
{
AddFile(dstPath, File.ReadAllBytes(srcPath), remap);
AddFile(dstPath.Replace("\\", "/"), File.ReadAllBytes(srcPath), remap);
}
public override void _ExportFile(string path, string type, string[] features)