mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
remove cache on start
This commit is contained in:
parent
b167b500c0
commit
353a01fc2d
2 changed files with 6 additions and 2 deletions
|
@ -49,7 +49,7 @@ custom_features=""
|
|||
export_filter="all_resources"
|
||||
include_filter=""
|
||||
exclude_filter=""
|
||||
export_path="../../../Builds/TheGates.exe"
|
||||
export_path="../../Builds/TheGates.exe"
|
||||
encryption_include_filters=""
|
||||
encryption_exclude_filters=""
|
||||
encrypt_pck=false
|
||||
|
@ -58,7 +58,7 @@ script_encryption_key=""
|
|||
|
||||
[preset.1.options]
|
||||
|
||||
custom_template/debug="C:/Users/Nordup/Documents/GodotProjects/godot-the-gates/bin/godot.windows.template_debug.x86_64.exe"
|
||||
custom_template/debug="C:/Users/Nordup/Documents/GodotProjects/the-gates/bin/godot.windows.template_debug.x86_64.exe"
|
||||
custom_template/release=""
|
||||
debug/export_console_script=1
|
||||
binary_format/embed_pck=false
|
||||
|
|
|
@ -3,6 +3,10 @@ extends Node
|
|||
var folder: String = "user://gates_data"
|
||||
|
||||
|
||||
func _ready() -> void:
|
||||
FileTools.remove_recursive(folder)
|
||||
|
||||
|
||||
func download(url: String) -> String:
|
||||
var save_path = folder + "/" + url.md5_text() + "." + url.get_file().get_extension()
|
||||
if FileAccess.file_exists(save_path):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue