Merge pull request #24884 from Xrayez/fix-#24881

Fix broken encrypted scripts during export
This commit is contained in:
Rémi Verschelde 2019-01-10 13:12:33 +01:00 committed by GitHub
commit 5bf8bdc971
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ public:
if (script_mode == EditorExportPreset::MODE_SCRIPT_ENCRYPTED) {
String tmp_path = EditorSettings::get_singleton()->get_settings_dir().plus_file("tmp/script.gde");
String tmp_path = EditorSettings::get_singleton()->get_cache_dir().plus_file("script.gde");
FileAccess *fa = FileAccess::open(tmp_path, FileAccess::WRITE);
Vector<uint8_t> key;