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

Clean up _path_path() functions #76982

Merged
merged 5 commits into from
Dec 4, 2024

Conversation

akrieger
Copy link
Member

@akrieger akrieger commented Oct 12, 2024

Summary

None

Purpose of change

image

Describe the solution

Replace string functions with path functions. Remove string functions. Rename path functions to shorter form previously occupied by string functions.

Describe alternatives you've considered

Testing

It compiles. I can write into the diary and it appears on disk in the right place. I die, and the game gets graveyarded correctly (or at least, the same as it was before. I think there's preexisting bugs). I can delete a world with active players inside and it deletes correctly.

Additional context

@akrieger akrieger force-pushed the fewer_strings_longer_paths branch from e180c59 to 1acfecd Compare October 12, 2024 00:23
@github-actions github-actions bot added the [C++] Changes (can be) made in C++. Previously named `Code` label Oct 12, 2024
@akrieger akrieger marked this pull request as draft October 12, 2024 00:47
@akrieger
Copy link
Member Author

Actually I can take care of them all.

@akrieger akrieger marked this pull request as ready for review October 12, 2024 01:13
@akrieger akrieger force-pushed the fewer_strings_longer_paths branch from 1acfecd to 3abc604 Compare October 12, 2024 01:13
@akrieger akrieger changed the title Clean up external use of PATH_INFO::world_base_save_path() Clean up _path_path() functions Oct 12, 2024
@akrieger
Copy link
Member Author

I am maybe not handling resetting a world correctly

@akrieger akrieger marked this pull request as draft October 12, 2024 01:23
@github-actions github-actions bot added Info / User Interface Game - player communication, menus, etc. Translation I18n Map / Mapgen Overmap, Mapgen, Map extras, Map display Code: Tests Measurement, self-control, statistics, balancing. Character / World Generation Issues and enhancements concerning stages of creating a character or a world astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions labels Oct 12, 2024
@akrieger akrieger force-pushed the fewer_strings_longer_paths branch from 3abc604 to 16b832f Compare October 14, 2024 03:12
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Oct 14, 2024
@akrieger akrieger marked this pull request as ready for review November 28, 2024 23:57
@akrieger akrieger force-pushed the fewer_strings_longer_paths branch from 16b832f to 4bf68fb Compare November 28, 2024 23:57
@github-actions github-actions bot added BasicBuildPassed This PR builds correctly, label assigned by github actions and removed BasicBuildPassed This PR builds correctly, label assigned by github actions labels Nov 29, 2024
@Maleclypse Maleclypse merged commit 512963f into CleverRaven:master Dec 4, 2024
19 of 26 checks passed
@akrieger akrieger deleted the fewer_strings_longer_paths branch December 4, 2024 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Character / World Generation Issues and enhancements concerning stages of creating a character or a world Code: Tests Measurement, self-control, statistics, balancing. Info / User Interface Game - player communication, menus, etc. json-styled JSON lint passed, label assigned by github actions Map / Mapgen Overmap, Mapgen, Map extras, Map display Translation I18n
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants