Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot File Handler #268

Merged
merged 10 commits into from
May 18, 2024
Merged

Conversation

klingbolt
Copy link
Contributor

Changed name of file that will hold all functions for loading and saving files. Also deleted the obsolete JSON code.

Copy link
Owner

@AsherGlick AsherGlick left a comment

Choose a reason for hiding this comment

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

This PR seems to remove all capability of saving, is that desirable? Was saving anything already fully broken, not just doing the wrong thing, and this is just a cleanup PR?

Spatial.gd Outdated Show resolved Hide resolved
Spatial.gd Outdated Show resolved Hide resolved
Spatial.gd Outdated Show resolved Hide resolved
Spatial.gd Outdated Show resolved Hide resolved
@klingbolt
Copy link
Contributor Author

This PR seems to remove all capability of saving, is that desirable? Was saving anything already fully broken, not just doing the wrong thing, and this is just a cleanup PR?

Everything was broken for saving. The nodes it was calling from never had anything written to it.

FileHandler.gd Outdated Show resolved Hide resolved
FileHandler.gd Outdated Show resolved Hide resolved
ImportPackDialog.gd Show resolved Hide resolved
@klingbolt klingbolt requested a review from AsherGlick April 3, 2024 00:20
FileHandler.gd Outdated Show resolved Hide resolved
ImportPackDialog.gd Outdated Show resolved Hide resolved
ImportPackDialog.gd Outdated Show resolved Hide resolved
FileHandler.gd Outdated
static func call_xml_converter(args: PoolStringArray):
var output: Array = []
print(args)
var result: int = OS.execute("./xml_converter/build/xml_converter", args, true, output, true)
Copy link
Owner

Choose a reason for hiding this comment

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

This can probably be a constant variable in FileHandler instead of a magic string here.

Also: does this work with the exported files? I think it is fine if not right now but we will need to test it to be sure.

@AsherGlick AsherGlick merged commit 8e68914 into AsherGlick:xml_converter May 18, 2024
6 checks passed
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.

2 participants