summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-01-10 13:53:12 +0200
committerAndrii Doroshenko (Xrayez) <xrayez@gmail.com>2019-01-10 13:53:12 +0200
commitc0cc0327996626fa759865c0db88016357022494 (patch)
treeb493f08fdc0ca282402045ab88a9bdb08ec8521b
parentf7d2750844546f5d8a2b664c132890f7ed466b35 (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.
-rw-r--r--modules/gdscript/register_types.cpp2
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;