Fix build issue

This commit is contained in:
2023-09-17 20:02:22 -05:00
parent 17383fe0b6
commit 6e94b21452
+2 -2
View File
@@ -776,9 +776,9 @@ namespace FlaxEditor.Windows
" // To learn more see scripting documentation.\n" +
" }\n" +
"}";
moduleText = Encoding.UTF8.GetString(Encoding.Default.GetBytes(moduleText));
var modulePath = Path.Combine(moduleFolderPath, $"{moduleName}.Build.cs");
await File.WriteAllTextAsync(modulePath, moduleText, new UTF8Encoding());
await File.WriteAllTextAsync(modulePath, moduleText);
Editor.Log($"Module created at {modulePath}");
// Get editor target and target files and add module