mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Check whether the extension being installed got copied succesfully
This commit is contained in:
parent
0bb6d1ddf5
commit
e9e80e2a06
1 changed files with 4 additions and 1 deletions
|
@ -67,7 +67,10 @@ func _ready() -> void:
|
|||
|
||||
func install_extension(path: String) -> void:
|
||||
var file_name := path.get_file()
|
||||
var dir := DirAccess.copy_absolute(path, EXTENSIONS_PATH.path_join(file_name))
|
||||
var err := DirAccess.copy_absolute(path, EXTENSIONS_PATH.path_join(file_name))
|
||||
if err != OK:
|
||||
print(err)
|
||||
return
|
||||
_add_extension(file_name)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue