Skip to content

Use Godots own ZipReader instead of unzip. #131

Closed
novadragonDOTspace wants to merge 3 commits intoMakovWait:mainfrom
novadragonDOTspace:main
Closed

Use Godots own ZipReader instead of unzip. #131
novadragonDOTspace wants to merge 3 commits intoMakovWait:mainfrom
novadragonDOTspace:main

Conversation

@novadragonDOTspace
Copy link

Should Resolve #130 by using godots included ZipReader instead of unzip.

Output.push("unzip executed with exit code: %s" % exit_code)
DirAccess.make_dir_absolute(zip_path)
var reader: ZIPReader = ZIPReader.new()
var err : Error = reader.open(zip_path)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should something be done with err in case there is an error?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would muse that the original code doesnt do anything with the exit_code too, and err is equivalent to the exit code here. so, in a sense, it replicates the original logic.

@MakovWait
Copy link
Owner

The solution seems not to work correctly. I was unable to install the editor using it

also, please remove extra empty lines between functions (make sure there are only two)

@novadragonDOTspace
Copy link
Author

Gonna redo the PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement] Give Warning if unzip isnt installed or alternative way to unzip files.

3 participants