Skip to content

Commit

Permalink
Fix broken encrypted scripts during export
Browse files Browse the repository at this point in the history
Use temporary cache directory instead of editor settings directory
in order to resolve encrypted file access needed for encrypting scripts
on all platforms.
  • Loading branch information
Xrayez committed Jan 10, 2019
1 parent f7d2750 commit c0cc032
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ class EditorExportGDScript : public EditorExportPlugin {

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;
Expand Down

0 comments on commit c0cc032

Please sign in to comment.