1
0
Fork 0
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:
Emmanouil Papadeas 2023-09-09 00:03:42 +03:00
parent 0bb6d1ddf5
commit e9e80e2a06

View file

@ -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)