diff --git a/README.md b/README.md index 67a3f4ca..482750a8 100644 --- a/README.md +++ b/README.md @@ -16,7 +16,7 @@ It is also possible to replace the ECMAScript engine like V8 or SpiderMonkey but ### Compile * Clone the source code of [godot](https://github.com/godotengine/godot) * Clone this module and put it into `godot/modules/` and make sure the folder name of this module is `ECMAScript` -* [Recompile godot engine](https://docs.godotengine.org/en/3.0/development/compiling/index.html) +* [Recompile godot engine](https://docs.godotengine.org/en/3.2/development/compiling/index.html) (Only MinGW is supported on Windows for now!) ### Usage diff --git a/SCsub b/SCsub index 57c99a03..e077bb84 100644 --- a/SCsub +++ b/SCsub @@ -58,10 +58,10 @@ sources = [ ] if env['tools']: - with open("tools/godot.d.ts.gen.cpp", "w") as f: + with open("tools/godot.d.ts.gen.cpp", "w", encoding="utf-8") as f: text = '/* THIS FILE IS GENERATED DO NOT EDIT */\n#include "editor_tools.h"\nString ECMAScriptPlugin::BUILTIN_DECLEARATION_TEXT = \n${source};'; f.write(text.replace('${source}', dump_text_file_to_cpp("misc/godot.d.ts"))) - with open("tools/tsconfig.json.gen.cpp", "w") as f: + with open("tools/tsconfig.json.gen.cpp", "w", encoding="utf-8") as f: text = '/* THIS FILE IS GENERATED DO NOT EDIT */\n#include "editor_tools.h"\nString ECMAScriptPlugin::TSCONFIG_CONTENT = \n${source};' f.write(text.replace('${source}', dump_text_file_to_cpp("misc/tsconfig.json"))) env_module.add_source_files(env.modules_sources, 'tools/*.cpp')