diff options
author | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-01-10 13:53:12 +0200 |
---|---|---|
committer | Andrii Doroshenko (Xrayez) <xrayez@gmail.com> | 2019-01-10 13:53:12 +0200 |
commit | c0cc0327996626fa759865c0db88016357022494 (patch) | |
tree | b493f08fdc0ca282402045ab88a9bdb08ec8521b /modules/gdscript | |
parent | f7d2750844546f5d8a2b664c132890f7ed466b35 (diff) |
Fix broken encrypted scripts during export
Use temporary cache directory instead of editor settings directory
in order to resolve encrypted file access needed for encrypting scripts
on all platforms.
Diffstat (limited to 'modules/gdscript')
-rw-r--r-- | modules/gdscript/register_types.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/register_types.cpp b/modules/gdscript/register_types.cpp index 9b55e99282..4eb31015c2 100644 --- a/modules/gdscript/register_types.cpp +++ b/modules/gdscript/register_types.cpp @@ -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; |