浏览代码

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.
Andrii Doroshenko (Xrayez) 6 年之前
父节点
当前提交
c0cc032799
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/register_types.cpp

+ 1 - 1
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;