From e439581198de92e63661c4fe71108cb59cc2d999 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 7 Sep 2019 02:19:21 +0200 Subject: [PATCH] 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. --- modules/mono/editor/GodotTools/GodotTools/GodotSharpExport.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mono/editor/GodotTools/GodotTools/GodotSharpExport.cs b/modules/mono/editor/GodotTools/GodotTools/GodotSharpExport.cs index aefc51545ef..4f93ef85301 100644 --- a/modules/mono/editor/GodotTools/GodotTools/GodotSharpExport.cs +++ b/modules/mono/editor/GodotTools/GodotTools/GodotSharpExport.cs @@ -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)