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

Declare all folder names in a single source file #2039

Merged
merged 5 commits into from
Mar 25, 2024

Conversation

NotherNgineer
Copy link
Contributor

@NotherNgineer NotherNgineer commented Mar 25, 2024

Declare all folder paths in one file (clean-up, and to make the changes simpler if we opt to change folder paths in the future in spite of my compatibility concerns).

Also, all paths are now declared using type std::filesystem:path (this actually consumes more ROM space versus simple char strings, but technically it's the more proper type for file paths).

(Ideally) this PR should cause no functional change from a user perspective.

I recommend reviewing the new file "file_path.cpp" first.

Test firmware on discord:
https://discord.com/channels/719669764804444213/722101917135798312/1221706419569426472

@NotherNgineer NotherNgineer marked this pull request as ready for review March 25, 2024 06:17
Copy link
Member

@gullradriel gullradriel left a comment

Choose a reason for hiding this comment

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

Looks cleaner to me, and easier to change a path if needed.

@gullradriel gullradriel merged commit d5c8525 into portapack-mayhem:next Mar 25, 2024
3 checks passed
@NotherNgineer NotherNgineer deleted the file-path branch March 25, 2024 14:44
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