mirror of
https://github.com/Relintai/Godot-TextEditor.git
synced 2025-01-26 16:59:19 +01:00
1.1
This commit is contained in:
parent
c5104ff5a5
commit
aef3075863
3
CHANGES.md
Normal file
3
CHANGES.md
Normal file
@ -0,0 +1,3 @@
|
||||
# 1.1
|
||||
- `fix` Loading settings caused printed an error.
|
||||
- Get rid of test 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
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 |
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user