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

Clarify PCK path argument in PCKPacker.pck_start #97286

Merged
merged 1 commit into from
Sep 23, 2024

Conversation

Rynzier
Copy link
Contributor

@Rynzier Rynzier commented Sep 21, 2024

The pck_start() function description was somewhat misleading, and lead to some confusion until I (with some help) figured out that the pck_name argument actually represents the entire file path for the .pck file.
Changed "with the name pck_name" to "at the file path pck_name" so that the description is more clear, and should not lead to any confusion as to where the .pck file is output.

@Rynzier Rynzier requested a review from a team as a code owner September 21, 2024 16:00
@AThousandShips AThousandShips changed the title Update PCKPacker.xml - Function Description Clarity Clarify argument in PCKPacker.pck_start Sep 21, 2024
@AThousandShips AThousandShips added enhancement documentation cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release labels Sep 21, 2024
@AThousandShips AThousandShips added this to the 4.x milestone Sep 21, 2024
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

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

I checked the source code and I can confirm the reasoning to be correct.

Note that for the related function add_file, the parameter is exposed as pck_path, and that internally the parameter is actually called p_file. If possible, we should be renaming the exposed parameter. It may have been an oversight.

@Mickeon Mickeon modified the milestones: 4.x, 4.4 Sep 21, 2024
@Rynzier
Copy link
Contributor Author

Rynzier commented Sep 21, 2024

I also noted the source code differences, but I didn't want to modify that since I'm not super confident in my C++ quite yet.

@akien-mga akien-mga changed the title Clarify argument in PCKPacker.pck_start Clarify PCK path argument in PCKPacker.pck_start Sep 23, 2024

Verified

This commit was signed with the committer’s verified signature.
akien-mga Rémi Verschelde
Co-authored-by: Rémi Verschelde <rverschelde@gmail.com>
@akien-mga
Copy link
Member

I went ahead and changed the name of the argument too to be clearer, as pck_name was technically wrong ("name" is not used for a path normally).

@akien-mga akien-mga added bug and removed enhancement labels Sep 23, 2024
@akien-mga akien-mga merged commit 9c9e704 into godotengine:master Sep 23, 2024
19 checks passed
@akien-mga
Copy link
Member

Thanks! And congrats for your first merged Godot contribution 🎉

@akien-mga akien-mga removed the cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release label Mar 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug cherrypick:4.3 Considered for cherry-picking into a future 4.3.x release documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants