Fix error spam if store.json doesn't exist (Just create it)

This commit is contained in:
Noah 2022-12-01 13:25:52 -06:00
parent 17f1ce4674
commit b7636394b2

View File

@ -11,7 +11,6 @@ var store_file = File.new()
var store_paths = [OS.get_config_dir()+"/UltraFlare/"]
var store_path = null
# When script/game is loaded,
func _ready():
# For each path,
@ -29,7 +28,8 @@ func _ready():
# Set the data path to the first entry in the data_paths array
store_path = store_paths[0]
store_dir.make_dir_recursive(store_path)
store_file.open(store_path+"/store.json", 3)
store_file.open(store_path+"/store.json", 2)
store_file.close()
# get_store()
# Used for getting all data in storage