From 2e996f2e118397042bfb8998b171b59362dd9801 Mon Sep 17 00:00:00 2001 From: Nitwel Date: Fri, 3 May 2024 12:45:17 +0200 Subject: [PATCH] small changes --- app/assets/design.afdesign | 4 ++-- app/lib/stores/store.gd | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app/assets/design.afdesign b/app/assets/design.afdesign index c636778..c83e41b 100644 --- a/app/assets/design.afdesign +++ b/app/assets/design.afdesign @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:b117dc5a7537a60ff341010636802131c9aa3b80982130e63d5d94902c002d07 -size 13505995 +oid sha256:2b7e5cb00328c9b9d8076a826c368d012628edadf108d078167620945c4742b0 +size 32849426 diff --git a/app/lib/stores/store.gd b/app/lib/stores/store.gd index a85e1a0..ff90286 100644 --- a/app/lib/stores/store.gd +++ b/app/lib/stores/store.gd @@ -66,6 +66,22 @@ func save_local(path=_save_path): var json_text = JSON.stringify(data) save_file.store_line(json_text) + # var path2 = OS.get_system_dir(OS.SYSTEM_DIR_DOCUMENTS, false) + "/immersive-home/" + path.split("/")[- 1] + # path2 = path2.replace("/Android/data/org.godotengine.immersivehome/files", "") + + # print(path2) + + # if not FileAccess.file_exists(path2): + # var dir = path2.get_base_dir() + # DirAccess.open("user://").make_dir_recursive(dir) + + # var save_file2 = FileAccess.open(path2, FileAccess.WRITE) + + # if save_file2 == null: + # return false + + # save_file2.store_line(json_text) + on_saved.emit() return true