This commit is contained in:
teebarjunk 2021-10-13 12:11:24 -04:00
parent c5104ff5a5
commit aef3075863
5 changed files with 7 additions and 7 deletions

3
CHANGES.md Normal file
View File

@ -0,0 +1,3 @@
# 1.1
- `fix` Loading settings caused printed an error.
- Get rid of test file.

View File

@ -62,7 +62,3 @@ This will then highlight *Files* and *Symbols* that have that tag.
- [ ] Meta data based on format.
- [ ] Recycle folder
- [ ] Undo recycle
# Credit
<div>Logo preview by <a href="https://www.flaticon.com/authors/flat-icons" title="Flat Icons">Flat Icons</a> from <a href="https://www.flaticon.com/" title="Flaticon">www.flaticon.com</a></div>

BIN
README/logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 734 B

View File

@ -9,15 +9,16 @@ static func load_text(path:String) -> String:
return out
push_error("no file at \"%s\"" % path)
return ""
static func load_json(path:String) -> Dictionary:
static func load_json(path:String, loud:bool=false) -> Dictionary:
var f:File = File.new()
if f.file_exists(path):
f.open(path, File.READ)
var out = JSON.parse(f.get_as_text()).result
f.close()
return out
push_error("no json at \"%s\"" % path)
if loud:
push_error("no json at \"%s\"" % path)
return {}
static func save_json(path:String, data:Dictionary):